file_name
stringlengths
3
137
prefix
stringlengths
0
918k
suffix
stringlengths
0
962k
middle
stringlengths
0
812k
message.pb.go
// Code generated by protoc-gen-go. // source: message.proto // DO NOT EDIT! /* Package message is a generated protocol buffer package. It is generated from these files: message.proto It has these top-level messages: Message */ package message import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type Message struct { Body *string `protobuf:"bytes,1,req,name=body" json:"body,omitempty"` Profile *Message_Profile `protobuf:"bytes,2,req,name=profile" json:"profile,omitempty"` XXX_unrecognized []byte `json:"-"` } func (m *Message) Reset() { *m = Message{} } func (m *Message) String() string { return proto.CompactTextString(m) } func (*Message) ProtoMessage() {} func (*Message) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } func (m *Message) GetBody() string { if m != nil && m.Body != nil { return *m.Body } return "" } func (m *Message) GetProfile() *Message_Profile { if m != nil { return m.Profile } return nil } type Message_Profile struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Nick *string `protobuf:"bytes,2,req,name=nick" json:"nick,omitempty"` Age *int32 `protobuf:"varint,3,req,name=age" json:"age,omitempty"` XXX_unrecognized []byte `json:"-"` } func (m *Message_Profile) Reset() { *m = Message_Profile{} } func (m *Message_Profile) String() string { return proto.CompactTextString(m) } func (*Message_Profile) ProtoMessage() {} func (*Message_Profile) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } func (m *Message_Profile) GetName() string { if m != nil && m.Name != nil { return *m.Name } return "" } func (m *Message_Profile) GetNick() string { if m != nil && m.Nick != nil { return *m.Nick } return "" } func (m *Message_Profile) GetAge() int32 { if m != nil && m.Age != nil { return *m.Age } return 0 } func
() { proto.RegisterType((*Message)(nil), "Message") proto.RegisterType((*Message_Profile)(nil), "Message.Profile") } var fileDescriptor0 = []byte{ // 116 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0xcd, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x57, 0xca, 0xe3, 0x62, 0xf7, 0x85, 0x08, 0x08, 0xf1, 0x70, 0xb1, 0x24, 0xe5, 0xa7, 0x54, 0x4a, 0x30, 0x2a, 0x30, 0x69, 0x70, 0x0a, 0x29, 0x72, 0xb1, 0x03, 0x55, 0xa4, 0x65, 0xe6, 0xa4, 0x4a, 0x30, 0x01, 0x05, 0xb8, 0x8d, 0x04, 0xf4, 0xa0, 0x0a, 0xf5, 0x02, 0x20, 0xe2, 0x52, 0x46, 0x5c, 0xec, 0x50, 0x26, 0x48, 0x6f, 0x5e, 0x62, 0x6e, 0x2a, 0x54, 0x2f, 0x88, 0x97, 0x99, 0x9c, 0x0d, 0xd6, 0xc8, 0x29, 0xc4, 0xcd, 0xc5, 0x0c, 0xd4, 0x25, 0xc1, 0x0c, 0xe4, 0xb0, 0x02, 0x02, 0x00, 0x00, 0xff, 0xff, 0x91, 0x6f, 0x24, 0xe1, 0x7f, 0x00, 0x00, 0x00, }
init
VBreadcrumbs.spec.js
import { test } from '~util/testing' import VBreadcrumbs from '~components/breadcrumbs/VBreadcrumbs' import VBreadcrumbsItem from '~components/breadcrumbs/VBreadcrumbsItem' import { ripple } from '~directives/ripple' VBreadcrumbsItem.directives = { ripple } test('VBreadcrumbs.js', ({ mount }) => { it('should have a breadcrumbs classes', () => { const wrapper = mount(VBreadcrumbs, { propsData: { icons: true } }) expect(wrapper.hasClass('breadcrumbs')).toBe(true) expect(wrapper.hasClass('breadcrumbs--with-icons')).toBe(true) expect(wrapper.html()).toMatchSnapshot() }) it('should inject divider to children', () => { const wrapper = mount(VBreadcrumbs, { slots: { default: [VBreadcrumbsItem]
} }) const item = wrapper.find(VBreadcrumbsItem)[0] expect(item.hasAttribute('data-divider', '/')).toBe(true) expect(wrapper.html()).toMatchSnapshot() }) })
result.ts
import { Severity } from './severity' /** * Defines a validation error that may include the error code, error message * or the property that produced the error. */ export interface ValidationError { code?: number | string message: string property: string severity?: Severity } /** * Defines the operations that can be done with the validation's result. */ export interface Result<T> { /** * Combines the current result with another one. This only combines error * validation states and returns whatever object was given to the parameter's * result. * * @param result Result to combine with the current one. */ combineWith<U>(result: Result<U>): Result<U> /**
* Same as `combineWith` but returns the object contained in the current * Result rather than the parameter's one. * * @param result Result to combine with the current one. */ combineWithLeft<U>(result: Result<U>): Result<T> /** * Pattern matches against the result, which calls the given `onError` or * `onSuccess` depending on the state of the result. * * @param onError Callback for when the result contains validation errors; * passes said errors as the parameter. * @param onSuccess Callback for when the validation was successful; passes * the initial object as the parameter. */ fold( onError: (errors: ValidationError[]) => void, onSuccess: (object: T) => void, ): void /** * Returns the input that was given to the validation. */ input(): T /** * Returns whether the validation was successful or not. */ hasErrors(): boolean /** * Returns all the validation errors that were produced during the * validation. */ errors(): ValidationError[] }
plugin.py
# for localized messages from . import _ # Config from Components.config import config, ConfigYesNo, ConfigNumber, ConfigSelection, \ ConfigSubsection, ConfigSelectionNumber, ConfigDirectory, NoSave from Screens.MessageBox import MessageBox from Screens.Standby import TryQuitMainloop from Tools.BoundFunction import boundFunction # Error-print from EPGBackupTools import debugOut, PLUGIN_VERSION from traceback import format_exc extPrefix = _("EXTENSIONMENU_PREFIX") config.plugins.epgbackup = ConfigSubsection() # Do not change order of choices config.plugins.epgbackup.show_setup_in = ConfigSelection(choices=[ ("extension", _("extensions")), ("plugin", _("pluginmenue")), ("both", _("extensions") + "/" + _("pluginmenue")), ("system", _("systemmenue")), ], default="both") config.plugins.epgbackup.show_make_backup_in_extmenu = ConfigYesNo(default=False) config.plugins.epgbackup.show_backuprestore_in_extmenu = ConfigYesNo(default=False) config.plugins.epgbackup.backup_enabled = ConfigYesNo(default=True) config.plugins.epgbackup.make_backup_after_unsuccess_restore = ConfigYesNo(default=True) config.plugins.epgbackup.callAfterEPGRefresh = ConfigYesNo(default=True) config.plugins.epgbackup.backupSaveInterval = ConfigSelection(choices=[ ("-1", _("backup timer disabled")), ("30", _("30 minutes")), ("60", _("1 hour")), ("300", _("6 hours")), ("1200", _("1 day")), ], default="-1") config.plugins.epgbackup.show_messages_background = ConfigYesNo(default=True) config.plugins.epgbackup.filesize_valid = ConfigSelectionNumber(min=1, max=20, stepwidth=1, default=3, wraparound=True) config.plugins.epgbackup.timespan_valid = ConfigNumber(default=7) config.plugins.epgbackup.showadvancedoptions = NoSave(ConfigYesNo(default=False)) config.plugins.epgbackup.epgwrite_wait = ConfigNumber(default=3) config.plugins.epgbackup.showin_usr_scripts = ConfigYesNo(default=True) config.plugins.epgbackup.backup_strategy = ConfigSelection(choices=[ ("youngest_before_biggest", _("Youngest before Biggest"), _("The youngest file from the saved backup-files will be restored.\nIf it is older than the current existing EPG-file and the EPG-file isn't valid then the biggest backup-file will be restored.")), ("biggest_before_youngest", _("Biggest before Youngest"), _("The biggest file from the saved backup-files will be restored.\nIf it is smaller than the current existing EPG-file and the EPG-file isn't valid then the youngest backup-file will be restored.")), ("youngest", _("Only younger"), _("The backup-file will only be restored if it is younger than the current existing EPG-file.")), ("biggest", _("Only bigger"), _("The backup-file will only be restored if it is greater than the current existing EPG-file.")), ], default="youngest_before_biggest" ) config.plugins.epgbackup.enable_debug = ConfigYesNo(default=False) config.plugins.epgbackup.plugin_debug_in_file = ConfigYesNo(default=False) config.plugins.epgbackup.backup_log_dir = ConfigDirectory(default="/tmp") config.plugins.epgbackup.max_boot_count = ConfigNumber(default=3) try: from Components.Language import language from Plugins.SystemPlugins.MPHelp import registerHelp, XMLHelpReader from Tools.Directories import resolveFilename, SCOPE_PLUGINS, fileExists lang = language.getLanguage()[:2] HELPPATH = resolveFilename(SCOPE_PLUGINS, "Extensions/EPGBackup") if fileExists(HELPPATH + "/locale/" + str(lang) + "/mphelp.xml"): helpfile = HELPPATH + "/locale/" + str(lang) + "/mphelp.xml" else: helpfile = HELPPATH + "/mphelp.xml" reader = XMLHelpReader(helpfile) epgBackuphHelp = registerHelp(*reader) except: debugOut("Help-Error:\n" + str(format_exc()), forced=True) epgBackuphHelp = None # Plugin epgbackup = None from Components.PluginComponent import plugins from Plugins.Plugin import PluginDescriptor gUserScriptExists = False # Autostart def autostart(reason, **kwargs): global epgbackup global gUserScriptExists if reason == 0 and "session" in kwargs: session = kwargs["session"] from EPGBackupSupport import EPGBackupSupport try: epgbackup = EPGBackupSupport(session) except: debugOut("Error while initializing EPGBackupSupport:\n" + str(format_exc()), forced=True) try: from Plugins.Extensions.UserScripts.plugin import UserScriptsConfiguration gUserScriptExists = True del UserScriptsConfiguration except: pass def openconfig(session, **kwargs): try: from EPGBackupConfig import EPGBackupConfig session.openWithCallback(doneConfiguring, EPGBackupConfig) except: debugOut("Config-Import-Error:\n" + str(format_exc()), forced=True) def showinSetup(menuid): if menuid == "system": return [(extPrefix + " " + _("EXTENSIONNAME_SETUP"), openconfig, "EPGBackupConfig", None)] return [] def makeBackup(session, **kwargs): epgbackup.makeBackup(interactive=True) def restoreBackup(session, **kwargs): epgbackup.forceDefaultRestore() def doneConfiguring(session, needsRestart):
def restartGUICB(session, answer): if answer is True: session.open(TryQuitMainloop, 3) SetupPlugDescExt = PluginDescriptor(name=extPrefix + " " + _("EXTENSIONNAME_SETUP"), description=_("Backup and restore EPG Data, including integration of EPGRefresh-plugin"), where=PluginDescriptor.WHERE_EXTENSIONSMENU, fnc=openconfig, needsRestart=False) SetupPlugDescPlug = PluginDescriptor(name=extPrefix + " " + _("EXTENSIONNAME_SETUP"), description=_("Backup and restore EPG Data, including integration of EPGRefresh-plugin"), where=PluginDescriptor.WHERE_PLUGINMENU, fnc=openconfig, needsRestart=False) MakePlugDescExt = PluginDescriptor(name=extPrefix + " " + _("Make Backup"), description=_("Start making a Backup"), where=PluginDescriptor.WHERE_EXTENSIONSMENU, fnc=makeBackup, needsRestart=False) RestorePlugDescExt = PluginDescriptor(name=extPrefix + " " + _("Restore Backup"), description=_("Start a Restore of a Backup"), where=PluginDescriptor.WHERE_EXTENSIONSMENU, fnc=restoreBackup, needsRestart=False) def AdjustPlugin(enable, PlugDescriptor): try: if enable: plugins.addPlugin(PlugDescriptor) else: plugins.removePlugin(PlugDescriptor) except ValueError: pass except: debugOut("AdjustPlugin-Error:\n" + str(format_exc()), forced=True) def PluginHousekeeping(configentry): PlugDescInstall = [] PlugDescDeinstall = [] # value == extension: prior config-entry is both, so extension has not to be added # value == both: prior config-entry is plugin, so only extension must be added if configentry == config.plugins.epgbackup.show_setup_in: # systemmenu don't have to be adjusted, because restart is required if config.plugins.epgbackup.show_setup_in.value == "extension": PlugDescDeinstall.append(SetupPlugDescPlug) elif config.plugins.epgbackup.show_setup_in.value == "plugin": PlugDescInstall.append(SetupPlugDescPlug) PlugDescDeinstall.append(SetupPlugDescExt) elif config.plugins.epgbackup.show_setup_in.value == "both": PlugDescInstall.append(SetupPlugDescExt) elif configentry == config.plugins.epgbackup.show_make_backup_in_extmenu: if configentry.value: PlugDescInstall.append(MakePlugDescExt) else: PlugDescDeinstall.append(MakePlugDescExt) elif configentry == config.plugins.epgbackup.show_backuprestore_in_extmenu: if configentry.value: PlugDescInstall.append(RestorePlugDescExt) else: PlugDescDeinstall.append(RestorePlugDescExt) for PlugDescriptor in PlugDescDeinstall: AdjustPlugin(False, PlugDescriptor) for PlugDescriptor in PlugDescInstall: AdjustPlugin(True, PlugDescriptor) config.plugins.epgbackup.show_setup_in.addNotifier(PluginHousekeeping, initial_call=False, immediate_feedback=True) config.plugins.epgbackup.show_make_backup_in_extmenu.addNotifier(PluginHousekeeping, initial_call=False, immediate_feedback=True) config.plugins.epgbackup.show_backuprestore_in_extmenu.addNotifier(PluginHousekeeping, initial_call=False, immediate_feedback=True) def Plugins(**kwargs): pluginList = [ PluginDescriptor( where=[PluginDescriptor.WHERE_SESSIONSTART, PluginDescriptor.WHERE_AUTOSTART], fnc=autostart) ] if config.plugins.epgbackup.show_setup_in.value == "system": pluginList.append(PluginDescriptor( name=extPrefix + " " + _("EXTENSIONNAME_SETUP"), description=_("Keep EPG-Data over Crashes"), where=PluginDescriptor.WHERE_MENU, fnc=showinSetup, needsRestart=False) ) else: if config.plugins.epgbackup.show_setup_in.value in ("plugin", "both"): pluginList.append(SetupPlugDescPlug) if config.plugins.epgbackup.show_setup_in.value in ("extension", "both"): pluginList.append(SetupPlugDescExt) if config.plugins.epgbackup.show_make_backup_in_extmenu.value: pluginList.append(MakePlugDescExt) if config.plugins.epgbackup.show_backuprestore_in_extmenu.value: pluginList.append(RestorePlugDescExt) return pluginList
if needsRestart: session.openWithCallback(boundFunction(restartGUICB, session), MessageBox, _("To apply your Changes the GUI has to be restarted.\nDo you want to restart the GUI now?"), MessageBox.TYPE_YESNO, title=_("EPGBackup Config V %s") % (PLUGIN_VERSION), timeout=30)
attachment_test.go
// Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA // // Licensed under the Apache License, Version 2.0 (the "License");
// // 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. package horusec import ( "testing" "github.com/google/uuid" "github.com/stretchr/testify/assert" ) func TestToAnalysis(t *testing.T) { t.Run("should success parse repository to analysis", func(t *testing.T) { repository := &Attachment{} assert.IsType(t, &Analysis{}, repository.ToAnalysis(uuid.New(), uuid.New())) }) }
// you may not use this file except in compliance with the License. // You may obtain a copy of the License at
main.js
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=11)}([function(t,e,n){var i; /*! * jQuery JavaScript Library v3.2.1 * https://jquery.com/ * * Includes Sizzle.js * https://sizzlejs.com/ * * Copyright JS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2017-03-20T18:59Z */!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(n,o){"use strict";var a=[],r=n.document,s=Object.getPrototypeOf,l=a.slice,d=a.concat,c=a.push,u=a.indexOf,p={},h=p.toString,f=p.hasOwnProperty,m=f.toString,g=m.call(Object),b={};function v(t,e){var n=(e=e||r).createElement("script");n.text=t,e.head.appendChild(n).parentNode.removeChild(n)}var y=function(t,e){return new y.fn.init(t,e)},x=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,w=/^-ms-/,k=/-([a-z])/g,_=function(t,e){return e.toUpperCase()};function C(t){var e=!!t&&"length"in t&&t.length,n=y.type(t);return"function"!==n&&!y.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}y.fn=y.prototype={jquery:"3.2.1",constructor:y,length:0,toArray:function(){return l.call(this)},get:function(t){return null==t?l.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=y.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return y.each(this,t)},map:function(t){return this.pushStack(y.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:a.sort,splice:a.splice},y.extend=y.fn.extend=function(){var t,e,n,i,o,a,r=arguments[0]||{},s=1,l=arguments.length,d=!1;for("boolean"==typeof r&&(d=r,r=arguments[s]||{},s++),"object"==typeof r||y.isFunction(r)||(r={}),s===l&&(r=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)n=r[e],r!==(i=t[e])&&(d&&i&&(y.isPlainObject(i)||(o=Array.isArray(i)))?(o?(o=!1,a=n&&Array.isArray(n)?n:[]):a=n&&y.isPlainObject(n)?n:{},r[e]=y.extend(d,a,i)):void 0!==i&&(r[e]=i));return r},y.extend({expando:"jQuery"+("3.2.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===y.type(t)},isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=y.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==h.call(t))&&(!(e=s(t))||"function"==typeof(n=f.call(e,"constructor")&&e.constructor)&&m.call(n)===g)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?p[h.call(t)]||"object":typeof t},globalEval:function(t){v(t)},camelCase:function(t){return t.replace(w,"ms-").replace(k,_)},each:function(t,e){var n,i=0;if(C(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(x,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(C(Object(t))?y.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:u.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;i<n;i++)t[o++]=e[i];return t.length=o,t},grep:function(t,e,n){for(var i=[],o=0,a=t.length,r=!n;o<a;o++)!e(t[o],o)!==r&&i.push(t[o]);return i},map:function(t,e,n){var i,o,a=0,r=[];if(C(t))for(i=t.length;a<i;a++)null!=(o=e(t[a],a,n))&&r.push(o);else for(a in t)null!=(o=e(t[a],a,n))&&r.push(o);return d.apply([],r)},guid:1,proxy:function(t,e){var n,i,o;if("string"==typeof e&&(n=t[e],e=t,t=n),y.isFunction(t))return i=l.call(arguments,2),(o=function(){return t.apply(e||this,i.concat(l.call(arguments)))}).guid=t.guid=t.guid||y.guid++,o},now:Date.now,support:b}),"function"==typeof Symbol&&(y.fn[Symbol.iterator]=a[Symbol.iterator]),y.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){p["[object "+e+"]"]=e.toLowerCase()}));var E= /*! * Sizzle CSS Selector Engine v2.3.3 * https://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2016-08-08 */ function(t){var e,n,i,o,a,r,s,l,d,c,u,p,h,f,m,g,b,v,y,x="sizzle"+1*new Date,w=t.document,k=0,_=0,C=rt(),E=rt(),M=rt(),T=function(t,e){return t===e&&(u=!0),0},L={}.hasOwnProperty,O=[],D=O.pop,B=O.push,S=O.push,z=O.slice,A=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},$="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+I+"*("+R+")(?:"+I+"*([*^$|!~]?=)"+I+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+I+"*\\]",H=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",P=new RegExp(I+"+","g"),W=new RegExp("^"+I+"+|((?:^|[^\\\\])(?:\\\\.)*)"+I+"+$","g"),j=new RegExp("^"+I+"*,"+I+"*"),N=new RegExp("^"+I+"*([>+~]|"+I+")"+I+"*"),q=new RegExp("="+I+"*([^\\]'\"]*?)"+I+"*\\]","g"),X=new RegExp(H),V=new RegExp("^"+R+"$"),Y={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+$+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,U=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,G=new RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),tt=function(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},it=function(){p()},ot=vt((function(t){return!0===t.disabled&&("form"in t||"label"in t)}),{dir:"parentNode",next:"legend"});try{S.apply(O=z.call(w.childNodes),w.childNodes),O[w.childNodes.length].nodeType}catch(t){S={apply:O.length?function(t,e){B.apply(t,z.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function at(t,e,i,o){var a,s,d,c,u,f,b,v=e&&e.ownerDocument,k=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==k&&9!==k&&11!==k)return i;if(!o&&((e?e.ownerDocument||e:w)!==h&&p(e),e=e||h,m)){if(11!==k&&(u=J.exec(t)))if(a=u[1]){if(9===k){if(!(d=e.getElementById(a)))return i;if(d.id===a)return i.push(d),i}else if(v&&(d=v.getElementById(a))&&y(e,d)&&d.id===a)return i.push(d),i}else{if(u[2])return S.apply(i,e.getElementsByTagName(t)),i;if((a=u[3])&&n.getElementsByClassName&&e.getElementsByClassName)return S.apply(i,e.getElementsByClassName(a)),i}if(n.qsa&&!M[t+" "]&&(!g||!g.test(t))){if(1!==k)v=e,b=t;else if("object"!==e.nodeName.toLowerCase()){for((c=e.getAttribute("id"))?c=c.replace(et,nt):e.setAttribute("id",c=x),s=(f=r(t)).length;s--;)f[s]="#"+c+" "+bt(f[s]);b=f.join(","),v=Z.test(t)&&mt(e.parentNode)||e}if(b)try{return S.apply(i,v.querySelectorAll(b)),i}catch(t){}finally{c===x&&e.removeAttribute("id")}}}return l(t.replace(W,"$1"),e,i,o)}function rt(){var t=[];return function e(n,o){return t.push(n+" ")>i.cacheLength&&delete e[t.shift()],e[n+" "]=o}}function st(t){return t[x]=!0,t}function lt(t){var e=h.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function dt(t,e){for(var n=t.split("|"),o=n.length;o--;)i.attrHandle[n[o]]=e}function ct(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ut(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function ht(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ot(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ft(t){return st((function(e){return e=+e,st((function(n,i){for(var o,a=t([],n.length,e),r=a.length;r--;)n[o=a[r]]&&(n[o]=!(i[o]=n[o]))}))}))}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=at.support={},a=at.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},p=at.setDocument=function(t){var e,o,r=t?t.ownerDocument||t:w;return r!==h&&9===r.nodeType&&r.documentElement?(f=(h=r).documentElement,m=!a(h),w!==h&&(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",it,!1):o.attachEvent&&o.attachEvent("onunload",it)),n.attributes=lt((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=lt((function(t){return t.appendChild(h.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=U.test(h.getElementsByClassName),n.getById=lt((function(t){return f.appendChild(t).id=x,!h.getElementsByName||!h.getElementsByName(x).length})),n.getById?(i.filter.ID=function(t){var e=t.replace(G,tt);return function(t){return t.getAttribute("id")===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n=e.getElementById(t);return n?[n]:[]}}):(i.filter.ID=function(t){var e=t.replace(G,tt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n,i,o,a=e.getElementById(t);if(a){if((n=a.getAttributeNode("id"))&&n.value===t)return[a];for(o=e.getElementsByName(t),i=0;a=o[i++];)if((n=a.getAttributeNode("id"))&&n.value===t)return[a]}return[]}}),i.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,a=e.getElementsByTagName(t);if("*"===t){for(;n=a[o++];)1===n.nodeType&&i.push(n);return i}return a},i.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&m)return e.getElementsByClassName(t)},b=[],g=[],(n.qsa=U.test(h.querySelectorAll))&&(lt((function(t){f.appendChild(t).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+I+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+I+"*(?:value|"+$+")"),t.querySelectorAll("[id~="+x+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]")})),lt((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=h.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+I+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=U.test(v=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&lt((function(t){n.disconnectedMatch=v.call(t,"*"),v.call(t,"[s!='']:x"),b.push("!=",H)})),g=g.length&&new RegExp(g.join("|")),b=b.length&&new RegExp(b.join("|")),e=U.test(f.compareDocumentPosition),y=e||U.test(f.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},T=e?function(t,e){if(t===e)return u=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===i?t===h||t.ownerDocument===w&&y(w,t)?-1:e===h||e.ownerDocument===w&&y(w,e)?1:c?A(c,t)-A(c,e):0:4&i?-1:1)}:function(t,e){if(t===e)return u=!0,0;var n,i=0,o=t.parentNode,a=e.parentNode,r=[t],s=[e];if(!o||!a)return t===h?-1:e===h?1:o?-1:a?1:c?A(c,t)-A(c,e):0;if(o===a)return ct(t,e);for(n=t;n=n.parentNode;)r.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;r[i]===s[i];)i++;return i?ct(r[i],s[i]):r[i]===w?-1:s[i]===w?1:0},h):h},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if((t.ownerDocument||t)!==h&&p(t),e=e.replace(q,"='$1']"),n.matchesSelector&&m&&!M[e+" "]&&(!b||!b.test(e))&&(!g||!g.test(e)))try{var i=v.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return at(e,h,null,[t]).length>0},at.contains=function(t,e){return(t.ownerDocument||t)!==h&&p(t),y(t,e)},at.attr=function(t,e){(t.ownerDocument||t)!==h&&p(t);var o=i.attrHandle[e.toLowerCase()],a=o&&L.call(i.attrHandle,e.toLowerCase())?o(t,e,!m):void 0;return void 0!==a?a:n.attributes||!m?t.getAttribute(e):(a=t.getAttributeNode(e))&&a.specified?a.value:null},at.escape=function(t){return(t+"").replace(et,nt)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var e,i=[],o=0,a=0;if(u=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(T),u){for(;e=t[a++];)e===t[a]&&(o=i.push(a));for(;o--;)t.splice(i[o],1)}return c=null,t},o=at.getText=function(t){var e,n="",i=0,a=t.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===a||4===a)return t.nodeValue}else for(;e=t[i++];)n+=o(e);return n},(i=at.selectors={cacheLength:50,createPseudo:st,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(G,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(G,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&X.test(n)&&(e=r(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(G,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=C[t+" "];return e||(e=new RegExp("(^|"+I+")"+t+"("+I+"|$)"))&&C(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var o=at.attr(i,t);return null==o?"!="===e:!e||(o+="","="===e?o===n:"!="===e?o!==n:"^="===e?n&&0===o.indexOf(n):"*="===e?n&&o.indexOf(n)>-1:"$="===e?n&&o.slice(-n.length)===n:"~="===e?(" "+o.replace(P," ")+" ").indexOf(n)>-1:"|="===e&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,o){var a="nth"!==t.slice(0,3),r="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var d,c,u,p,h,f,m=a!==r?"nextSibling":"previousSibling",g=e.parentNode,b=s&&e.nodeName.toLowerCase(),v=!l&&!s,y=!1;if(g){if(a){for(;m;){for(p=e;p=p[m];)if(s?p.nodeName.toLowerCase()===b:1===p.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[r?g.firstChild:g.lastChild],r&&v){for(y=(h=(d=(c=(u=(p=g)[x]||(p[x]={}))[p.uniqueID]||(u[p.uniqueID]={}))[t]||[])[0]===k&&d[1])&&d[2],p=h&&g.childNodes[h];p=++h&&p&&p[m]||(y=h=0)||f.pop();)if(1===p.nodeType&&++y&&p===e){c[t]=[k,h,y];break}}else if(v&&(y=h=(d=(c=(u=(p=e)[x]||(p[x]={}))[p.uniqueID]||(u[p.uniqueID]={}))[t]||[])[0]===k&&d[1]),!1===y)for(;(p=++h&&p&&p[m]||(y=h=0)||f.pop())&&((s?p.nodeName.toLowerCase()!==b:1!==p.nodeType)||!++y||(v&&((c=(u=p[x]||(p[x]={}))[p.uniqueID]||(u[p.uniqueID]={}))[t]=[k,y]),p!==e)););return(y-=o)===i||y%i==0&&y/i>=0}}},PSEUDO:function(t,e){var n,o=i.pseudos[t]||i.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return o[x]?o(e):o.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?st((function(t,n){for(var i,a=o(t,e),r=a.length;r--;)t[i=A(t,a[r])]=!(n[i]=a[r])})):function(t){return o(t,0,n)}):o}},pseudos:{not:st((function(t){var e=[],n=[],i=s(t.replace(W,"$1"));return i[x]?st((function(t,e,n,o){for(var a,r=i(t,null,o,[]),s=t.length;s--;)(a=r[s])&&(t[s]=!(e[s]=a))})):function(t,o,a){return e[0]=t,i(e,null,a,n),e[0]=null,!n.pop()}})),has:st((function(t){return function(e){return at(t,e).length>0}})),contains:st((function(t){return t=t.replace(G,tt),function(e){return(e.textContent||e.innerText||o(e)).indexOf(t)>-1}})),lang:st((function(t){return V.test(t||"")||at.error("unsupported lang: "+t),t=t.replace(G,tt).toLowerCase(),function(e){var n;do{if(n=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:ht(!1),disabled:ht(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return K.test(t.nodeName)},input:function(t){return Q.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ft((function(){return[0]})),last:ft((function(t,e){return[e-1]})),eq:ft((function(t,e,n){return[n<0?n+e:n]})),even:ft((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:ft((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:ft((function(t,e,n){for(var i=n<0?n+e:n;--i>=0;)t.push(i);return t})),gt:ft((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[e]=ut(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=pt(e);function gt(){}function bt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function vt(t,e,n){var i=e.dir,o=e.next,a=o||i,r=n&&"parentNode"===a,s=_++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||r)return t(e,n,o);return!1}:function(e,n,l){var d,c,u,p=[k,s];if(l){for(;e=e[i];)if((1===e.nodeType||r)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||r)if(c=(u=e[x]||(e[x]={}))[e.uniqueID]||(u[e.uniqueID]={}),o&&o===e.nodeName.toLowerCase())e=e[i]||e;else{if((d=c[a])&&d[0]===k&&d[1]===s)return p[2]=d[2];if(c[a]=p,p[2]=t(e,n,l))return!0}return!1}}function yt(t){return t.length>1?function(e,n,i){for(var o=t.length;o--;)if(!t[o](e,n,i))return!1;return!0}:t[0]}function xt(t,e,n,i,o){for(var a,r=[],s=0,l=t.length,d=null!=e;s<l;s++)(a=t[s])&&(n&&!n(a,i,o)||(r.push(a),d&&e.push(s)));return r}function wt(t,e,n,i,o,a){return i&&!i[x]&&(i=wt(i)),o&&!o[x]&&(o=wt(o,a)),st((function(a,r,s,l){var d,c,u,p=[],h=[],f=r.length,m=a||function(t,e,n){for(var i=0,o=e.length;i<o;i++)at(t,e[i],n);return n}(e||"*",s.nodeType?[s]:s,[]),g=!t||!a&&e?m:xt(m,p,t,s,l),b=n?o||(a?t:f||i)?[]:r:g;if(n&&n(g,b,s,l),i)for(d=xt(b,h),i(d,[],s,l),c=d.length;c--;)(u=d[c])&&(b[h[c]]=!(g[h[c]]=u));if(a){if(o||t){if(o){for(d=[],c=b.length;c--;)(u=b[c])&&d.push(g[c]=u);o(null,b=[],d,l)}for(c=b.length;c--;)(u=b[c])&&(d=o?A(a,u):p[c])>-1&&(a[d]=!(r[d]=u))}}else b=xt(b===r?b.splice(f,b.length):b),o?o(null,r,b,l):S.apply(r,b)}))}function kt(t){for(var e,n,o,a=t.length,r=i.relative[t[0].type],s=r||i.relative[" "],l=r?1:0,c=vt((function(t){return t===e}),s,!0),u=vt((function(t){return A(e,t)>-1}),s,!0),p=[function(t,n,i){var o=!r&&(i||n!==d)||((e=n).nodeType?c(t,n,i):u(t,n,i));return e=null,o}];l<a;l++)if(n=i.relative[t[l].type])p=[vt(yt(p),n)];else{if((n=i.filter[t[l].type].apply(null,t[l].matches))[x]){for(o=++l;o<a&&!i.relative[t[o].type];o++);return wt(l>1&&yt(p),l>1&&bt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(W,"$1"),n,l<o&&kt(t.slice(l,o)),o<a&&kt(t=t.slice(o)),o<a&&bt(t))}p.push(n)}return yt(p)}return gt.prototype=i.filters=i.pseudos,i.setFilters=new gt,r=at.tokenize=function(t,e){var n,o,a,r,s,l,d,c=E[t+" "];if(c)return e?0:c.slice(0);for(s=t,l=[],d=i.preFilter;s;){for(r in n&&!(o=j.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(a=[])),n=!1,(o=N.exec(s))&&(n=o.shift(),a.push({value:n,type:o[0].replace(W," ")}),s=s.slice(n.length)),i.filter)!(o=Y[r].exec(s))||d[r]&&!(o=d[r](o))||(n=o.shift(),a.push({value:n,type:r,matches:o}),s=s.slice(n.length));if(!n)break}return e?s.length:s?at.error(t):E(t,l).slice(0)},s=at.compile=function(t,e){var n,o=[],a=[],s=M[t+" "];if(!s){for(e||(e=r(t)),n=e.length;n--;)(s=kt(e[n]))[x]?o.push(s):a.push(s);(s=M(t,function(t,e){var n=e.length>0,o=t.length>0,a=function(a,r,s,l,c){var u,f,g,b=0,v="0",y=a&&[],x=[],w=d,_=a||o&&i.find.TAG("*",c),C=k+=null==w?1:Math.random()||.1,E=_.length;for(c&&(d=r===h||r||c);v!==E&&null!=(u=_[v]);v++){if(o&&u){for(f=0,r||u.ownerDocument===h||(p(u),s=!m);g=t[f++];)if(g(u,r||h,s)){l.push(u);break}c&&(k=C)}n&&((u=!g&&u)&&b--,a&&y.push(u))}if(b+=v,n&&v!==b){for(f=0;g=e[f++];)g(y,x,r,s);if(a){if(b>0)for(;v--;)y[v]||x[v]||(x[v]=D.call(l));x=xt(x)}S.apply(l,x),c&&!a&&x.length>0&&b+e.length>1&&at.uniqueSort(l)}return c&&(k=C,d=w),y};return n?st(a):a}(a,o))).selector=t}return s},l=at.select=function(t,e,n,o){var a,l,d,c,u,p="function"==typeof t&&t,h=!o&&r(t=p.selector||t);if(n=n||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(d=l[0]).type&&9===e.nodeType&&m&&i.relative[l[1].type]){if(!(e=(i.find.ID(d.matches[0].replace(G,tt),e)||[])[0]))return n;p&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(a=Y.needsContext.test(t)?0:l.length;a--&&(d=l[a],!i.relative[c=d.type]);)if((u=i.find[c])&&(o=u(d.matches[0].replace(G,tt),Z.test(l[0].type)&&mt(e.parentNode)||e))){if(l.splice(a,1),!(t=o.length&&bt(l)))return S.apply(n,o),n;break}}return(p||s(t,h))(o,e,!m,n,!e||Z.test(t)&&mt(e.parentNode)||e),n},n.sortStable=x.split("").sort(T).join("")===x,n.detectDuplicates=!!u,p(),n.sortDetached=lt((function(t){return 1&t.compareDocumentPosition(h.createElement("fieldset"))})),lt((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||dt("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&lt((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||dt("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),lt((function(t){return null==t.getAttribute("disabled")}))||dt($,(function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null})),at}(n);y.find=E,y.expr=E.selectors,y.expr[":"]=y.expr.pseudos,y.uniqueSort=y.unique=E.uniqueSort,y.text=E.getText,y.isXMLDoc=E.isXML,y.contains=E.contains,y.escapeSelector=E.escape;var M=function(t,e,n){for(var i=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&y(t).is(n))break;i.push(t)}return i},T=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},L=y.expr.match.needsContext;function O(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,B=/^.[^:#\[\.,]*$/;function S(t,e,n){return y.isFunction(e)?y.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?y.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?y.grep(t,(function(t){return u.call(e,t)>-1!==n})):B.test(e)?y.filter(e,t,n):(e=y.filter(e,t),y.grep(t,(function(t){return u.call(e,t)>-1!==n&&1===t.nodeType})))}y.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?y.find.matchesSelector(i,t)?[i]:[]:y.find.matches(t,y.grep(e,(function(t){return 1===t.nodeType})))},y.fn.extend({find:function(t){var e,n,i=this.length,o=this;if("string"!=typeof t)return this.pushStack(y(t).filter((function(){for(e=0;e<i;e++)if(y.contains(o[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)y.find(t,o[e],n);return i>1?y.uniqueSort(n):n},filter:function(t){return this.pushStack(S(this,t||[],!1))},not:function(t){return this.pushStack(S(this,t||[],!0))},is:function(t){return!!S(this,"string"==typeof t&&L.test(t)?y(t):t||[],!1).length}});var z,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(y.fn.init=function(t,e,n){var i,o;if(!t)return this;if(n=n||z,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:A.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof y?e[0]:e,y.merge(this,y.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:r,!0)),D.test(i[1])&&y.isPlainObject(e))for(i in e)y.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(o=r.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y.isFunction(t)?void 0!==n.ready?n.ready(t):t(y):y.makeArray(t,this)}).prototype=y.fn,z=y(r);var $=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function R(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}y.fn.extend({has:function(t){var e=y(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(y.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,o=this.length,a=[],r="string"!=typeof t&&y(t);if(!L.test(t))for(;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(r?r.index(n)>-1:1===n.nodeType&&y.find.matchesSelector(n,t))){a.push(n);break}return this.pushStack(a.length>1?y.uniqueSort(a):a)},index:function(t){return t?"string"==typeof t?u.call(y(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(y.uniqueSort(y.merge(this.get(),y(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),y.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return M(t,"parentNode")},parentsUntil:function(t,e,n){return M(t,"parentNode",n)},next:function(t){return R(t,"nextSibling")},prev:function(t){return R(t,"previousSibling")},nextAll:function(t){return M(t,"nextSibling")},prevAll:function(t){return M(t,"previousSibling")},nextUntil:function(t,e,n){return M(t,"nextSibling",n)},prevUntil:function(t,e,n){return M(t,"previousSibling",n)},siblings:function(t){return T((t.parentNode||{}).firstChild,t)},children:function(t){return T(t.firstChild)},contents:function(t){return O(t,"iframe")?t.contentDocument:(O(t,"template")&&(t=t.content||t),y.merge([],t.childNodes))}},(function(t,e){y.fn[t]=function(n,i){var o=y.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=y.filter(i,o)),this.length>1&&(I[t]||y.uniqueSort(o),$.test(t)&&o.reverse()),this.pushStack(o)}}));var F=/[^\x20\t\r\n\f]+/g;function H(t){return t}function P(t){throw t}function W(t,e,n,i){var o;try{t&&y.isFunction(o=t.promise)?o.call(t).done(e).fail(n):t&&y.isFunction(o=t.then)?o.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}y.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return y.each(t.match(F)||[],(function(t,n){e[n]=!0})),e}(t):y.extend({},t);var e,n,i,o,a=[],r=[],s=-1,l=function(){for(o=o||t.once,i=e=!0;r.length;s=-1)for(n=r.shift();++s<a.length;)!1===a[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=a.length,n=!1);t.memory||(n=!1),e=!1,o&&(a=n?[]:"")},d={add:function(){return a&&(n&&!e&&(s=a.length-1,r.push(n)),function e(n){y.each(n,(function(n,i){y.isFunction(i)?t.unique&&d.has(i)||a.push(i):i&&i.length&&"string"!==y.type(i)&&e(i)}))}(arguments),n&&!e&&l()),this},remove:function(){return y.each(arguments,(function(t,e){for(var n;(n=y.inArray(e,a,n))>-1;)a.splice(n,1),n<=s&&s--})),this},has:function(t){return t?y.inArray(t,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=r=[],a=n="",this},disabled:function(){return!a},lock:function(){return o=r=[],n||e||(a=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=[t,(n=n||[]).slice?n.slice():n],r.push(n),e||l()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!i}};return d},y.extend({Deferred:function(t){var e=[["notify","progress",y.Callbacks("memory"),y.Callbacks("memory"),2],["resolve","done",y.Callbacks("once memory"),y.Callbacks("once memory"),0,"resolved"],["reject","fail",y.Callbacks("once memory"),y.Callbacks("once memory"),1,"rejected"]],i="pending",o={state:function(){return i},always:function(){return a.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return y.Deferred((function(n){y.each(e,(function(e,i){var o=y.isFunction(t[i[4]])&&t[i[4]];a[i[1]]((function(){var t=o&&o.apply(this,arguments);t&&y.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,o?[t]:arguments)}))})),t=null})).promise()},then:function(t,i,o){var a=0;function r(t,e,i,o){return function(){var s=this,l=arguments,d=function(){var n,d;if(!(t<a)){if((n=i.apply(s,l))===e.promise())throw new TypeError("Thenable self-resolution");d=n&&("object"==typeof n||"function"==typeof n)&&n.then,y.isFunction(d)?o?d.call(n,r(a,e,H,o),r(a,e,P,o)):(a++,d.call(n,r(a,e,H,o),r(a,e,P,o),r(a,e,H,e.notifyWith))):(i!==H&&(s=void 0,l=[n]),(o||e.resolveWith)(s,l))}},c=o?d:function(){try{d()}catch(n){y.Deferred.exceptionHook&&y.Deferred.exceptionHook(n,c.stackTrace),t+1>=a&&(i!==P&&(s=void 0,l=[n]),e.rejectWith(s,l))}};t?c():(y.Deferred.getStackHook&&(c.stackTrace=y.Deferred.getStackHook()),n.setTimeout(c))}}return y.Deferred((function(n){e[0][3].add(r(0,n,y.isFunction(o)?o:H,n.notifyWith)),e[1][3].add(r(0,n,y.isFunction(t)?t:H)),e[2][3].add(r(0,n,y.isFunction(i)?i:P))})).promise()},promise:function(t){return null!=t?y.extend(t,o):o}},a={};return y.each(e,(function(t,n){var r=n[2],s=n[5];o[n[1]]=r.add,s&&r.add((function(){i=s}),e[3-t][2].disable,e[0][2].lock),r.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=r.fireWith})),o.promise(a),t&&t.call(a,a),a},when:function(t){var e=arguments.length,n=e,i=Array(n),o=l.call(arguments),a=y.Deferred(),r=function(t){return function(n){i[t]=this,o[t]=arguments.length>1?l.call(arguments):n,--e||a.resolveWith(i,o)}};if(e<=1&&(W(t,a.done(r(n)).resolve,a.reject,!e),"pending"===a.state()||y.isFunction(o[n]&&o[n].then)))return a.then();for(;n--;)W(o[n],r(n),a.reject);return a.promise()}});var j=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;y.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&j.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},y.readyException=function(t){n.setTimeout((function(){throw t}))};var N=y.Deferred();function q(){r.removeEventListener("DOMContentLoaded",q),n.removeEventListener("load",q),y.ready()}y.fn.ready=function(t){return N.then(t).catch((function(t){y.readyException(t)})),this},y.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--y.readyWait:y.isReady)||(y.isReady=!0,!0!==t&&--y.readyWait>0||N.resolveWith(r,[y]))}}),y.ready.then=N.then,"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?n.setTimeout(y.ready):(r.addEventListener("DOMContentLoaded",q),n.addEventListener("load",q));var X=function(t,e,n,i,o,a,r){var s=0,l=t.length,d=null==n;if("object"===y.type(n))for(s in o=!0,n)X(t,e,s,n[s],!0,a,r);else if(void 0!==i&&(o=!0,y.isFunction(i)||(r=!0),d&&(r?(e.call(t,i),e=null):(d=e,e=function(t,e,n){return d.call(y(t),n)})),e))for(;s<l;s++)e(t[s],n,r?i:i.call(t[s],s,e(t[s],n)));return o?t:d?e.call(t):l?e(t[0],n):a},V=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function Y(){this.expando=y.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(t){var e=t[this.expando];return e||(e={},V(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[y.camelCase(e)]=n;else for(i in e)o[y.camelCase(i)]=e[i];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][y.camelCase(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(y.camelCase):(e=y.camelCase(e))in i?[e]:e.match(F)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||y.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!y.isEmptyObject(e)}};var Q=new Y,K=new Y,U=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function Z(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(J,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:U.test(t)?JSON.parse(t):t)}(n)}catch(t){}K.set(t,e,n)}else n=void 0;return n}y.extend({hasData:function(t){return K.hasData(t)||Q.hasData(t)},data:function(t,e,n){return K.access(t,e,n)},removeData:function(t,e){K.remove(t,e)},_data:function(t,e,n){return Q.access(t,e,n)},_removeData:function(t,e){Q.remove(t,e)}}),y.fn.extend({data:function(t,e){var n,i,o,a=this[0],r=a&&a.attributes;if(void 0===t){if(this.length&&(o=K.get(a),1===a.nodeType&&!Q.get(a,"hasDataAttrs"))){for(n=r.length;n--;)r[n]&&0===(i=r[n].name).indexOf("data-")&&(i=y.camelCase(i.slice(5)),Z(a,i,o[i]));Q.set(a,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each((function(){K.set(this,t)})):X(this,(function(e){var n;if(a&&void 0===e)return void 0!==(n=K.get(a,t))||void 0!==(n=Z(a,t))?n:void 0;this.each((function(){K.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){K.remove(this,t)}))}}),y.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Q.get(t,e),n&&(!i||Array.isArray(n)?i=Q.access(t,e,y.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=y.queue(t,e),i=n.length,o=n.shift(),a=y._queueHooks(t,e);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete a.stop,o.call(t,(function(){y.dequeue(t,e)}),a)),!i&&a&&a.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Q.get(t,n)||Q.access(t,n,{empty:y.Callbacks("once memory").add((function(){Q.remove(t,[e+"queue",n])}))})}}),y.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?y.queue(this[0],t):void 0===e?this:this.each((function(){var n=y.queue(this,t,e);y._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&y.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){y.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,o=y.Deferred(),a=this,r=this.length,s=function(){--i||o.resolveWith(a,[a])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(n=Q.get(a[r],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),o.promise(e)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,tt=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),et=["Top","Right","Bottom","Left"],nt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&y.contains(t.ownerDocument,t)&&"none"===y.css(t,"display")},it=function(t,e,n,i){var o,a,r={};for(a in e)r[a]=t.style[a],t.style[a]=e[a];for(a in o=n.apply(t,i||[]),e)t.style[a]=r[a];return o};function ot(t,e,n,i){var o,a=1,r=20,s=i?function(){return i.cur()}:function(){return y.css(t,e,"")},l=s(),d=n&&n[3]||(y.cssNumber[e]?"":"px"),c=(y.cssNumber[e]||"px"!==d&&+l)&&tt.exec(y.css(t,e));if(c&&c[3]!==d){d=d||c[3],n=n||[],c=+l||1;do{c/=a=a||".5",y.style(t,e,c+d)}while(a!==(a=s()/l)&&1!==a&&--r)}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=d,i.start=c,i.end=o)),o}var at={};function rt(t){var e,n=t.ownerDocument,i=t.nodeName,o=at[i];return o||(e=n.body.appendChild(n.createElement(i)),o=y.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),at[i]=o,o)}function st(t,e){for(var n,i,o=[],a=0,r=t.length;a<r;a++)(i=t[a]).style&&(n=i.style.display,e?("none"===n&&(o[a]=Q.get(i,"display")||null,o[a]||(i.style.display="")),""===i.style.display&&nt(i)&&(o[a]=rt(i))):"none"!==n&&(o[a]="none",Q.set(i,"display",n)));for(a=0;a<r;a++)null!=o[a]&&(t[a].style.display=o[a]);return t}y.fn.extend({show:function(){return st(this,!0)},hide:function(){return st(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){nt(this)?y(this).show():y(this).hide()}))}});var lt=/^(?:checkbox|radio)$/i,dt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ct=/^$|\/(?:java|ecma)script/i,ut={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function pt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&O(t,e)?y.merge([t],n):n}function ht(t,e){for(var n=0,i=t.length;n<i;n++)Q.set(t[n],"globalEval",!e||Q.get(e[n],"globalEval"))}ut.optgroup=ut.option,ut.tbody=ut.tfoot=ut.colgroup=ut.caption=ut.thead,ut.th=ut.td;var ft,mt,gt=/<|&#?\w+;/;function bt(t,e,n,i,o){for(var a,r,s,l,d,c,u=e.createDocumentFragment(),p=[],h=0,f=t.length;h<f;h++)if((a=t[h])||0===a)if("object"===y.type(a))y.merge(p,a.nodeType?[a]:a);else if(gt.test(a)){for(r=r||u.appendChild(e.createElement("div")),s=(dt.exec(a)||["",""])[1].toLowerCase(),l=ut[s]||ut._default,r.innerHTML=l[1]+y.htmlPrefilter(a)+l[2],c=l[0];c--;)r=r.lastChild;y.merge(p,r.childNodes),(r=u.firstChild).textContent=""}else p.push(e.createTextNode(a));for(u.textContent="",h=0;a=p[h++];)if(i&&y.inArray(a,i)>-1)o&&o.push(a);else if(d=y.contains(a.ownerDocument,a),r=pt(u.appendChild(a),"script"),d&&ht(r),n)for(c=0;a=r[c++];)ct.test(a.type||"")&&n.push(a);return u}ft=r.createDocumentFragment().appendChild(r.createElement("div")),(mt=r.createElement("input")).setAttribute("type","radio"),mt.setAttribute("checked","checked"),mt.setAttribute("name","t"),ft.appendChild(mt),b.checkClone=ft.cloneNode(!0).cloneNode(!0).lastChild.checked,ft.innerHTML="<textarea>x</textarea>",b.noCloneChecked=!!ft.cloneNode(!0).lastChild.defaultValue;var vt=r.documentElement,yt=/^key/,xt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,wt=/^([^.]*)(?:\.(.+)|)/;function kt(){return!0}function _t(){return!1}function Ct(){try{return r.activeElement}catch(t){}}function Et(t,e,n,i,o,a){var r,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)Et(t,s,n,i,e[s],a);return t}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=_t;else if(!o)return t;return 1===a&&(r=o,(o=function(t){return y().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=y.guid++)),t.each((function(){y.event.add(this,e,o,i,n)}))}y.event={global:{},add:function(t,e,n,i,o){var a,r,s,l,d,c,u,p,h,f,m,g=Q.get(t);if(g)for(n.handler&&(n=(a=n).handler,o=a.selector),o&&y.find.matchesSelector(vt,o),n.guid||(n.guid=y.guid++),(l=g.events)||(l=g.events={}),(r=g.handle)||(r=g.handle=function(e){return void 0!==y&&y.event.triggered!==e.type?y.event.dispatch.apply(t,arguments):void 0}),d=(e=(e||"").match(F)||[""]).length;d--;)h=m=(s=wt.exec(e[d])||[])[1],f=(s[2]||"").split(".").sort(),h&&(u=y.event.special[h]||{},h=(o?u.delegateType:u.bindType)||h,u=y.event.special[h]||{},c=y.extend({type:h,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&y.expr.match.needsContext.test(o),namespace:f.join(".")},a),(p=l[h])||((p=l[h]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,i,f,r)||t.addEventListener&&t.addEventListener(h,r)),u.add&&(u.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,c):p.push(c),y.event.global[h]=!0)},remove:function(t,e,n,i,o){var a,r,s,l,d,c,u,p,h,f,m,g=Q.hasData(t)&&Q.get(t);if(g&&(l=g.events)){for(d=(e=(e||"").match(F)||[""]).length;d--;)if(h=m=(s=wt.exec(e[d])||[])[1],f=(s[2]||"").split(".").sort(),h){for(u=y.event.special[h]||{},p=l[h=(i?u.delegateType:u.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=a=p.length;a--;)c=p[a],!o&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(p.splice(a,1),c.selector&&p.delegateCount--,u.remove&&u.remove.call(t,c));r&&!p.length&&(u.teardown&&!1!==u.teardown.call(t,f,g.handle)||y.removeEvent(t,h,g.handle),delete l[h])}else for(h in l)y.event.remove(t,h+e[d],n,i,!0);y.isEmptyObject(l)&&Q.remove(t,"handle events")}},dispatch:function(t){var e,n,i,o,a,r,s=y.event.fix(t),l=new Array(arguments.length),d=(Q.get(this,"events")||{})[s.type]||[],c=y.event.special[s.type]||{};for(l[0]=s,e=1;e<arguments.length;e++)l[e]=arguments[e];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(r=y.event.handlers.call(this,s,d),e=0;(o=r[e++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,n=0;(a=o.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(a.namespace)||(s.handleObj=a,s.data=a.data,void 0!==(i=((y.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,l))&&!1===(s.result=i)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(t,e){var n,i,o,a,r,s=[],l=e.delegateCount,d=t.target;if(l&&d.nodeType&&!("click"===t.type&&t.button>=1))for(;d!==this;d=d.parentNode||this)if(1===d.nodeType&&("click"!==t.type||!0!==d.disabled)){for(a=[],r={},n=0;n<l;n++)void 0===r[o=(i=e[n]).selector+" "]&&(r[o]=i.needsContext?y(o,this).index(d)>-1:y.find(o,this,null,[d]).length),r[o]&&a.push(i);a.length&&s.push({elem:d,handlers:a})}return d=this,l<e.length&&s.push({elem:d,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(y.Event.prototype,t,{enumerable:!0,configurable:!0,get:y.isFunction(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[y.expando]?t:new y.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Ct()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Ct()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&O(this,"input"))return this.click(),!1},_default:function(t){return O(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},y.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},y.Event=function(t,e){if(!(this instanceof y.Event))return new y.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?kt:_t,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&y.extend(this,e),this.timeStamp=t&&t.timeStamp||y.now(),this[y.expando]=!0},y.Event.prototype={constructor:y.Event,isDefaultPrevented:_t,isPropagationStopped:_t,isImmediatePropagationStopped:_t,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=kt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=kt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=kt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},y.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&yt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&xt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},y.event.addProp),y.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){y.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,o=t.relatedTarget,a=t.handleObj;return o&&(o===i||y.contains(i,o))||(t.type=a.origType,n=a.handler.apply(this,arguments),t.type=e),n}}})),y.fn.extend({on:function(t,e,n,i){return Et(this,t,e,n,i)},one:function(t,e,n,i){return Et(this,t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,y(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=_t),this.each((function(){y.event.remove(this,t,n,e)}))}});var Mt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Tt=/<script|<style|<link/i,Lt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ot=/^true\/(.*)/,Dt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Bt(t,e){return O(t,"table")&&O(11!==e.nodeType?e:e.firstChild,"tr")&&y(">tbody",t)[0]||t}function St(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function zt(t){var e=Ot.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function At(t,e){var n,i,o,a,r,s,l,d;if(1===e.nodeType){if(Q.hasData(t)&&(a=Q.access(t),r=Q.set(e,a),d=a.events))for(o in delete r.handle,r.events={},d)for(n=0,i=d[o].length;n<i;n++)y.event.add(e,o,d[o][n]);K.hasData(t)&&(s=K.access(t),l=y.extend({},s),K.set(e,l))}}function $t(t,e){var n=e.nodeName.toLowerCase();"input"===n&&lt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function It(t,e,n,i){e=d.apply([],e);var o,a,r,s,l,c,u=0,p=t.length,h=p-1,f=e[0],m=y.isFunction(f);if(m||p>1&&"string"==typeof f&&!b.checkClone&&Lt.test(f))return t.each((function(o){var a=t.eq(o);m&&(e[0]=f.call(this,o,a.html())),It(a,e,n,i)}));if(p&&(a=(o=bt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===o.childNodes.length&&(o=a),a||i)){for(s=(r=y.map(pt(o,"script"),St)).length;u<p;u++)l=o,u!==h&&(l=y.clone(l,!0,!0),s&&y.merge(r,pt(l,"script"))),n.call(t[u],l,u);if(s)for(c=r[r.length-1].ownerDocument,y.map(r,zt),u=0;u<s;u++)l=r[u],ct.test(l.type||"")&&!Q.access(l,"globalEval")&&y.contains(c,l)&&(l.src?y._evalUrl&&y._evalUrl(l.src):v(l.textContent.replace(Dt,""),c))}return t}function Rt(t,e,n){for(var i,o=e?y.filter(e,t):t,a=0;null!=(i=o[a]);a++)n||1!==i.nodeType||y.cleanData(pt(i)),i.parentNode&&(n&&y.contains(i.ownerDocument,i)&&ht(pt(i,"script")),i.parentNode.removeChild(i));return t}y.extend({htmlPrefilter:function(t){return t.replace(Mt,"<$1></$2>")},clone:function(t,e,n){var i,o,a,r,s=t.cloneNode(!0),l=y.contains(t.ownerDocument,t);if(!(b.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||y.isXMLDoc(t)))for(r=pt(s),i=0,o=(a=pt(t)).length;i<o;i++)$t(a[i],r[i]);if(e)if(n)for(a=a||pt(t),r=r||pt(s),i=0,o=a.length;i<o;i++)At(a[i],r[i]);else At(t,s);return(r=pt(s,"script")).length>0&&ht(r,!l&&pt(t,"script")),s},cleanData:function(t){for(var e,n,i,o=y.event.special,a=0;void 0!==(n=t[a]);a++)if(V(n)){if(e=n[Q.expando]){if(e.events)for(i in e.events)o[i]?y.event.remove(n,i):y.removeEvent(n,i,e.handle);n[Q.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),y.fn.extend({detach:function(t){return Rt(this,t,!0)},remove:function(t){return Rt(this,t)},text:function(t){return X(this,(function(t){return void 0===t?y.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return It(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Bt(this,t).appendChild(t)}))},prepend:function(){return It(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Bt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return It(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return It(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(y.cleanData(pt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return y.clone(this,t,e)}))},html:function(t){return X(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Tt.test(t)&&!ut[(dt.exec(t)||["",""])[1].toLowerCase()]){t=y.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(y.cleanData(pt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return It(this,arguments,(function(e){var n=this.parentNode;y.inArray(this,t)<0&&(y.cleanData(pt(this)),n&&n.replaceChild(e,this))}),t)}}),y.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){y.fn[t]=function(t){for(var n,i=[],o=y(t),a=o.length-1,r=0;r<=a;r++)n=r===a?this:this.clone(!0),y(o[r])[e](n),c.apply(i,n.get());return this.pushStack(i)}}));var Ft=/^margin/,Ht=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),Pt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)};function Wt(t,e,n){var i,o,a,r,s=t.style;return(n=n||Pt(t))&&(""!==(r=n.getPropertyValue(e)||n[e])||y.contains(t.ownerDocument,t)||(r=y.style(t,e)),!b.pixelMarginRight()&&Ht.test(r)&&Ft.test(e)&&(i=s.width,o=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=r,r=n.width,s.width=i,s.minWidth=o,s.maxWidth=a)),void 0!==r?r+"":r}function jt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(l){l.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",l.innerHTML="",vt.appendChild(s);var t=n.getComputedStyle(l);e="1%"!==t.top,a="2px"===t.marginLeft,i="4px"===t.width,l.style.marginRight="50%",o="4px"===t.marginRight,vt.removeChild(s),l=null}}var e,i,o,a,s=r.createElement("div"),l=r.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",b.clearCloneStyle="content-box"===l.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(l),y.extend(b,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return t(),i},pixelMarginRight:function(){return t(),o},reliableMarginLeft:function(){return t(),a}}))}();var Nt=/^(none|table(?!-c[ea]).+)/,qt=/^--/,Xt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:"0",fontWeight:"400"},Yt=["Webkit","Moz","ms"],Qt=r.createElement("div").style;function Kt(t){var e=y.cssProps[t];return e||(e=y.cssProps[t]=function(t){if(t in Qt)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=Yt.length;n--;)if((t=Yt[n]+e)in Qt)return t}(t)||t),e}function Ut(t,e,n){var i=tt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function Jt(t,e,n,i,o){var a,r=0;for(a=n===(i?"border":"content")?4:"width"===e?1:0;a<4;a+=2)"margin"===n&&(r+=y.css(t,n+et[a],!0,o)),i?("content"===n&&(r-=y.css(t,"padding"+et[a],!0,o)),"margin"!==n&&(r-=y.css(t,"border"+et[a]+"Width",!0,o))):(r+=y.css(t,"padding"+et[a],!0,o),"padding"!==n&&(r+=y.css(t,"border"+et[a]+"Width",!0,o)));return r}function Zt(t,e,n){var i,o=Pt(t),a=Wt(t,e,o),r="border-box"===y.css(t,"boxSizing",!1,o);return Ht.test(a)?a:(i=r&&(b.boxSizingReliable()||a===t.style[e]),"auto"===a&&(a=t["offset"+e[0].toUpperCase()+e.slice(1)]),(a=parseFloat(a)||0)+Jt(t,e,n||(r?"border":"content"),i,o)+"px")}function Gt(t,e,n,i,o){return new Gt.prototype.init(t,e,n,i,o)}y.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Wt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,a,r,s=y.camelCase(e),l=qt.test(e),d=t.style;if(l||(e=Kt(s)),r=y.cssHooks[e]||y.cssHooks[s],void 0===n)return r&&"get"in r&&void 0!==(o=r.get(t,!1,i))?o:d[e];"string"===(a=typeof n)&&(o=tt.exec(n))&&o[1]&&(n=ot(t,e,o),a="number"),null!=n&&n==n&&("number"===a&&(n+=o&&o[3]||(y.cssNumber[s]?"":"px")),b.clearCloneStyle||""!==n||0!==e.indexOf("background")||(d[e]="inherit"),r&&"set"in r&&void 0===(n=r.set(t,n,i))||(l?d.setProperty(e,n):d[e]=n))}},css:function(t,e,n,i){var o,a,r,s=y.camelCase(e);return qt.test(e)||(e=Kt(s)),(r=y.cssHooks[e]||y.cssHooks[s])&&"get"in r&&(o=r.get(t,!0,n)),void 0===o&&(o=Wt(t,e,i)),"normal"===o&&e in Vt&&(o=Vt[e]),""===n||n?(a=parseFloat(o),!0===n||isFinite(a)?a||0:o):o}}),y.each(["height","width"],(function(t,e){y.cssHooks[e]={get:function(t,n,i){if(n)return!Nt.test(y.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Zt(t,e,i):it(t,Xt,(function(){return Zt(t,e,i)}))},set:function(t,n,i){var o,a=i&&Pt(t),r=i&&Jt(t,e,i,"border-box"===y.css(t,"boxSizing",!1,a),a);return r&&(o=tt.exec(n))&&"px"!==(o[3]||"px")&&(t.style[e]=n,n=y.css(t,e)),Ut(0,n,r)}}})),y.cssHooks.marginLeft=jt(b.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Wt(t,"marginLeft"))||t.getBoundingClientRect().left-it(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),y.each({margin:"",padding:"",border:"Width"},(function(t,e){y.cssHooks[t+e]={expand:function(n){for(var i=0,o={},a="string"==typeof n?n.split(" "):[n];i<4;i++)o[t+et[i]+e]=a[i]||a[i-2]||a[0];return o}},Ft.test(t)||(y.cssHooks[t+e].set=Ut)})),y.fn.extend({css:function(t,e){return X(this,(function(t,e,n){var i,o,a={},r=0;if(Array.isArray(e)){for(i=Pt(t),o=e.length;r<o;r++)a[e[r]]=y.css(t,e[r],!1,i);return a}return void 0!==n?y.style(t,e,n):y.css(t,e)}),t,e,arguments.length>1)}}),y.Tween=Gt,Gt.prototype={constructor:Gt,init:function(t,e,n,i,o,a){this.elem=t,this.prop=n,this.easing=o||y.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=a||(y.cssNumber[n]?"":"px")},cur:function(){var t=Gt.propHooks[this.prop];return t&&t.get?t.get(this):Gt.propHooks._default.get(this)},run:function(t){var e,n=Gt.propHooks[this.prop];return this.options.duration?this.pos=e=y.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Gt.propHooks._default.set(this),this}},Gt.prototype.init.prototype=Gt.prototype,Gt.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=y.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){y.fx.step[t.prop]?y.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[y.cssProps[t.prop]]&&!y.cssHooks[t.prop]?t.elem[t.prop]=t.now:y.style(t.elem,t.prop,t.now+t.unit)}}},Gt.propHooks.scrollTop=Gt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},y.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},y.fx=Gt.prototype.init,y.fx.step={};var te,ee,ne=/^(?:toggle|show|hide)$/,ie=/queueHooks$/;function oe(){ee&&(!1===r.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(oe):n.setTimeout(oe,y.fx.interval),y.fx.tick())}function ae(){return n.setTimeout((function(){te=void 0})),te=y.now()}function re(t,e){var n,i=0,o={height:t};for(e=e?1:0;i<4;i+=2-e)o["margin"+(n=et[i])]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function se(t,e,n){for(var i,o=(le.tweeners[e]||[]).concat(le.tweeners["*"]),a=0,r=o.length;a<r;a++)if(i=o[a].call(n,e,t))return i}function le(t,e,n){var i,o,a=0,r=le.prefilters.length,s=y.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var e=te||ae(),n=Math.max(0,d.startTime+d.duration-e),i=1-(n/d.duration||0),a=0,r=d.tweens.length;a<r;a++)d.tweens[a].run(i);return s.notifyWith(t,[d,i,n]),i<1&&r?n:(r||s.notifyWith(t,[d,1,0]),s.resolveWith(t,[d]),!1)},d=s.promise({elem:t,props:y.extend({},e),opts:y.extend(!0,{specialEasing:{},easing:y.easing._default},n),originalProperties:e,originalOptions:n,startTime:te||ae(),duration:n.duration,tweens:[],createTween:function(e,n){var i=y.Tween(t,d.opts,e,n,d.opts.specialEasing[e]||d.opts.easing);return d.tweens.push(i),i},stop:function(e){var n=0,i=e?d.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)d.tweens[n].run(1);return e?(s.notifyWith(t,[d,1,0]),s.resolveWith(t,[d,e])):s.rejectWith(t,[d,e]),this}}),c=d.props;for(!function(t,e){var n,i,o,a,r;for(n in t)if(o=e[i=y.camelCase(n)],a=t[n],Array.isArray(a)&&(o=a[1],a=t[n]=a[0]),n!==i&&(t[i]=a,delete t[n]),(r=y.cssHooks[i])&&"expand"in r)for(n in a=r.expand(a),delete t[i],a)n in t||(t[n]=a[n],e[n]=o);else e[i]=o}(c,d.opts.specialEasing);a<r;a++)if(i=le.prefilters[a].call(d,t,c,d.opts))return y.isFunction(i.stop)&&(y._queueHooks(d.elem,d.opts.queue).stop=y.proxy(i.stop,i)),i;return y.map(c,se,d),y.isFunction(d.opts.start)&&d.opts.start.call(t,d),d.progress(d.opts.progress).done(d.opts.done,d.opts.complete).fail(d.opts.fail).always(d.opts.always),y.fx.timer(y.extend(l,{elem:t,anim:d,queue:d.opts.queue})),d}y.Animation=y.extend(le,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return ot(n.elem,t,tt.exec(e),n),n}]},tweener:function(t,e){y.isFunction(t)?(e=t,t=["*"]):t=t.match(F);for(var n,i=0,o=t.length;i<o;i++)n=t[i],le.tweeners[n]=le.tweeners[n]||[],le.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,o,a,r,s,l,d,c,u="width"in e||"height"in e,p=this,h={},f=t.style,m=t.nodeType&&nt(t),g=Q.get(t,"fxshow");for(i in n.queue||(null==(r=y._queueHooks(t,"fx")).unqueued&&(r.unqueued=0,s=r.empty.fire,r.empty.fire=function(){r.unqueued||s()}),r.unqueued++,p.always((function(){p.always((function(){r.unqueued--,y.queue(t,"fx").length||r.empty.fire()}))}))),e)if(o=e[i],ne.test(o)){if(delete e[i],a=a||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!g||void 0===g[i])continue;m=!0}h[i]=g&&g[i]||y.style(t,i)}if((l=!y.isEmptyObject(e))||!y.isEmptyObject(h))for(i in u&&1===t.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(d=g&&g.display)&&(d=Q.get(t,"display")),"none"===(c=y.css(t,"display"))&&(d?c=d:(st([t],!0),d=t.style.display||d,c=y.css(t,"display"),st([t]))),("inline"===c||"inline-block"===c&&null!=d)&&"none"===y.css(t,"float")&&(l||(p.done((function(){f.display=d})),null==d&&(c=f.display,d="none"===c?"":c)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",p.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,h)l||(g?"hidden"in g&&(m=g.hidden):g=Q.access(t,"fxshow",{display:d}),a&&(g.hidden=!m),m&&st([t],!0),p.done((function(){for(i in m||st([t]),Q.remove(t,"fxshow"),h)y.style(t,i,h[i])}))),l=se(m?g[i]:0,i,p),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?le.prefilters.unshift(t):le.prefilters.push(t)}}),y.speed=function(t,e,n){var i=t&&"object"==typeof t?y.extend({},t):{complete:n||!n&&e||y.isFunction(t)&&t,duration:t,easing:n&&e||e&&!y.isFunction(e)&&e};return y.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in y.fx.speeds?i.duration=y.fx.speeds[i.duration]:i.duration=y.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){y.isFunction(i.old)&&i.old.call(this),i.queue&&y.dequeue(this,i.queue)},i},y.fn.extend({fadeTo:function(t,e,n,i){return this.filter(nt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var o=y.isEmptyObject(t),a=y.speed(e,n,i),r=function(){var e=le(this,y.extend({},t),a);(o||Q.get(this,"finish"))&&e.stop(!0)};return r.finish=r,o||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each((function(){var e=!0,o=null!=t&&t+"queueHooks",a=y.timers,r=Q.get(this);if(o)r[o]&&r[o].stop&&i(r[o]);else for(o in r)r[o]&&r[o].stop&&ie.test(o)&&i(r[o]);for(o=a.length;o--;)a[o].elem!==this||null!=t&&a[o].queue!==t||(a[o].anim.stop(n),e=!1,a.splice(o,1));!e&&n||y.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=Q.get(this),i=n[t+"queue"],o=n[t+"queueHooks"],a=y.timers,r=i?i.length:0;for(n.finish=!0,y.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=a.length;e--;)a[e].elem===this&&a[e].queue===t&&(a[e].anim.stop(!0),a.splice(e,1));for(e=0;e<r;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),y.each(["toggle","show","hide"],(function(t,e){var n=y.fn[e];y.fn[e]=function(t,i,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(re(e,!0),t,i,o)}})),y.each({slideDown:re("show"),slideUp:re("hide"),slideToggle:re("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){y.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),y.timers=[],y.fx.tick=function(){var t,e=0,n=y.timers;for(te=y.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||y.fx.stop(),te=void 0},y.fx.timer=function(t){y.timers.push(t),y.fx.start()},y.fx.interval=13,y.fx.start=function(){ee||(ee=!0,oe())},y.fx.stop=function(){ee=null},y.fx.speeds={slow:600,fast:200,_default:400},y.fn.delay=function(t,e){return t=y.fx&&y.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,i){var o=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(o)}}))},function(){var t=r.createElement("input"),e=r.createElement("select").appendChild(r.createElement("option"));t.type="checkbox",b.checkOn=""!==t.value,b.optSelected=e.selected,(t=r.createElement("input")).value="t",t.type="radio",b.radioValue="t"===t.value}();var de,ce=y.expr.attrHandle;y.fn.extend({attr:function(t,e){return X(this,y.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){y.removeAttr(this,t)}))}}),y.extend({attr:function(t,e,n){var i,o,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===t.getAttribute?y.prop(t,e,n):(1===a&&y.isXMLDoc(t)||(o=y.attrHooks[e.toLowerCase()]||(y.expr.match.bool.test(e)?de:void 0)),void 0!==n?null===n?void y.removeAttr(t,e):o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(i=o.get(t,e))?i:null==(i=y.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!b.radioValue&&"radio"===e&&O(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,o=e&&e.match(F);if(o&&1===t.nodeType)for(;n=o[i++];)t.removeAttribute(n)}}),de={set:function(t,e,n){return!1===e?y.removeAttr(t,n):t.setAttribute(n,n),n}},y.each(y.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=ce[e]||y.find.attr;ce[e]=function(t,e,i){var o,a,r=e.toLowerCase();return i||(a=ce[r],ce[r]=o,o=null!=n(t,e,i)?r:null,ce[r]=a),o}}));var ue=/^(?:input|select|textarea|button)$/i,pe=/^(?:a|area)$/i;function he(t){return(t.match(F)||[]).join(" ")}function fe(t){return t.getAttribute&&t.getAttribute("class")||""}y.fn.extend({prop:function(t,e){return X(this,y.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[y.propFix[t]||t]}))}}),y.extend({prop:function(t,e,n){var i,o,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&y.isXMLDoc(t)||(e=y.propFix[e]||e,o=y.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=y.find.attr(t,"tabindex");return e?parseInt(e,10):ue.test(t.nodeName)||pe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),b.optSelected||(y.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),y.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){y.propFix[this.toLowerCase()]=this})),y.fn.extend({addClass:function(t){var e,n,i,o,a,r,s,l=0;if(y.isFunction(t))return this.each((function(e){y(this).addClass(t.call(this,e,fe(this)))}));if("string"==typeof t&&t)for(e=t.match(F)||[];n=this[l++];)if(o=fe(n),i=1===n.nodeType&&" "+he(o)+" "){for(r=0;a=e[r++];)i.indexOf(" "+a+" ")<0&&(i+=a+" ");o!==(s=he(i))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,o,a,r,s,l=0;if(y.isFunction(t))return this.each((function(e){y(this).removeClass(t.call(this,e,fe(this)))}));if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(F)||[];n=this[l++];)if(o=fe(n),i=1===n.nodeType&&" "+he(o)+" "){for(r=0;a=e[r++];)for(;i.indexOf(" "+a+" ")>-1;)i=i.replace(" "+a+" "," ");o!==(s=he(i))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):y.isFunction(t)?this.each((function(n){y(this).toggleClass(t.call(this,n,fe(this),e),e)})):this.each((function(){var e,i,o,a;if("string"===n)for(i=0,o=y(this),a=t.match(F)||[];e=a[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=fe(this))&&Q.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Q.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+he(fe(n))+" ").indexOf(e)>-1)return!0;return!1}});var me=/\r/g;y.fn.extend({val:function(t){var e,n,i,o=this[0];return arguments.length?(i=y.isFunction(t),this.each((function(n){var o;1===this.nodeType&&(null==(o=i?t.call(this,n,y(this).val()):t)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=y.map(o,(function(t){return null==t?"":t+""}))),(e=y.valHooks[this.type]||y.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))}))):o?(e=y.valHooks[o.type]||y.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(me,""):null==n?"":n:void 0}}),y.extend({valHooks:{option:{get:function(t){var e=y.find.attr(t,"value");return null!=e?e:he(y.text(t))}},select:{get:function(t){var e,n,i,o=t.options,a=t.selectedIndex,r="select-one"===t.type,s=r?null:[],l=r?a+1:o.length;for(i=a<0?l:r?a:0;i<l;i++)if(((n=o[i]).selected||i===a)&&!n.disabled&&(!n.parentNode.disabled||!O(n.parentNode,"optgroup"))){if(e=y(n).val(),r)return e;s.push(e)}return s},set:function(t,e){for(var n,i,o=t.options,a=y.makeArray(e),r=o.length;r--;)((i=o[r]).selected=y.inArray(y.valHooks.option.get(i),a)>-1)&&(n=!0);return n||(t.selectedIndex=-1),a}}}}),y.each(["radio","checkbox"],(function(){y.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=y.inArray(y(t).val(),e)>-1}},b.checkOn||(y.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var ge=/^(?:focusinfocus|focusoutblur)$/;y.extend(y.event,{trigger:function(t,e,i,o){var a,s,l,d,c,u,p,h=[i||r],m=f.call(t,"type")?t.type:t,g=f.call(t,"namespace")?t.namespace.split("."):[];if(s=l=i=i||r,3!==i.nodeType&&8!==i.nodeType&&!ge.test(m+y.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(t=t[y.expando]?t:new y.Event(m,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:y.makeArray(e,[t]),p=y.event.special[m]||{},o||!p.trigger||!1!==p.trigger.apply(i,e))){if(!o&&!p.noBubble&&!y.isWindow(i)){for(d=p.delegateType||m,ge.test(d+m)||(s=s.parentNode);s;s=s.parentNode)h.push(s),l=s;l===(i.ownerDocument||r)&&h.push(l.defaultView||l.parentWindow||n)}for(a=0;(s=h[a++])&&!t.isPropagationStopped();)t.type=a>1?d:p.bindType||m,(u=(Q.get(s,"events")||{})[t.type]&&Q.get(s,"handle"))&&u.apply(s,e),(u=c&&s[c])&&u.apply&&V(s)&&(t.result=u.apply(s,e),!1===t.result&&t.preventDefault());return t.type=m,o||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(h.pop(),e)||!V(i)||c&&y.isFunction(i[m])&&!y.isWindow(i)&&((l=i[c])&&(i[c]=null),y.event.triggered=m,i[m](),y.event.triggered=void 0,l&&(i[c]=l)),t.result}},simulate:function(t,e,n){var i=y.extend(new y.Event,n,{type:t,isSimulated:!0});y.event.trigger(i,null,e)}}),y.fn.extend({trigger:function(t,e){return this.each((function(){y.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return y.event.trigger(t,e,n,!0)}}),y.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){y.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}})),y.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),b.focusin="onfocusin"in n,b.focusin||y.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){y.event.simulate(e,t.target,y.event.fix(t))};y.event.special[e]={setup:function(){var i=this.ownerDocument||this,o=Q.access(i,e);o||i.addEventListener(t,n,!0),Q.access(i,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=Q.access(i,e)-1;o?Q.access(i,e,o):(i.removeEventListener(t,n,!0),Q.remove(i,e))}}}));var be=n.location,ve=y.now(),ye=/\?/;y.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||y.error("Invalid XML: "+t),e};var xe=/\[\]$/,we=/\r?\n/g,ke=/^(?:submit|button|image|reset|file)$/i,_e=/^(?:input|select|textarea|keygen)/i;function Ce(t,e,n,i){var o;if(Array.isArray(e))y.each(e,(function(e,o){n||xe.test(t)?i(t,o):Ce(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,n,i)}));else if(n||"object"!==y.type(e))i(t,e);else for(o in e)Ce(t+"["+o+"]",e[o],n,i)}y.param=function(t,e){var n,i=[],o=function(t,e){var n=y.isFunction(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(t)||t.jquery&&!y.isPlainObject(t))y.each(t,(function(){o(this.name,this.value)}));else for(n in t)Ce(n,t[n],e,o);return i.join("&")},y.fn.extend({serialize:function(){return y.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=y.prop(this,"elements");return t?y.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!y(this).is(":disabled")&&_e.test(this.nodeName)&&!ke.test(t)&&(this.checked||!lt.test(t))})).map((function(t,e){var n=y(this).val();return null==n?null:Array.isArray(n)?y.map(n,(function(t){return{name:e.name,value:t.replace(we,"\r\n")}})):{name:e.name,value:n.replace(we,"\r\n")}})).get()}});var Ee=/%20/g,Me=/#.*$/,Te=/([?&])_=[^&]*/,Le=/^(.*?):[ \t]*([^\r\n]*)$/gm,Oe=/^(?:GET|HEAD)$/,De=/^\/\//,Be={},Se={},ze="*/".concat("*"),Ae=r.createElement("a");function $e(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,o=0,a=e.toLowerCase().match(F)||[];if(y.isFunction(n))for(;i=a[o++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Ie(t,e,n,i){var o={},a=t===Se;function r(s){var l;return o[s]=!0,y.each(t[s]||[],(function(t,s){var d=s(e,n,i);return"string"!=typeof d||a||o[d]?a?!(l=d):void 0:(e.dataTypes.unshift(d),r(d),!1)})),l}return r(e.dataTypes[0])||!o["*"]&&r("*")}function Re(t,e){var n,i,o=y.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i||(i={}))[n]=e[n]);return i&&y.extend(!0,t,i),t}Ae.href=be.href,y.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:be.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(be.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ze,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":y.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Re(Re(t,y.ajaxSettings),e):Re(y.ajaxSettings,t)},ajaxPrefilter:$e(Be),ajaxTransport:$e(Se),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,o,a,s,l,d,c,u,p,h,f=y.ajaxSetup({},e),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?y(m):y.event,b=y.Deferred(),v=y.Callbacks("once memory"),x=f.statusCode||{},w={},k={},_="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=Le.exec(a);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(t,e){return null==c&&(t=k[t.toLowerCase()]=k[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==c&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)C.always(t[C.status]);else for(e in t)x[e]=[x[e],t[e]];return this},abort:function(t){var e=t||_;return i&&i.abort(e),E(0,e),this}};if(b.promise(C),f.url=((t||f.url||be.href)+"").replace(De,be.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(F)||[""],null==f.crossDomain){d=r.createElement("a");try{d.href=f.url,d.href=d.href,f.crossDomain=Ae.protocol+"//"+Ae.host!=d.protocol+"//"+d.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=y.param(f.data,f.traditional)),Ie(Be,f,e,C),c)return C;for(p in(u=y.event&&f.global)&&0==y.active++&&y.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Oe.test(f.type),o=f.url.replace(Me,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ee,"+")):(h=f.url.slice(o.length),f.data&&(o+=(ye.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(Te,"$1"),h=(ye.test(o)?"&":"?")+"_="+ve+++h),f.url=o+h),f.ifModified&&(y.lastModified[o]&&C.setRequestHeader("If-Modified-Since",y.lastModified[o]),y.etag[o]&&C.setRequestHeader("If-None-Match",y.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+ze+"; q=0.01":""):f.accepts["*"]),f.headers)C.setRequestHeader(p,f.headers[p]);if(f.beforeSend&&(!1===f.beforeSend.call(m,C,f)||c))return C.abort();if(_="abort",v.add(f.complete),C.done(f.success),C.fail(f.error),i=Ie(Se,f,e,C)){if(C.readyState=1,u&&g.trigger("ajaxSend",[C,f]),c)return C;f.async&&f.timeout>0&&(l=n.setTimeout((function(){C.abort("timeout")}),f.timeout));try{c=!1,i.send(w,E)}catch(t){if(c)throw t;E(-1,t)}}else E(-1,"No Transport");function E(t,e,r,s){var d,p,h,w,k,_=e;c||(c=!0,l&&n.clearTimeout(l),i=void 0,a=s||"",C.readyState=t>0?4:0,d=t>=200&&t<300||304===t,r&&(w=function(t,e,n){for(var i,o,a,r,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in s)if(s[o]&&s[o].test(i)){l.unshift(o);break}if(l[0]in n)a=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){a=o;break}r||(r=o)}a=a||r}if(a)return a!==l[0]&&l.unshift(a),n[a]}(f,C,r)),w=function(t,e,n,i){var o,a,r,s,l,d={},c=t.dataTypes.slice();if(c[1])for(r in t.converters)d[r.toLowerCase()]=t.converters[r];for(a=c.shift();a;)if(t.responseFields[a]&&(n[t.responseFields[a]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=a,a=c.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(r=d[l+" "+a]||d["* "+a]))for(o in d)if((s=o.split(" "))[1]===a&&(r=d[l+" "+s[0]]||d["* "+s[0]])){!0===r?r=d[o]:!0!==d[o]&&(a=s[0],c.unshift(s[1]));break}if(!0!==r)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+l+" to "+a}}}return{state:"success",data:e}}(f,w,C,d),d?(f.ifModified&&((k=C.getResponseHeader("Last-Modified"))&&(y.lastModified[o]=k),(k=C.getResponseHeader("etag"))&&(y.etag[o]=k)),204===t||"HEAD"===f.type?_="nocontent":304===t?_="notmodified":(_=w.state,p=w.data,d=!(h=w.error))):(h=_,!t&&_||(_="error",t<0&&(t=0))),C.status=t,C.statusText=(e||_)+"",d?b.resolveWith(m,[p,_,C]):b.rejectWith(m,[C,_,h]),C.statusCode(x),x=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[C,f,d?p:h]),v.fireWith(m,[C,_]),u&&(g.trigger("ajaxComplete",[C,f]),--y.active||y.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,n){return y.get(t,e,n,"json")},getScript:function(t,e){return y.get(t,void 0,e,"script")}}),y.each(["get","post"],(function(t,e){y[e]=function(t,n,i,o){return y.isFunction(n)&&(o=o||i,i=n,n=void 0),y.ajax(y.extend({url:t,type:e,dataType:o,data:n,success:i},y.isPlainObject(t)&&t))}})),y._evalUrl=function(t){return y.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},y.fn.extend({wrapAll:function(t){var e;return this[0]&&(y.isFunction(t)&&(t=t.call(this[0])),e=y(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return y.isFunction(t)?this.each((function(e){y(this).wrapInner(t.call(this,e))})):this.each((function(){var e=y(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=y.isFunction(t);return this.each((function(n){y(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){y(this).replaceWith(this.childNodes)})),this}}),y.expr.pseudos.hidden=function(t){return!y.expr.pseudos.visible(t)},y.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},y.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Fe={0:200,1223:204},He=y.ajaxSettings.xhr();b.cors=!!He&&"withCredentials"in He,b.ajax=He=!!He,y.ajaxTransport((function(t){var e,i;if(b.cors||He&&!t.crossDomain)return{send:function(o,a){var r,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)s[r]=t.xhrFields[r];for(r in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(r,o[r]);e=function(t){return function(){e&&(e=i=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Fe[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),i=s.onerror=e("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){e&&i()}))},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),y.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),y.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return y.globalEval(t),t}}}),y.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),y.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain)return{send:function(i,o){e=y("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&o("error"===t.type?404:200,t.type)}),r.head.appendChild(e[0])},abort:function(){n&&n()}}}));var Pe,We=[],je=/(=)\?(?=&|$)|\?\?/;y.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=We.pop()||y.expando+"_"+ve++;return this[t]=!0,t}}),y.ajaxPrefilter("json jsonp",(function(t,e,i){var o,a,r,s=!1!==t.jsonp&&(je.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&je.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=y.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(je,"$1"+o):!1!==t.jsonp&&(t.url+=(ye.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return r||y.error(o+" was not called"),r[0]},t.dataTypes[0]="json",a=n[o],n[o]=function(){r=arguments},i.always((function(){void 0===a?y(n).removeProp(o):n[o]=a,t[o]&&(t.jsonpCallback=e.jsonpCallback,We.push(o)),r&&y.isFunction(a)&&a(r[0]),r=a=void 0})),"script"})),b.createHTMLDocument=((Pe=r.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Pe.childNodes.length),y.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(b.createHTMLDocument?((i=(e=r.implementation.createHTMLDocument("")).createElement("base")).href=r.location.href,e.head.appendChild(i)):e=r),a=!n&&[],(o=D.exec(t))?[e.createElement(o[1])]:(o=bt([t],e,a),a&&a.length&&y(a).remove(),y.merge([],o.childNodes)));var i,o,a},y.fn.load=function(t,e,n){var i,o,a,r=this,s=t.indexOf(" ");return s>-1&&(i=he(t.slice(s)),t=t.slice(0,s)),y.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),r.length>0&&y.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done((function(t){a=arguments,r.html(i?y("<div>").append(y.parseHTML(t)).find(i):t)})).always(n&&function(t,e){r.each((function(){n.apply(this,a||[t.responseText,e,t])}))}),this},y.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){y.fn[e]=function(t){return this.on(e,t)}})),y.expr.pseudos.animated=function(t){return y.grep(y.timers,(function(e){return t===e.elem})).length},y.offset={setOffset:function(t,e,n){var i,o,a,r,s,l,d=y.css(t,"position"),c=y(t),u={};"static"===d&&(t.style.position="relative"),s=c.offset(),a=y.css(t,"top"),l=y.css(t,"left"),("absolute"===d||"fixed"===d)&&(a+l).indexOf("auto")>-1?(r=(i=c.position()).top,o=i.left):(r=parseFloat(a)||0,o=parseFloat(l)||0),y.isFunction(e)&&(e=e.call(t,n,y.extend({},s))),null!=e.top&&(u.top=e.top-s.top+r),null!=e.left&&(u.left=e.left-s.left+o),"using"in e?e.using.call(t,u):c.css(u)}},y.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){y.offset.setOffset(this,t,e)}));var e,n,i,o,a=this[0];return a?a.getClientRects().length?(i=a.getBoundingClientRect(),n=(e=a.ownerDocument).documentElement,o=e.defaultView,{top:i.top+o.pageYOffset-n.clientTop,left:i.left+o.pageXOffset-n.clientLeft}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===y.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),O(t[0],"html")||(i=t.offset()),i={top:i.top+y.css(t[0],"borderTopWidth",!0),left:i.left+y.css(t[0],"borderLeftWidth",!0)}),{top:e.top-i.top-y.css(n,"marginTop",!0),left:e.left-i.left-y.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===y.css(t,"position");)t=t.offsetParent;return t||vt}))}}),y.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;y.fn[t]=function(i){return X(this,(function(t,i,o){var a;if(y.isWindow(t)?a=t:9===t.nodeType&&(a=t.defaultView),void 0===o)return a?a[e]:t[i];a?a.scrollTo(n?a.pageXOffset:o,n?o:a.pageYOffset):t[i]=o}),t,i,arguments.length)}})),y.each(["top","left"],(function(t,e){y.cssHooks[e]=jt(b.pixelPosition,(function(t,n){if(n)return n=Wt(t,e),Ht.test(n)?y(t).position()[e]+"px":n}))})),y.each({Height:"height",Width:"width"},(function(t,e){y.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){y.fn[i]=function(o,a){var r=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===a?"margin":"border");return X(this,(function(e,n,o){var a;return y.isWindow(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(a=e.documentElement,Math.max(e.body["scroll"+t],a["scroll"+t],e.body["offset"+t],a["offset"+t],a["client"+t])):void 0===o?y.css(e,n,s):y.style(e,n,o,s)}),e,r?o:void 0,r)}}))})),y.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),y.holdReady=function(t){t?y.readyWait++:y.ready(!0)},y.isArray=Array.isArray,y.parseJSON=JSON.parse,y.nodeName=O,void 0===(i=function(){return y}.apply(e,[]))||(t.exports=i);var Ne=n.jQuery,qe=n.$;return y.noConflict=function(t){return n.$===y&&(n.$=qe),t&&n.jQuery===y&&(n.jQuery=Ne),y},o||(n.jQuery=n.$=y),y}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l}));let i="https://readerapi.codepolitan.com/";function o(t){return 200!==t.status?(console.log("Error : "+t.status),Promise.reject(new Error(t.statusText))):Promise.resolve(t)}function a(t){return t.json()}function r(t){console.log("Error : "+t)}function s(){"caches"in window&&caches.match(i+"articles").then((function(t){t&&t.json().then((function(t){let e="";t.result.forEach((function(t){e+=`\n <div class="card">\n <a href="./article.html?id=${t.id}">\n <div class="card-image waves-effect waves-block waves-light">\n <img src="${t.thumbnail}" />\n </div>\n </a>\n <div class="card-content">\n <span class="card-title truncate">${t.title}</span>\n <p>${t.description}</p>\n </div>\n </div>\n `})),document.getElementById("articles").innerHTML=e}))})),fetch(i+"articles").then(o).then(a).then((function(t){let e="";t.result.forEach((function(t){e+=`\n <div class="card">\n <a href="./article.html?id=${t.id}">\n <div class="card-image waves-effect waves-block waves-light">\n <img src="${t.thumbnail}" />\n </div>\n </a>\n <div class="card-content">\n <span class="card-title truncate">${t.title}</span>\n <p>${t.description}</p>\n </div>\n </div>\n `})),document.getElementById("articles").innerHTML=e,console.log(t.result)})).catch(r)}function l(){var t=new URLSearchParams(window.location.search).get("id");"caches"in window&&caches.match(i+"article/"+t).then((function(t){t&&t.json().then((function(t){var e=`\n <div class="card">\n <div class="card-image waves-effect waves-block waves-light">\n <img src="${t.result.cover}" />\n </div>\n <div class="card-content">\n <span class="card-title">${t.result.post_title}</span>\n ${snarkdown(t.result.post_content)}\n </div>\n </div>\n `;document.getElementById("body-content").innerHTML=e}))})),fetch(i+"article/"+t).then(o).then(a).then((function(t){console.log(t);let e=`\n <div class="card">\n <div class="card-image waves-effect waves-block waves-light">\n <img src="${t.result.cover}" />\n </div>\n <div class="card-content">\n <span class="card-title">${t.result.post_title}</span>\n ${snarkdown(t.result.post_content)}\n </div>\n </div>\n `;document.getElementById("body-content").innerHTML=e}))}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){(function(n,i,o,a){var r,s=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var a=Object.getPrototypeOf(e);return null===a?void 0:t(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(); /*! * Materialize v1.0.0 (http://materializecss.com) * Copyright 2014-2017 Materialize * MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE) */function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}window.cash=function(){var t,e=document,n=window,i=Array.prototype,o=i.slice,a=i.filter,r=i.push,s=function(){},l=function(t){return typeof t==typeof s&&t.call},d=function(t){return"string"==typeof t},c=/^#[\w-]*$/,u=/^\.[\w-]*$/,p=/<.+>/,h=/^\w+$/;function f(t,n){return n=n||e,u.test(t)?n.getElementsByClassName(t.slice(1)):h.test(t)?n.getElementsByTagName(t):n.querySelectorAll(t)}function m(n){if(!t){var i=(t=e.implementation.createHTMLDocument(null)).createElement("base");i.href=e.location.href,t.head.appendChild(i)}return t.body.innerHTML=n,t.body.childNodes}function g(t){"loading"!==e.readyState?t():e.addEventListener("DOMContentLoaded",t)}function b(t,i){if(!t)return this;if(t.cash&&t!==n)return t;var o,a=t,r=0;if(d(t))a=c.test(t)?e.getElementById(t.slice(1)):p.test(t)?m(t):f(t,i);else if(l(t))return g(t),this;if(!a)return this;if(a.nodeType||a===n)this[0]=a,this.length=1;else for(o=this.length=a.length;r<o;r++)this[r]=a[r];return this}function v(t,e){return new b(t,e)}var y=v.fn=v.prototype=b.prototype={cash:!0,length:0,push:r,splice:i.splice,map:i.map,init:b};function x(t,e){for(var n=t.length,i=0;i<n&&!1!==e.call(t[i],t[i],i,t);i++);}function w(t,e){var n=t&&(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector);return!!n&&n.call(t,e)}function k(t){return d(t)?w:t.cash?function(e){return t.is(e)}:function(t,e){return t===e}}function _(t){return v(o.call(t).filter((function(t,e,n){return n.indexOf(t)===e})))}Object.defineProperty(y,"constructor",{value:v}),v.parseHTML=m,v.noop=s,v.isFunction=l,v.isString=d,v.extend=y.extend=function(t){t=t||{};var e=o.call(arguments),n=e.length,i=1;for(1===e.length&&(t=this,i=0);i<n;i++)if(e[i])for(var a in e[i])e[i].hasOwnProperty(a)&&(t[a]=e[i][a]);return t},v.extend({merge:function(t,e){for(var n=+e.length,i=t.length,o=0;o<n;i++,o++)t[i]=e[o];return t.length=i,t},each:x,matches:w,unique:_,isArray:Array.isArray,isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)}});var C=v.uid="_cash"+Date.now();function E(t){return t[C]=t[C]||{}}function M(t,e,n){return E(t)[e]=n}function T(t,e){var n=E(t);return void 0===n[e]&&(n[e]=t.dataset?t.dataset[e]:v(t).attr("data-"+e)),n[e]}y.extend({data:function(t,e){if(d(t))return void 0===e?T(this[0],t):this.each((function(n){return M(n,t,e)}));for(var n in t)this.data(n,t[n]);return this},removeData:function(t){return this.each((function(e){return i=t,void((o=E(n=e))?delete o[i]:n.dataset?delete n.dataset[i]:v(n).removeAttr("data-"+name));var n,i,o}))}});var L=/\S+/g;function O(t){return d(t)&&t.match(L)}function D(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}function B(t,e,n){t.classList?t.classList.add(e):n.indexOf(" "+e+" ")&&(t.className+=" "+e)}function S(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(e,"")}y.extend({addClass:function(t){var e=O(t);return e?this.each((function(t){var n=" "+t.className+" ";x(e,(function(e){B(t,e,n)}))})):this},attr:function(t,e){if(t){if(d(t))return void 0===e?this[0]?this[0].getAttribute?this[0].getAttribute(t):this[0][t]:void 0:this.each((function(n){n.setAttribute?n.setAttribute(t,e):n[t]=e}));for(var n in t)this.attr(n,t[n]);return this}},hasClass:function(t){var e=!1,n=O(t);return n&&n.length&&this.each((function(t){return!(e=D(t,n[0]))})),e},prop:function(t,e){if(d(t))return void 0===e?this[0][t]:this.each((function(n){n[t]=e}));for(var n in t)this.prop(n,t[n]);return this},removeAttr:function(t){return this.each((function(e){e.removeAttribute?e.removeAttribute(t):delete e[t]}))},removeClass:function(t){if(!arguments.length)return this.attr("class","");var e=O(t);return e?this.each((function(t){x(e,(function(e){S(t,e)}))})):this},removeProp:function(t){return this.each((function(e){delete e[t]}))},toggleClass:function(t,e){if(void 0!==e)return this[e?"addClass":"removeClass"](t);var n=O(t);return n?this.each((function(t){var e=" "+t.className+" ";x(n,(function(n){D(t,n)?S(t,n):B(t,n,e)}))})):this}}),y.extend({add:function(t,e){return _(v.merge(this,v(t,e)))},each:function(t){return x(this,t),this},eq:function(t){return v(this.get(t))},filter:function(t){if(!t)return this;var e=l(t)?t:k(t);return v(a.call(this,(function(n){return e(n,t)})))},first:function(){return this.eq(0)},get:function(t){return void 0===t?o.call(this):t<0?this[t+this.length]:this[t]},index:function(t){var e=t?v(t)[0]:this[0],n=t?this:v(e).parent().children();return o.call(n).indexOf(e)},last:function(){return this.eq(-1)}});var z,A,$,I,R,F=(I=/(?:^\w|[A-Z]|\b\w)/g,R=/[\s-_]+/g,function(t){return t.replace(I,(function(t,e){return t[0===e?"toLowerCase":"toUpperCase"]()})).replace(R,"")}),H=(z={},A=document.createElement("div"),$=A.style,function(t){if(t=F(t),z[t])return z[t];var e=t.charAt(0).toUpperCase()+t.slice(1);return x((t+" "+["webkit","moz","ms","o"].join(e+" ")+e).split(" "),(function(e){if(e in $)return z[e]=t=z[t]=e,!1})),z[t]});function P(t,e){return parseInt(n.getComputedStyle(t[0],null)[e],10)||0}function W(t,e,n){var i,o=T(t,"_cashEvents"),a=o&&o[e];a&&(n?(t.removeEventListener(e,n),0<=(i=a.indexOf(n))&&a.splice(i,1)):(x(a,(function(n){t.removeEventListener(e,n)})),a=[]))}function j(t,e){return"&"+encodeURIComponent(t)+"="+encodeURIComponent(e).replace(/%20/g,"+")}function N(t){var e,n,i,o=t.type;if(!o)return null;switch(o.toLowerCase()){case"select-one":return 0<=(i=(n=t).selectedIndex)?n.options[i].value:null;case"select-multiple":return e=[],x(t.options,(function(t){t.selected&&e.push(t.value)})),e.length?e:null;case"radio":case"checkbox":return t.checked?t.value:null;default:return t.value?t.value:null}}function q(t,e,n){var i=d(e);i||!e.length?x(t,i?function(t){return t.insertAdjacentHTML(n?"afterbegin":"beforeend",e)}:function(t,i){return function(t,e,n){if(n){var i=t.childNodes[0];t.insertBefore(e,i)}else t.appendChild(e)}(t,0===i?e:e.cloneNode(!0),n)}):x(e,(function(e){return q(t,e,n)}))}v.prefixedProp=H,v.camelCase=F,y.extend({css:function(t,e){if(d(t))return t=H(t),1<arguments.length?this.each((function(n){return n.style[t]=e})):n.getComputedStyle(this[0])[t];for(var i in t)this.css(i,t[i]);return this}}),x(["Width","Height"],(function(t){var e=t.toLowerCase();y[e]=function(){return this[0].getBoundingClientRect()[e]},y["inner"+t]=function(){return this[0]["client"+t]},y["outer"+t]=function(e){return this[0]["offset"+t]+(e?P(this,"margin"+("Width"===t?"Left":"Top"))+P(this,"margin"+("Width"===t?"Right":"Bottom")):0)}})),y.extend({off:function(t,e){return this.each((function(n){return W(n,t,e)}))},on:function(t,e,n,i){var o;if(!d(t)){for(var a in t)this.on(a,e,t[a]);return this}return l(e)&&(n=e,e=null),"ready"===t?(g(n),this):(e&&(o=n,n=function(t){for(var n=t.target;!w(n,e);){if(n===this||null===n)return!1;n=n.parentNode}n&&o.call(n,t)}),this.each((function(e){var o,a,r,s,l=n;i&&(l=function(){n.apply(this,arguments),W(e,t,l)}),a=t,r=l,(s=T(o=e,"_cashEvents")||M(o,"_cashEvents",{}))[a]=s[a]||[],s[a].push(r),o.addEventListener(a,r)})))},one:function(t,e,n){return this.on(t,e,n,!0)},ready:g,trigger:function(t,e){if(document.createEvent){var n=document.createEvent("HTMLEvents");return n.initEvent(t,!0,!1),n=this.extend(n,e),this.each((function(t){return t.dispatchEvent(n)}))}}}),y.extend({serialize:function(){var t="";return x(this[0].elements||this,(function(e){if(!e.disabled&&"FIELDSET"!==e.tagName){var n=e.name;switch(e.type.toLowerCase()){case"file":case"reset":case"submit":case"button":break;case"select-multiple":var i=N(e);null!==i&&x(i,(function(e){t+=j(n,e)}));break;default:var o=N(e);null!==o&&(t+=j(n,o))}}})),t.substr(1)},val:function(t){return void 0===t?N(this[0]):this.each((function(e){return e.value=t}))}}),y.extend({after:function(t){return v(t).insertAfter(this),this},append:function(t){return q(this,t),this},appendTo:function(t){return q(v(t),this),this},before:function(t){return v(t).insertBefore(this),this},clone:function(){return v(this.map((function(t){return t.cloneNode(!0)})))},empty:function(){return this.html(""),this},html:function(t){if(void 0===t)return this[0].innerHTML;var e=t.nodeType?t[0].outerHTML:t;return this.each((function(t){return t.innerHTML=e}))},insertAfter:function(t){var e=this;return v(t).each((function(t,n){var i=t.parentNode,o=t.nextSibling;e.each((function(t){i.insertBefore(0===n?t:t.cloneNode(!0),o)}))})),this},insertBefore:function(t){var e=this;return v(t).each((function(t,n){var i=t.parentNode;e.each((function(e){i.insertBefore(0===n?e:e.cloneNode(!0),t)}))})),this},prepend:function(t){return q(this,t,!0),this},prependTo:function(t){return q(v(t),this,!0),this},remove:function(){return this.each((function(t){if(t.parentNode)return t.parentNode.removeChild(t)}))},text:function(t){return void 0===t?this[0].textContent:this.each((function(e){return e.textContent=t}))}});var X=e.documentElement;return y.extend({position:function(){var t=this[0];return{left:t.offsetLeft,top:t.offsetTop}},offset:function(){var t=this[0].getBoundingClientRect();return{top:t.top+n.pageYOffset-X.clientTop,left:t.left+n.pageXOffset-X.clientLeft}},offsetParent:function(){return v(this[0].offsetParent)}}),y.extend({children:function(t){var e=[];return this.each((function(t){r.apply(e,t.children)})),e=_(e),t?e.filter((function(e){return w(e,t)})):e},closest:function(t){return!t||this.length<1?v():this.is(t)?this.filter(t):this.parent().closest(t)},is:function(t){if(!t)return!1;var e=!1,n=k(t);return this.each((function(i){return!(e=n(i,t))})),e},find:function(t){if(!t||t.nodeType)return v(t&&this.has(t).length?t:null);var e=[];return this.each((function(n){r.apply(e,f(t,n))})),_(e)},has:function(t){var e=d(t)?function(e){return 0!==f(t,e).length}:function(e){return e.contains(t)};return this.filter(e)},next:function(){return v(this[0].nextElementSibling)},not:function(t){if(!t)return this;var e=k(t);return this.filter((function(n){return!e(n,t)}))},parent:function(){var t=[];return this.each((function(e){e&&e.parentNode&&t.push(e.parentNode)})),_(t)},parents:function(t){var n,i=[];return this.each((function(o){for(n=o;n&&n.parentNode&&n!==e.body.parentNode;)n=n.parentNode,(!t||t&&w(n,t))&&i.push(n)})),_(i)},prev:function(){return v(this[0].previousElementSibling)},siblings:function(t){var e=this.parent().children(t),n=this[0];return e.filter((function(t){return t!==n}))}}),v}();var p,h=function(){function t(e,n,i){u(this,t),n instanceof Element||console.error(Error(n+" is not an HTML Element"));var o=e.getInstance(n);o&&o.destroy(),this.el=n,this.$el=cash(n)}return l(t,null,[{key:"init",value:function(t,e,n){var i=null;if(e instanceof Element)i=new t(e,n);else if(e&&(e.jquery||e.cash||e instanceof NodeList)){for(var o=[],a=0;a<e.length;a++)o.push(new t(e[a],n));i=o}return i}}]),t}();(p=window).Package?M={}:p.M={},M.jQueryLoaded=!!n,void 0!==(r=function(){return M}.apply(e,[]))&&(t.exports=r),M.version="1.0.0",M.keys={TAB:9,ENTER:13,ESC:27,ARROW_UP:38,ARROW_DOWN:40},M.tabPressed=!1,M.keyDown=!1;document.addEventListener("keydown",(function(t){M.keyDown=!0,t.which!==M.keys.TAB&&t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ARROW_UP||(M.tabPressed=!0)}),!0),document.addEventListener("keyup",(function(t){M.keyDown=!1,t.which!==M.keys.TAB&&t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ARROW_UP||(M.tabPressed=!1)}),!0),document.addEventListener("focus",(function(t){M.keyDown&&document.body.classList.add("keyboard-focused")}),!0),document.addEventListener("blur",(function(t){document.body.classList.remove("keyboard-focused")}),!0),M.initializeJqueryWrapper=function(t,e,n){i.fn[e]=function(o){if(t.prototype[o]){var a=Array.prototype.slice.call(arguments,1);if("get"===o.slice(0,3)){var r=this.first()[0][n];return r[o].apply(r,a)}return this.each((function(){var t=this[n];t[o].apply(t,a)}))}if("object"==typeof o||!o)return t.init(this,o),this;i.error("Method "+o+" does not exist on jQuery."+e)}},M.AutoInit=function(t){var e=t||document.body,n={Autocomplete:e.querySelectorAll(".autocomplete:not(.no-autoinit)"),Carousel:e.querySelectorAll(".carousel:not(.no-autoinit)"),Chips:e.querySelectorAll(".chips:not(.no-autoinit)"),Collapsible:e.querySelectorAll(".collapsible:not(.no-autoinit)"),Datepicker:e.querySelectorAll(".datepicker:not(.no-autoinit)"),Dropdown:e.querySelectorAll(".dropdown-trigger:not(.no-autoinit)"),Materialbox:e.querySelectorAll(".materialboxed:not(.no-autoinit)"),Modal:e.querySelectorAll(".modal:not(.no-autoinit)"),Parallax:e.querySelectorAll(".parallax:not(.no-autoinit)"),Pushpin:e.querySelectorAll(".pushpin:not(.no-autoinit)"),ScrollSpy:e.querySelectorAll(".scrollspy:not(.no-autoinit)"),FormSelect:e.querySelectorAll("select:not(.no-autoinit)"),Sidenav:e.querySelectorAll(".sidenav:not(.no-autoinit)"),Tabs:e.querySelectorAll(".tabs:not(.no-autoinit)"),TapTarget:e.querySelectorAll(".tap-target:not(.no-autoinit)"),Timepicker:e.querySelectorAll(".timepicker:not(.no-autoinit)"),Tooltip:e.querySelectorAll(".tooltipped:not(.no-autoinit)"),FloatingActionButton:e.querySelectorAll(".fixed-action-btn:not(.no-autoinit)")};for(var i in n)M[i].init(n[i])},M.objectSelectorString=function(t){return((t.prop("tagName")||"")+(t.attr("id")||"")+(t.attr("class")||"")).replace(/\s/g,"")},M.guid=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}}(),M.escapeHash=function(t){return t.replace(/(:|\.|\[|\]|,|=|\/)/g,"\\$1")},M.elementOrParentIsFixed=function(t){var e=o(t),n=e.add(e.parents()),i=!1;return n.each((function(){if("fixed"===o(this).css("position"))return!(i=!0)})),i},M.checkWithinContainer=function(t,e,n){var i={top:!1,right:!1,bottom:!1,left:!1},o=t.getBoundingClientRect(),a=t===document.body?Math.max(o.bottom,window.innerHeight):o.bottom,r=t.scrollLeft,s=t.scrollTop,l=e.left-r,d=e.top-s;return(l<o.left+n||l<n)&&(i.left=!0),(l+e.width>o.right-n||l+e.width>window.innerWidth-n)&&(i.right=!0),(d<o.top+n||d<n)&&(i.top=!0),(d+e.height>a-n||d+e.height>window.innerHeight-n)&&(i.bottom=!0),i},M.checkPossibleAlignments=function(t,e,n,i){var o={top:!0,right:!0,bottom:!0,left:!0,spaceOnTop:null,spaceOnRight:null,spaceOnBottom:null,spaceOnLeft:null},a="visible"===getComputedStyle(e).overflow,r=e.getBoundingClientRect(),s=Math.min(r.height,window.innerHeight),l=Math.min(r.width,window.innerWidth),d=t.getBoundingClientRect(),c=e.scrollLeft,u=e.scrollTop,p=n.left-c,h=n.top-u,f=n.top+d.height-u;return o.spaceOnRight=a?window.innerWidth-(d.left+n.width):l-(p+n.width),o.spaceOnRight<0&&(o.left=!1),o.spaceOnLeft=a?d.right-n.width:p-n.width+d.width,o.spaceOnLeft<0&&(o.right=!1),o.spaceOnBottom=a?window.innerHeight-(d.top+n.height+i):s-(h+n.height+i),o.spaceOnBottom<0&&(o.top=!1),o.spaceOnTop=a?d.bottom-(n.height+i):f-(n.height-i),o.spaceOnTop<0&&(o.bottom=!1),o},M.getOverflowParent=function(t){return null==t?null:t===document.body||"visible"!==getComputedStyle(t).overflow?t:M.getOverflowParent(t.parentElement)},M.getIdFromTrigger=function(t){var e=t.getAttribute("data-target");return e||(e=(e=t.getAttribute("href"))?e.slice(1):""),e},M.getDocumentScrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},M.getDocumentScrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0};var f=Date.now||function(){return(new Date).getTime()};M.throttle=function(t,e,n){var i=void 0,o=void 0,a=void 0,r=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:f(),r=null,a=t.apply(i,o),i=o=null};return function(){var d=f();s||!1!==n.leading||(s=d);var c=e-(d-s);return i=this,o=arguments,c<=0?(clearTimeout(r),r=null,s=d,a=t.apply(i,o),i=o=null):r||!1===n.trailing||(r=setTimeout(l,c)),a}};var m={scope:{}};m.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},m.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:void 0!==a&&null!=a?a:t},m.global=m.getGlobal(this),m.SYMBOL_PREFIX="jscomp_symbol_",m.initSymbol=function(){m.initSymbol=function(){},m.global.Symbol||(m.global.Symbol=m.Symbol)},m.symbolCounter_=0,m.Symbol=function(t){return m.SYMBOL_PREFIX+(t||"")+m.symbolCounter_++},m.initSymbolIterator=function(){m.initSymbol();var t=m.global.Symbol.iterator;t||(t=m.global.Symbol.iterator=m.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&m.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return m.arrayIterator(this)}}),m.initSymbolIterator=function(){}},m.arrayIterator=function(t){var e=0;return m.iteratorPrototype((function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}))},m.iteratorPrototype=function(t){return m.initSymbolIterator(),(t={next:t})[m.global.Symbol.iterator]=function(){return this},t},m.array=m.array||{},m.iteratorFromArray=function(t,e){m.initSymbolIterator(),t instanceof String&&(t+="");var n=0,i={next:function(){if(n<t.length){var o=n++;return{value:e(o,t[o]),done:!1}}return i.next=function(){return{done:!0,value:void 0}},i.next()}};return i[Symbol.iterator]=function(){return i},i},m.polyfill=function(t,e,n,i){if(e){for(n=m.global,t=t.split("."),i=0;i<t.length-1;i++){var o=t[i];o in n||(n[o]={}),n=n[o]}(e=e(i=n[t=t[t.length-1]]))!=i&&null!=e&&m.defineProperty(n,t,{configurable:!0,writable:!0,value:e})}},m.polyfill("Array.prototype.keys",(function(t){return t||function(){return m.iteratorFromArray(this,(function(t){return t}))}}),"es6-impl","es3");var g,b,v,y=this;M.anime=function(){function t(t){if(!D.col(t))try{return document.querySelectorAll(t)}catch(t){}}function e(t,e){for(var n=t.length,i=2<=arguments.length?e:void 0,o=[],a=0;a<n;a++)if(a in t){var r=t[a];e.call(i,r,a,t)&&o.push(r)}return o}function n(t){return t.reduce((function(t,e){return t.concat(D.arr(e)?n(e):e)}),[])}function i(e){return D.arr(e)?e:(D.str(e)&&(e=t(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function o(t,e){return t.some((function(t){return t===e}))}function a(t){var e,n={};for(e in t)n[e]=t[e];return n}function r(t,e){var n,i=a(t);for(n in t)i[n]=e.hasOwnProperty(n)?e[n]:t[n];return i}function s(t,e){var n,i=a(t);for(n in e)i[n]=D.und(t[n])?e[n]:t[n];return i}function l(t){if(t=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t))return t[2]}function d(t,e){return D.fnc(t)?t(e.target,e.id,e.total):t}function c(t,e){if(e in t.style)return getComputedStyle(t).getPropertyValue(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function u(t,e){return D.dom(t)&&o(O,e)?"transform":D.dom(t)&&(t.getAttribute(e)||D.svg(t)&&t[e])?"attribute":D.dom(t)&&"transform"!==e&&c(t,e)?"css":null!=t[e]?"object":void 0}function p(t,n){switch(u(t,n)){case"transform":return function(t,n){var i,o=-1<(i=n).indexOf("translate")||"perspective"===i?"px":-1<i.indexOf("rotate")||-1<i.indexOf("skew")?"deg":void 0;o=-1<n.indexOf("scale")?1:0+o;if(!(t=t.style.transform))return o;for(var a=[],r=[],s=[],l=/(\w+)\((.+?)\)/g;a=l.exec(t);)r.push(a[1]),s.push(a[2]);return(t=e(s,(function(t,e){return r[e]===n}))).length?t[0]:o}(t,n);case"css":return c(t,n);case"attribute":return t.getAttribute(n)}return t[n]||0}function h(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var i=l(t)||0;switch(e=parseFloat(e),t=parseFloat(t.replace(n[0],"")),n[0][0]){case"+":return e+t+i;case"-":return e-t+i;case"*":return e*t+i}}function f(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function m(t){t=t.points;for(var e,n=0,i=0;i<t.numberOfItems;i++){var o=t.getItem(i);0<i&&(n+=f(e,o)),e=o}return n}function g(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*t.getAttribute("r");case"rect":return 2*t.getAttribute("width")+2*t.getAttribute("height");case"line":return f({x:t.getAttribute("x1"),y:t.getAttribute("y1")},{x:t.getAttribute("x2"),y:t.getAttribute("y2")});case"polyline":return m(t);case"polygon":var e=t.points;return m(t)+f(e.getItem(e.numberOfItems-1),e.getItem(0))}}function b(t,e){function n(n){return n=void 0===n?0:n,t.el.getPointAtLength(1<=e+n?e+n:0)}var i=n(),o=n(-1),a=n(1);switch(t.property){case"x":return i.x;case"y":return i.y;case"angle":return 180*Math.atan2(a.y-o.y,a.x-o.x)/Math.PI}}function v(t,e){var n,i=/-?\d*\.?\d+/g;if(n=D.pth(t)?t.totalLength:t,D.col(n))if(D.rgb(n)){var o=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=o?"rgba("+o[1]+",1)":n}else n=D.hex(n)?function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,i){return e+e+n+n+i+i}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+(t=parseInt(e[1],16))+","+parseInt(e[2],16)+","+(e=parseInt(e[3],16))+",1)"}(n):D.hsl(n)?function(t){function e(t,e,n){return n<0&&(n+=1),1<n&&--n,n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t);t=parseInt(n[1])/360;var i=parseInt(n[2])/100,o=parseInt(n[3])/100;n=n[4]||1;if(0==i)o=i=t=o;else{var a=o<.5?o*(1+i):o+i-o*i,r=2*o-a;o=e(r,a,t+1/3),i=e(r,a,t);t=e(r,a,t-1/3)}return"rgba("+255*o+","+255*i+","+255*t+","+n+")"}(n):void 0;else o=(o=l(n))?n.substr(0,n.length-o.length):n,n=e&&!/\s/g.test(n)?o+e:o;return{original:n+="",numbers:n.match(i)?n.match(i).map(Number):[0],strings:D.str(t)||e?n.split(i):[]}}function x(t){return e(t=t?n(D.arr(t)?t.map(i):i(t)):[],(function(t,e,n){return n.indexOf(t)===e}))}function w(t,e){var n=a(e);if(D.arr(t)){var o=t.length;2!==o||D.obj(t[0])?D.fnc(e.duration)||(n.duration=e.duration/o):t={value:t}}return i(t).map((function(t,n){return n=n?0:e.delay,t=D.obj(t)&&!D.pth(t)?t:{value:t},D.und(t.delay)&&(t.delay=n),t})).map((function(t){return s(t,n)}))}function k(t,e){var n;return t.tweens.map((function(i){var o=(i=function(t,e){var n,i={};for(n in t){var o=d(t[n],e);D.arr(o)&&1===(o=o.map((function(t){return d(t,e)}))).length&&(o=o[0]),i[n]=o}return i.duration=parseFloat(i.duration),i.delay=parseFloat(i.delay),i}(i,e)).value,a=p(e.target,t.name),r=n?n.to.original:a,s=(r=D.arr(o)?o[0]:r,h(D.arr(o)?o[1]:o,r));a=l(s)||l(r)||l(a);return i.from=v(r,a),i.to=v(s,a),i.start=n?n.end:t.offset,i.end=i.start+i.delay+i.duration,i.easing=function(t){return D.arr(t)?B.apply(this,t):S[t]}(i.easing),i.elasticity=(1e3-Math.min(Math.max(i.elasticity,1),999))/1e3,i.isPath=D.pth(o),i.isColor=D.col(i.from.original),i.isColor&&(i.round=1),n=i}))}function _(t,e,n,i){var o="delay"===t;return e.length?(o?Math.min:Math.max).apply(Math,e.map((function(e){return e[t]}))):o?i.delay:n.offset+i.delay+i.duration}function C(t){var i,o,a,l,d=r(T,t),c=r(L,t),p=(o=t.targets,(a=x(o)).map((function(t,e){return{target:t,id:e,total:a.length}}))),h=[],f=s(d,c);for(i in t)f.hasOwnProperty(i)||"targets"===i||h.push({name:i,offset:f.offset,tweens:w(t[i],c)});return l=h,t=e(n(p.map((function(t){return l.map((function(e){var n=u(t.target,e.name);if(n){var i=k(e,t);e={type:n,property:e.name,animatable:t,tweens:i,duration:i[i.length-1].end,delay:i[0].delay}}else e=void 0;return e}))}))),(function(t){return!D.und(t)})),s(d,{children:[],animatables:p,animations:t,duration:_("duration",t,d,c),delay:_("delay",t,d,c)})}function E(t){function n(){return window.Promise&&new Promise((function(t){return p=t}))}function i(t){return f.reversed?f.duration-t:t}function o(t){for(var n=0,i={},o=f.animations,a=o.length;n<a;){var r=o[n],s=r.animatable,l=(d=r.tweens)[h=d.length-1];h&&(l=e(d,(function(e){return t<e.end}))[0]||l);for(var d=Math.min(Math.max(t-l.start-l.delay,0),l.duration)/l.duration,u=isNaN(d)?1:l.easing(d,l.elasticity),p=(d=l.to.strings,l.round),h=[],m=void 0,g=(m=l.to.numbers.length,0);g<m;g++){var v=void 0,y=(v=l.to.numbers[g],l.from.numbers[g]);v=l.isPath?b(l.value,u*v):y+u*(v-y);p&&(l.isColor&&2<g||(v=Math.round(v*p)/p)),h.push(v)}if(l=d.length)for(m=d[0],u=0;u<l;u++)p=d[u+1],g=h[u],isNaN(g)||(m=p?m+(g+p):m+(g+" "));else m=h[0];z[r.type](s.target,r.property,m,i,s.id),r.currentValue=m,n++}if(n=Object.keys(i).length)for(o=0;o<n;o++)M||(M=c(document.body,"transform")?"transform":"-webkit-transform"),f.animatables[o].target.style[M]=i[o].join(" ");f.currentTime=t,f.progress=t/f.duration*100}function a(t){f[t]&&f[t](f)}function r(){f.remaining&&!0!==f.remaining&&f.remaining--}function s(t){var e=f.duration,s=f.offset,c=s+f.delay,m=f.currentTime,g=f.reversed,b=i(t);if(f.children.length){var v=f.children,y=v.length;if(b>=f.currentTime)for(var x=0;x<y;x++)v[x].seek(b);else for(;y--;)v[y].seek(b)}(c<=b||!e)&&(f.began||(f.began=!0,a("begin")),a("run")),s<b&&b<e?o(b):(b<=s&&0!==m&&(o(0),g&&r()),(e<=b&&m!==e||!e)&&(o(e),g||r())),a("update"),e<=t&&(f.remaining?(d=l,"alternate"===f.direction&&(f.reversed=!f.reversed)):(f.pause(),f.completed||(f.completed=!0,a("complete"),"Promise"in window&&(p(),h=n()))),u=0)}t=void 0===t?{}:t;var l,d,u=0,p=null,h=n(),f=C(t);return f.reset=function(){var t=f.direction,e=f.loop;for(f.currentTime=0,f.progress=0,f.paused=!0,f.began=!1,f.completed=!1,f.reversed="reverse"===t,f.remaining="alternate"===t&&1===e?2:e,o(0),t=f.children.length;t--;)f.children[t].reset()},f.tick=function(t){l=t,d||(d=l),s((u+l-d)*E.speed)},f.seek=function(t){s(i(t))},f.pause=function(){var t=A.indexOf(f);-1<t&&A.splice(t,1),f.paused=!0},f.play=function(){f.paused&&(f.paused=!1,d=0,u=i(f.currentTime),A.push(f),$||I())},f.reverse=function(){f.reversed=!f.reversed,d=0,u=i(f.currentTime)},f.restart=function(){f.pause(),f.reset(),f.play()},f.finished=h,f.reset(),f.autoplay&&f.play(),f}var M,T={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},L={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},O="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),D={arr:function(t){return Array.isArray(t)},obj:function(t){return-1<Object.prototype.toString.call(t).indexOf("Object")},pth:function(t){return D.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},dom:function(t){return t.nodeType||D.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return D.hex(t)||D.rgb(t)||D.hsl(t)}},B=function(){function t(t,e,n){return(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t}return function(e,n,i,o){if(0<=e&&e<=1&&0<=i&&i<=1){var a=new Float32Array(11);if(e!==n||i!==o)for(var r=0;r<11;++r)a[r]=t(.1*r,e,i);return function(r){if(e===n&&i===o)return r;if(0===r)return 0;if(1===r)return 1;for(var s=0,l=1;10!==l&&a[l]<=r;++l)s+=.1;l=s+(r-a[--l])/(a[l+1]-a[l])*.1;var d=3*(1-3*i+3*e)*l*l+2*(3*i-6*e)*l+3*e;if(.001<=d){for(s=0;s<4&&0!=(d=3*(1-3*i+3*e)*l*l+2*(3*i-6*e)*l+3*e);++s){var c=t(l,e,i)-r;l=l-c/d}r=l}else if(0===d)r=l;else{l=s,s=s+.1;for(var u=0;0<(d=t(c=l+(s-l)/2,e,i)-r)?s=c:l=c,1e-7<Math.abs(d)&&++u<10;);r=c}return t(r,n,o)}}}}(),S=function(){function t(t,e){return 0===t||1===t?t:-Math.pow(2,10*(t-1))*Math.sin(2*(t-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var e,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),i={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],t],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(e,n){return 1-t(1-e,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(e,n){return e<.5?t(2*e,n)/2:1-t(-2*e+2,n)/2}]},o={linear:B(.25,.25,.75,.75)},a={};for(e in i)a.type=e,i[a.type].forEach(function(t){return function(e,i){o["ease"+t.type+n[i]]=D.fnc(e)?e:B.apply(y,e)}}(a)),a={type:a.type};return o}(),z={css:function(t,e,n){return t.style[e]=n},attribute:function(t,e,n){return t.setAttribute(e,n)},object:function(t,e,n){return t[e]=n},transform:function(t,e,n,i,o){i[o]||(i[o]=[]),i[o].push(e+"("+n+")")}},A=[],$=0,I=function(){function t(){$=requestAnimationFrame(e)}function e(e){var n=A.length;if(n){for(var i=0;i<n;)A[i]&&A[i].tick(e),i++;t()}else cancelAnimationFrame($),$=0}return t}();return E.version="2.2.0",E.speed=1,E.running=A,E.remove=function(t){t=x(t);for(var e=A.length;e--;)for(var n=A[e],i=n.animations,a=i.length;a--;)o(t,i[a].animatable.target)&&(i.splice(a,1),i.length||n.pause())},E.getValue=p,E.path=function(e,n){var i=D.str(e)?t(e)[0]:e,o=n||100;return function(t){return{el:i,property:t,totalLength:g(i)*(o/100)}}},E.setDashoffset=function(t){var e=g(t);return t.setAttribute("stroke-dasharray",e),e},E.bezier=B,E.easings=S,E.timeline=function(t){var e=E(t);return e.pause(),e.duration=0,e.add=function(n){return e.children.forEach((function(t){t.began=!0,t.completed=!0})),i(n).forEach((function(n){var i=s(n,r(L,t||{}));i.targets=i.targets||t.targets,n=e.duration;var o=i.offset;i.autoplay=!1,i.direction=e.direction,i.offset=D.und(o)?n:h(o,n),e.began=!0,e.completed=!0,e.seek(i.offset),(i=E(i)).began=!0,i.completed=!0,i.duration>n&&(e.duration=i.duration),e.children.push(i)})),e.seek(0),e.reset(),e.autoplay&&e.restart(),e},e},E.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},E}(),function(t,e){"use strict";var n={accordion:!0,onOpenStart:void 0,onOpenEnd:void 0,onCloseStart:void 0,onCloseEnd:void 0,inDuration:300,outDuration:300},i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));(i.el.M_Collapsible=i).options=t.extend({},o.defaults,n),i.$headers=i.$el.children("li").children(".collapsible-header"),i.$headers.attr("tabindex",0),i._setupEventHandlers();var a=i.$el.children("li.active").children(".collapsible-body");return i.options.accordion?a.first().css("display","block"):a.css("display","block"),i}return c(o,h),l(o,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Collapsible=void 0}},{key:"_setupEventHandlers",value:function(){var t=this;this._handleCollapsibleClickBound=this._handleCollapsibleClick.bind(this),this._handleCollapsibleKeydownBound=this._handleCollapsibleKeydown.bind(this),this.el.addEventListener("click",this._handleCollapsibleClickBound),this.$headers.each((function(e){e.addEventListener("keydown",t._handleCollapsibleKeydownBound)}))}},{key:"_removeEventHandlers",value:function(){var t=this;this.el.removeEventListener("click",this._handleCollapsibleClickBound),this.$headers.each((function(e){e.removeEventListener("keydown",t._handleCollapsibleKeydownBound)}))}},{key:"_handleCollapsibleClick",value:function(e){var n=t(e.target).closest(".collapsible-header");if(e.target&&n.length){var i=n.closest(".collapsible");if(i[0]===this.el){var o=n.closest("li"),a=i.children("li"),r=o[0].classList.contains("active"),s=a.index(o);r?this.close(s):this.open(s)}}}},{key:"_handleCollapsibleKeydown",value:function(t){13===t.keyCode&&this._handleCollapsibleClickBound(t)}},{key:"_animateIn",value:function(t){var n=this,i=this.$el.children("li").eq(t);if(i.length){var o=i.children(".collapsible-body");e.remove(o[0]),o.css({display:"block",overflow:"hidden",height:0,paddingTop:"",paddingBottom:""});var a=o.css("padding-top"),r=o.css("padding-bottom"),s=o[0].scrollHeight;o.css({paddingTop:0,paddingBottom:0}),e({targets:o[0],height:s,paddingTop:a,paddingBottom:r,duration:this.options.inDuration,easing:"easeInOutCubic",complete:function(t){o.css({overflow:"",paddingTop:"",paddingBottom:"",height:""}),"function"==typeof n.options.onOpenEnd&&n.options.onOpenEnd.call(n,i[0])}})}}},{key:"_animateOut",value:function(t){var n=this,i=this.$el.children("li").eq(t);if(i.length){var o=i.children(".collapsible-body");e.remove(o[0]),o.css("overflow","hidden"),e({targets:o[0],height:0,paddingTop:0,paddingBottom:0,duration:this.options.outDuration,easing:"easeInOutCubic",complete:function(){o.css({height:"",overflow:"",padding:"",display:""}),"function"==typeof n.options.onCloseEnd&&n.options.onCloseEnd.call(n,i[0])}})}}},{key:"open",value:function(e){var n=this,i=this.$el.children("li").eq(e);if(i.length&&!i[0].classList.contains("active")){if("function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,i[0]),this.options.accordion){var o=this.$el.children("li");this.$el.children("li.active").each((function(e){var i=o.index(t(e));n.close(i)}))}i[0].classList.add("active"),this._animateIn(e)}}},{key:"close",value:function(t){var e=this.$el.children("li").eq(t);e.length&&e[0].classList.contains("active")&&("function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,e[0]),e[0].classList.remove("active"),this._animateOut(t))}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Collapsible}},{key:"defaults",get:function(){return n}}]),o}();M.Collapsible=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"collapsible","M_Collapsible")}(cash,M.anime),function(t,e){"use strict";var n={alignment:"left",autoFocus:!0,constrainWidth:!0,container:null,coverTrigger:!0,closeOnClick:!0,hover:!1,inDuration:150,outDuration:250,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,onItemClick:null},i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_Dropdown=i,o._dropdowns.push(i),i.id=M.getIdFromTrigger(e),i.dropdownEl=document.getElementById(i.id),i.$dropdownEl=t(i.dropdownEl),i.options=t.extend({},o.defaults,n),i.isOpen=!1,i.isScrollable=!1,i.isTouchMoving=!1,i.focusedIndex=-1,i.filterQuery=[],i.options.container?t(i.options.container).append(i.dropdownEl):i.$el.after(i.dropdownEl),i._makeDropdownFocusable(),i._resetFilterQueryBound=i._resetFilterQuery.bind(i),i._handleDocumentClickBound=i._handleDocumentClick.bind(i),i._handleDocumentTouchmoveBound=i._handleDocumentTouchmove.bind(i),i._handleDropdownClickBound=i._handleDropdownClick.bind(i),i._handleDropdownKeydownBound=i._handleDropdownKeydown.bind(i),i._handleTriggerKeydownBound=i._handleTriggerKeydown.bind(i),i._setupEventHandlers(),i}return c(o,h),l(o,[{key:"destroy",value:function(){this._resetDropdownStyles(),this._removeEventHandlers(),o._dropdowns.splice(o._dropdowns.indexOf(this),1),this.el.M_Dropdown=void 0}},{key:"_setupEventHandlers",value:function(){this.el.addEventListener("keydown",this._handleTriggerKeydownBound),this.dropdownEl.addEventListener("click",this._handleDropdownClickBound),this.options.hover?(this._handleMouseEnterBound=this._handleMouseEnter.bind(this),this.el.addEventListener("mouseenter",this._handleMouseEnterBound),this._handleMouseLeaveBound=this._handleMouseLeave.bind(this),this.el.addEventListener("mouseleave",this._handleMouseLeaveBound),this.dropdownEl.addEventListener("mouseleave",this._handleMouseLeaveBound)):(this._handleClickBound=this._handleClick.bind(this),this.el.addEventListener("click",this._handleClickBound))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("keydown",this._handleTriggerKeydownBound),this.dropdownEl.removeEventListener("click",this._handleDropdownClickBound),this.options.hover?(this.el.removeEventListener("mouseenter",this._handleMouseEnterBound),this.el.removeEventListener("mouseleave",this._handleMouseLeaveBound),this.dropdownEl.removeEventListener("mouseleave",this._handleMouseLeaveBound)):this.el.removeEventListener("click",this._handleClickBound)}},{key:"_setupTemporaryEventHandlers",value:function(){document.body.addEventListener("click",this._handleDocumentClickBound,!0),document.body.addEventListener("touchend",this._handleDocumentClickBound),document.body.addEventListener("touchmove",this._handleDocumentTouchmoveBound),this.dropdownEl.addEventListener("keydown",this._handleDropdownKeydownBound)}},{key:"_removeTemporaryEventHandlers",value:function(){document.body.removeEventListener("click",this._handleDocumentClickBound,!0),document.body.removeEventListener("touchend",this._handleDocumentClickBound),document.body.removeEventListener("touchmove",this._handleDocumentTouchmoveBound),this.dropdownEl.removeEventListener("keydown",this._handleDropdownKeydownBound)}},{key:"_handleClick",value:function(t){t.preventDefault(),this.open()}},{key:"_handleMouseEnter",value:function(){this.open()}},{key:"_handleMouseLeave",value:function(e){var n=e.toElement||e.relatedTarget,i=!!t(n).closest(".dropdown-content").length,o=!1,a=t(n).closest(".dropdown-trigger");a.length&&a[0].M_Dropdown&&a[0].M_Dropdown.isOpen&&(o=!0),o||i||this.close()}},{key:"_handleDocumentClick",value:function(e){var n=this,i=t(e.target);this.options.closeOnClick&&i.closest(".dropdown-content").length&&!this.isTouchMoving?setTimeout((function(){n.close()}),0):!i.closest(".dropdown-trigger").length&&i.closest(".dropdown-content").length||setTimeout((function(){n.close()}),0),this.isTouchMoving=!1}},{key:"_handleTriggerKeydown",value:function(t){t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ENTER||this.isOpen||(t.preventDefault(),this.open())}},{key:"_handleDocumentTouchmove",value:function(e){t(e.target).closest(".dropdown-content").length&&(this.isTouchMoving=!0)}},{key:"_handleDropdownClick",value:function(e){if("function"==typeof this.options.onItemClick){var n=t(e.target).closest("li")[0];this.options.onItemClick.call(this,n)}}},{key:"_handleDropdownKeydown",value:function(e){if(e.which===M.keys.TAB)e.preventDefault(),this.close();else if(e.which!==M.keys.ARROW_DOWN&&e.which!==M.keys.ARROW_UP||!this.isOpen)if(e.which===M.keys.ENTER&&this.isOpen){var n=this.dropdownEl.children[this.focusedIndex],i=t(n).find("a, button").first();i.length?i[0].click():n&&n.click()}else e.which===M.keys.ESC&&this.isOpen&&(e.preventDefault(),this.close());else{e.preventDefault();var o=e.which===M.keys.ARROW_DOWN?1:-1,a=this.focusedIndex,r=!1;do{if(a+=o,this.dropdownEl.children[a]&&-1!==this.dropdownEl.children[a].tabIndex){r=!0;break}}while(a<this.dropdownEl.children.length&&0<=a);r&&(this.focusedIndex=a,this._focusFocusedItem())}var s=String.fromCharCode(e.which).toLowerCase();if(s&&-1===[9,13,27,38,40].indexOf(e.which)){this.filterQuery.push(s);var l=this.filterQuery.join(""),d=t(this.dropdownEl).find("li").filter((function(e){return 0===t(e).text().toLowerCase().indexOf(l)}))[0];d&&(this.focusedIndex=t(d).index(),this._focusFocusedItem())}this.filterTimeout=setTimeout(this._resetFilterQueryBound,1e3)}},{key:"_resetFilterQuery",value:function(){this.filterQuery=[]}},{key:"_resetDropdownStyles",value:function(){this.$dropdownEl.css({display:"",width:"",height:"",left:"",top:"","transform-origin":"",transform:"",opacity:""})}},{key:"_makeDropdownFocusable",value:function(){this.dropdownEl.tabIndex=0,t(this.dropdownEl).children().each((function(t){t.getAttribute("tabindex")||t.setAttribute("tabindex",0)}))}},{key:"_focusFocusedItem",value:function(){0<=this.focusedIndex&&this.focusedIndex<this.dropdownEl.children.length&&this.options.autoFocus&&this.dropdownEl.children[this.focusedIndex].focus()}},{key:"_getDropdownPosition",value:function(){this.el.offsetParent.getBoundingClientRect();var t=this.el.getBoundingClientRect(),e=this.dropdownEl.getBoundingClientRect(),n=e.height,i=e.width,o=t.left-e.left,a=t.top-e.top,r={left:o,top:a,height:n,width:i},s=this.dropdownEl.offsetParent?this.dropdownEl.offsetParent:this.dropdownEl.parentNode,l=M.checkPossibleAlignments(this.el,s,r,this.options.coverTrigger?0:t.height),d="top",c=this.options.alignment;if(a+=this.options.coverTrigger?0:t.height,this.isScrollable=!1,l.top||(l.bottom?d="bottom":(this.isScrollable=!0,l.spaceOnTop>l.spaceOnBottom?(d="bottom",n+=l.spaceOnTop,a-=l.spaceOnTop):n+=l.spaceOnBottom)),!l[c]){var u="left"===c?"right":"left";l[u]?c=u:l.spaceOnLeft>l.spaceOnRight?(c="right",i+=l.spaceOnLeft,o-=l.spaceOnLeft):(c="left",i+=l.spaceOnRight)}return"bottom"===d&&(a=a-e.height+(this.options.coverTrigger?t.height:0)),"right"===c&&(o=o-e.width+t.width),{x:o,y:a,verticalAlignment:d,horizontalAlignment:c,height:n,width:i}}},{key:"_animateIn",value:function(){var t=this;e.remove(this.dropdownEl),e({targets:this.dropdownEl,opacity:{value:[0,1],easing:"easeOutQuad"},scaleX:[.3,1],scaleY:[.3,1],duration:this.options.inDuration,easing:"easeOutQuint",complete:function(e){t.options.autoFocus&&t.dropdownEl.focus(),"function"==typeof t.options.onOpenEnd&&t.options.onOpenEnd.call(t,t.el)}})}},{key:"_animateOut",value:function(){var t=this;e.remove(this.dropdownEl),e({targets:this.dropdownEl,opacity:{value:0,easing:"easeOutQuint"},scaleX:.3,scaleY:.3,duration:this.options.outDuration,easing:"easeOutQuint",complete:function(e){t._resetDropdownStyles(),"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t,t.el)}})}},{key:"_placeDropdown",value:function(){var t=this.options.constrainWidth?this.el.getBoundingClientRect().width:this.dropdownEl.getBoundingClientRect().width;this.dropdownEl.style.width=t+"px";var e=this._getDropdownPosition();this.dropdownEl.style.left=e.x+"px",this.dropdownEl.style.top=e.y+"px",this.dropdownEl.style.height=e.height+"px",this.dropdownEl.style.width=e.width+"px",this.dropdownEl.style.transformOrigin=("left"===e.horizontalAlignment?"0":"100%")+" "+("top"===e.verticalAlignment?"0":"100%")}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this._resetDropdownStyles(),this.dropdownEl.style.display="block",this._placeDropdown(),this._animateIn(),this._setupTemporaryEventHandlers())}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.focusedIndex=-1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this._animateOut(),this._removeTemporaryEventHandlers(),this.options.autoFocus&&this.el.focus())}},{key:"recalculateDimensions",value:function(){this.isOpen&&(this.$dropdownEl.css({width:"",height:"",left:"",top:"","transform-origin":""}),this._placeDropdown())}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Dropdown}},{key:"defaults",get:function(){return n}}]),o}();i._dropdowns=[],M.Dropdown=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"dropdown","M_Dropdown")}(cash,M.anime),function(t,e){"use strict";var n={opacity:.5,inDuration:250,outDuration:250,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,preventScrolling:!0,dismissible:!0,startingTop:"4%",endingTop:"10%"},i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return(i.el.M_Modal=i).options=t.extend({},o.defaults,n),i.isOpen=!1,i.id=i.$el.attr("id"),i._openingTrigger=void 0,i.$overlay=t('<div class="modal-overlay"></div>'),i.el.tabIndex=0,i._nthModalOpened=0,o._count++,i._setupEventHandlers(),i}return c(o,h),l(o,[{key:"destroy",value:function(){o._count--,this._removeEventHandlers(),this.el.removeAttribute("style"),this.$overlay.remove(),this.el.M_Modal=void 0}},{key:"_setupEventHandlers",value:function(){this._handleOverlayClickBound=this._handleOverlayClick.bind(this),this._handleModalCloseClickBound=this._handleModalCloseClick.bind(this),1===o._count&&document.body.addEventListener("click",this._handleTriggerClick),this.$overlay[0].addEventListener("click",this._handleOverlayClickBound),this.el.addEventListener("click",this._handleModalCloseClickBound)}},{key:"_removeEventHandlers",value:function(){0===o._count&&document.body.removeEventListener("click",this._handleTriggerClick),this.$overlay[0].removeEventListener("click",this._handleOverlayClickBound),this.el.removeEventListener("click",this._handleModalCloseClickBound)}},{key:"_handleTriggerClick",value:function(e){var n=t(e.target).closest(".modal-trigger");if(n.length){var i=M.getIdFromTrigger(n[0]),o=document.getElementById(i).M_Modal;o&&o.open(n),e.preventDefault()}}},{key:"_handleOverlayClick",value:function(){this.options.dismissible&&this.close()}},{key:"_handleModalCloseClick",value:function(e){t(e.target).closest(".modal-close").length&&this.close()}},{key:"_handleKeydown",value:function(t){27===t.keyCode&&this.options.dismissible&&this.close()}},{key:"_handleFocus",value:function(t){this.el.contains(t.target)||this._nthModalOpened!==o._modalsOpen||this.el.focus()}},{key:"_animateIn",value:function(){var n=this;t.extend(this.el.style,{display:"block",opacity:0}),t.extend(this.$overlay[0].style,{display:"block",opacity:0}),e({targets:this.$overlay[0],opacity:this.options.opacity,duration:this.options.inDuration,easing:"easeOutQuad"});var i={targets:this.el,duration:this.options.inDuration,easing:"easeOutCubic",complete:function(){"function"==typeof n.options.onOpenEnd&&n.options.onOpenEnd.call(n,n.el,n._openingTrigger)}};this.el.classList.contains("bottom-sheet")?t.extend(i,{bottom:0,opacity:1}):t.extend(i,{top:[this.options.startingTop,this.options.endingTop],opacity:1,scaleX:[.8,1],scaleY:[.8,1]}),e(i)}},{key:"_animateOut",value:function(){var n=this;e({targets:this.$overlay[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuart"});var i={targets:this.el,duration:this.options.outDuration,easing:"easeOutCubic",complete:function(){n.el.style.display="none",n.$overlay.remove(),"function"==typeof n.options.onCloseEnd&&n.options.onCloseEnd.call(n,n.el)}};this.el.classList.contains("bottom-sheet")?t.extend(i,{bottom:"-100%",opacity:0}):t.extend(i,{top:[this.options.endingTop,this.options.startingTop],opacity:0,scaleX:.8,scaleY:.8}),e(i)}},{key:"open",value:function(t){if(!this.isOpen)return this.isOpen=!0,o._modalsOpen++,this._nthModalOpened=o._modalsOpen,this.$overlay[0].style.zIndex=1e3+2*o._modalsOpen,this.el.style.zIndex=1e3+2*o._modalsOpen+1,this._openingTrigger=t?t[0]:void 0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el,this._openingTrigger),this.options.preventScrolling&&(document.body.style.overflow="hidden"),this.el.classList.add("open"),this.el.insertAdjacentElement("afterend",this.$overlay[0]),this.options.dismissible&&(this._handleKeydownBound=this._handleKeydown.bind(this),this._handleFocusBound=this._handleFocus.bind(this),document.addEventListener("keydown",this._handleKeydownBound),document.addEventListener("focus",this._handleFocusBound,!0)),e.remove(this.el),e.remove(this.$overlay[0]),this._animateIn(),this.el.focus(),this}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,o._modalsOpen--,this._nthModalOpened=0,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this.el.classList.remove("open"),0===o._modalsOpen&&(document.body.style.overflow=""),this.options.dismissible&&(document.removeEventListener("keydown",this._handleKeydownBound),document.removeEventListener("focus",this._handleFocusBound,!0)),e.remove(this.el),e.remove(this.$overlay[0]),this._animateOut(),this}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Modal}},{key:"defaults",get:function(){return n}}]),o}();i._modalsOpen=0,i._count=0,M.Modal=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"modal","M_Modal")}(cash,M.anime),function(t,e){"use strict";var n={inDuration:275,outDuration:200,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null},i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return(i.el.M_Materialbox=i).options=t.extend({},o.defaults,n),i.overlayActive=!1,i.doneAnimating=!0,i.placeholder=t("<div></div>").addClass("material-placeholder"),i.originalWidth=0,i.originalHeight=0,i.originInlineStyles=i.$el.attr("style"),i.caption=i.el.getAttribute("data-caption")||"",i.$el.before(i.placeholder),i.placeholder.append(i.$el),i._setupEventHandlers(),i}return c(o,h),l(o,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Materialbox=void 0,t(this.placeholder).after(this.el).remove(),this.$el.removeAttr("style")}},{key:"_setupEventHandlers",value:function(){this._handleMaterialboxClickBound=this._handleMaterialboxClick.bind(this),this.el.addEventListener("click",this._handleMaterialboxClickBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleMaterialboxClickBound)}},{key:"_handleMaterialboxClick",value:function(t){!1===this.doneAnimating||this.overlayActive&&this.doneAnimating?this.close():this.open()}},{key:"_handleWindowScroll",value:function(){this.overlayActive&&this.close()}},{key:"_handleWindowResize",value:function(){this.overlayActive&&this.close()}},{key:"_handleWindowEscape",value:function(t){27===t.keyCode&&this.doneAnimating&&this.overlayActive&&this.close()}},{key:"_makeAncestorsOverflowVisible",value:function(){this.ancestorsChanged=t();for(var e=this.placeholder[0].parentNode;null!==e&&!t(e).is(document);){var n=t(e);"visible"!==n.css("overflow")&&(n.css("overflow","visible"),void 0===this.ancestorsChanged?this.ancestorsChanged=n:this.ancestorsChanged=this.ancestorsChanged.add(n)),e=e.parentNode}}},{key:"_animateImageIn",value:function(){var t=this,n={targets:this.el,height:[this.originalHeight,this.newHeight],width:[this.originalWidth,this.newWidth],left:M.getDocumentScrollLeft()+this.windowWidth/2-this.placeholder.offset().left-this.newWidth/2,top:M.getDocumentScrollTop()+this.windowHeight/2-this.placeholder.offset().top-this.newHeight/2,duration:this.options.inDuration,easing:"easeOutQuad",complete:function(){t.doneAnimating=!0,"function"==typeof t.options.onOpenEnd&&t.options.onOpenEnd.call(t,t.el)}};this.maxWidth=this.$el.css("max-width"),this.maxHeight=this.$el.css("max-height"),"none"!==this.maxWidth&&(n.maxWidth=this.newWidth),"none"!==this.maxHeight&&(n.maxHeight=this.newHeight),e(n)}},{key:"_animateImageOut",value:function(){var t=this,n={targets:this.el,width:this.originalWidth,height:this.originalHeight,left:0,top:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t.placeholder.css({height:"",width:"",position:"",top:"",left:""}),t.attrWidth&&t.$el.attr("width",t.attrWidth),t.attrHeight&&t.$el.attr("height",t.attrHeight),t.$el.removeAttr("style"),t.originInlineStyles&&t.$el.attr("style",t.originInlineStyles),t.$el.removeClass("active"),t.doneAnimating=!0,t.ancestorsChanged.length&&t.ancestorsChanged.css("overflow",""),"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t,t.el)}};e(n)}},{key:"_updateVars",value:function(){this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight,this.caption=this.el.getAttribute("data-caption")||""}},{key:"open",value:function(){var n=this;this._updateVars(),this.originalWidth=this.el.getBoundingClientRect().width,this.originalHeight=this.el.getBoundingClientRect().height,this.doneAnimating=!1,this.$el.addClass("active"),this.overlayActive=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this.placeholder.css({width:this.placeholder[0].getBoundingClientRect().width+"px",height:this.placeholder[0].getBoundingClientRect().height+"px",position:"relative",top:0,left:0}),this._makeAncestorsOverflowVisible(),this.$el.css({position:"absolute","z-index":1e3,"will-change":"left, top, width, height"}),this.attrWidth=this.$el.attr("width"),this.attrHeight=this.$el.attr("height"),this.attrWidth&&(this.$el.css("width",this.attrWidth+"px"),this.$el.removeAttr("width")),this.attrHeight&&(this.$el.css("width",this.attrHeight+"px"),this.$el.removeAttr("height")),this.$overlay=t('<div id="materialbox-overlay"></div>').css({opacity:0}).one("click",(function(){n.doneAnimating&&n.close()})),this.$el.before(this.$overlay);var i=this.$overlay[0].getBoundingClientRect();this.$overlay.css({width:this.windowWidth+"px",height:this.windowHeight+"px",left:-1*i.left+"px",top:-1*i.top+"px"}),e.remove(this.el),e.remove(this.$overlay[0]),e({targets:this.$overlay[0],opacity:1,duration:this.options.inDuration,easing:"easeOutQuad"}),""!==this.caption&&(this.$photocaption&&e.remove(this.$photoCaption[0]),this.$photoCaption=t('<div class="materialbox-caption"></div>'),this.$photoCaption.text(this.caption),t("body").append(this.$photoCaption),this.$photoCaption.css({display:"inline"}),e({targets:this.$photoCaption[0],opacity:1,duration:this.options.inDuration,easing:"easeOutQuad"}));var o=0,a=this.originalWidth/this.windowWidth,r=this.originalHeight/this.windowHeight;this.newWidth=0,this.newHeight=0,r<a?(o=this.originalHeight/this.originalWidth,this.newWidth=.9*this.windowWidth,this.newHeight=.9*this.windowWidth*o):(o=this.originalWidth/this.originalHeight,this.newWidth=.9*this.windowHeight*o,this.newHeight=.9*this.windowHeight),this._animateImageIn(),this._handleWindowScrollBound=this._handleWindowScroll.bind(this),this._handleWindowResizeBound=this._handleWindowResize.bind(this),this._handleWindowEscapeBound=this._handleWindowEscape.bind(this),window.addEventListener("scroll",this._handleWindowScrollBound),window.addEventListener("resize",this._handleWindowResizeBound),window.addEventListener("keyup",this._handleWindowEscapeBound)}},{key:"close",value:function(){var t=this;this._updateVars(),this.doneAnimating=!1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),e.remove(this.el),e.remove(this.$overlay[0]),""!==this.caption&&e.remove(this.$photoCaption[0]),window.removeEventListener("scroll",this._handleWindowScrollBound),window.removeEventListener("resize",this._handleWindowResizeBound),window.removeEventListener("keyup",this._handleWindowEscapeBound),e({targets:this.$overlay[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t.overlayActive=!1,t.$overlay.remove()}}),this._animateImageOut(),""!==this.caption&&e({targets:this.$photoCaption[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t.$photoCaption.remove()}})}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Materialbox}},{key:"defaults",get:function(){return n}}]),o}();M.Materialbox=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"materialbox","M_Materialbox")}(cash,M.anime),function(t){"use strict";var e={responsiveThreshold:0},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return(o.el.M_Parallax=o).options=t.extend({},i.defaults,n),o._enabled=window.innerWidth>o.options.responsiveThreshold,o.$img=o.$el.find("img").first(),o.$img.each((function(){this.complete&&t(this).trigger("load")})),o._updateParallax(),o._setupEventHandlers(),o._setupStyles(),i._parallaxes.push(o),o}return c(i,h),l(i,[{key:"destroy",value:function(){i._parallaxes.splice(i._parallaxes.indexOf(this),1),this.$img[0].style.transform="",this._removeEventHandlers(),this.$el[0].M_Parallax=void 0}},{key:"_setupEventHandlers",value:function(){this._handleImageLoadBound=this._handleImageLoad.bind(this),this.$img[0].addEventListener("load",this._handleImageLoadBound),0===i._parallaxes.length&&(i._handleScrollThrottled=M.throttle(i._handleScroll,5),window.addEventListener("scroll",i._handleScrollThrottled),i._handleWindowResizeThrottled=M.throttle(i._handleWindowResize,5),window.addEventListener("resize",i._handleWindowResizeThrottled))}},{key:"_removeEventHandlers",value:function(){this.$img[0].removeEventListener("load",this._handleImageLoadBound),0===i._parallaxes.length&&(window.removeEventListener("scroll",i._handleScrollThrottled),window.removeEventListener("resize",i._handleWindowResizeThrottled))}},{key:"_setupStyles",value:function(){this.$img[0].style.opacity=1}},{key:"_handleImageLoad",value:function(){this._updateParallax()}},{key:"_updateParallax",value:function(){var t=0<this.$el.height()?this.el.parentNode.offsetHeight:500,e=this.$img[0].offsetHeight-t,n=this.$el.offset().top+t,i=this.$el.offset().top,o=M.getDocumentScrollTop(),a=window.innerHeight,r=e*((o+a-i)/(t+a));this._enabled?o<n&&i<o+a&&(this.$img[0].style.transform="translate3D(-50%, "+r+"px, 0)"):this.$img[0].style.transform=""}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Parallax}},{key:"_handleScroll",value:function(){for(var t=0;t<i._parallaxes.length;t++){var e=i._parallaxes[t];e._updateParallax.call(e)}}},{key:"_handleWindowResize",value:function(){for(var t=0;t<i._parallaxes.length;t++){var e=i._parallaxes[t];e._enabled=window.innerWidth>e.options.responsiveThreshold}}},{key:"defaults",get:function(){return e}}]),i}();n._parallaxes=[],M.Parallax=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"parallax","M_Parallax")}(cash),function(t,e){"use strict";var n={duration:300,onShow:null,swipeable:!1,responsiveThreshold:1/0},i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return(i.el.M_Tabs=i).options=t.extend({},o.defaults,n),i.$tabLinks=i.$el.children("li.tab").children("a"),i.index=0,i._setupActiveTabLink(),i.options.swipeable?i._setupSwipeableTabs():i._setupNormalTabs(),i._setTabsAndTabWidth(),i._createIndicator(),i._setupEventHandlers(),i}return c(o,h),l(o,[{key:"destroy",value:function(){this._removeEventHandlers(),this._indicator.parentNode.removeChild(this._indicator),this.options.swipeable?this._teardownSwipeableTabs():this._teardownNormalTabs(),this.$el[0].M_Tabs=void 0}},{key:"_setupEventHandlers",value:function(){this._handleWindowResizeBound=this._handleWindowResize.bind(this),window.addEventListener("resize",this._handleWindowResizeBound),this._handleTabClickBound=this._handleTabClick.bind(this),this.el.addEventListener("click",this._handleTabClickBound)}},{key:"_removeEventHandlers",value:function(){window.removeEventListener("resize",this._handleWindowResizeBound),this.el.removeEventListener("click",this._handleTabClickBound)}},{key:"_handleWindowResize",value:function(){this._setTabsAndTabWidth(),0!==this.tabWidth&&0!==this.tabsWidth&&(this._indicator.style.left=this._calcLeftPos(this.$activeTabLink)+"px",this._indicator.style.right=this._calcRightPos(this.$activeTabLink)+"px")}},{key:"_handleTabClick",value:function(e){var n=this,i=t(e.target).closest("li.tab"),o=t(e.target).closest("a");if(o.length&&o.parent().hasClass("tab"))if(i.hasClass("disabled"))e.preventDefault();else if(!o.attr("target")){this.$activeTabLink.removeClass("active");var a=this.$content;this.$activeTabLink=o,this.$content=t(M.escapeHash(o[0].hash)),this.$tabLinks=this.$el.children("li.tab").children("a"),this.$activeTabLink.addClass("active");var r=this.index;this.index=Math.max(this.$tabLinks.index(o),0),this.options.swipeable?this._tabsCarousel&&this._tabsCarousel.set(this.index,(function(){"function"==typeof n.options.onShow&&n.options.onShow.call(n,n.$content[0])})):this.$content.length&&(this.$content[0].style.display="block",this.$content.addClass("active"),"function"==typeof this.options.onShow&&this.options.onShow.call(this,this.$content[0]),a.length&&!a.is(this.$content)&&(a[0].style.display="none",a.removeClass("active"))),this._setTabsAndTabWidth(),this._animateIndicator(r),e.preventDefault()}}},{key:"_createIndicator",value:function(){var t=this,e=document.createElement("li");e.classList.add("indicator"),this.el.appendChild(e),this._indicator=e,setTimeout((function(){t._indicator.style.left=t._calcLeftPos(t.$activeTabLink)+"px",t._indicator.style.right=t._calcRightPos(t.$activeTabLink)+"px"}),0)}},{key:"_setupActiveTabLink",value:function(){this.$activeTabLink=t(this.$tabLinks.filter('[href="'+location.hash+'"]')),0===this.$activeTabLink.length&&(this.$activeTabLink=this.$el.children("li.tab").children("a.active").first()),0===this.$activeTabLink.length&&(this.$activeTabLink=this.$el.children("li.tab").children("a").first()),this.$tabLinks.removeClass("active"),this.$activeTabLink[0].classList.add("active"),this.index=Math.max(this.$tabLinks.index(this.$activeTabLink),0),this.$activeTabLink.length&&(this.$content=t(M.escapeHash(this.$activeTabLink[0].hash)),this.$content.addClass("active"))}},{key:"_setupSwipeableTabs",value:function(){var e=this;window.innerWidth>this.options.responsiveThreshold&&(this.options.swipeable=!1);var n=t();this.$tabLinks.each((function(e){var i=t(M.escapeHash(e.hash));i.addClass("carousel-item"),n=n.add(i)}));var i=t('<div class="tabs-content carousel carousel-slider"></div>');n.first().before(i),i.append(n),n[0].style.display="";var o=this.$activeTabLink.closest(".tab").index();this._tabsCarousel=M.Carousel.init(i[0],{fullWidth:!0,noWrap:!0,onCycleTo:function(n){var i=e.index;e.index=t(n).index(),e.$activeTabLink.removeClass("active"),e.$activeTabLink=e.$tabLinks.eq(e.index),e.$activeTabLink.addClass("active"),e._animateIndicator(i),"function"==typeof e.options.onShow&&e.options.onShow.call(e,e.$content[0])}}),this._tabsCarousel.set(o)}},{key:"_teardownSwipeableTabs",value:function(){var t=this._tabsCarousel.$el;this._tabsCarousel.destroy(),t.after(t.children()),t.remove()}},{key:"_setupNormalTabs",value:function(){this.$tabLinks.not(this.$activeTabLink).each((function(e){if(e.hash){var n=t(M.escapeHash(e.hash));n.length&&(n[0].style.display="none")}}))}},{key:"_teardownNormalTabs",value:function(){this.$tabLinks.each((function(e){if(e.hash){var n=t(M.escapeHash(e.hash));n.length&&(n[0].style.display="")}}))}},{key:"_setTabsAndTabWidth",value:function(){this.tabsWidth=this.$el.width(),this.tabWidth=Math.max(this.tabsWidth,this.el.scrollWidth)/this.$tabLinks.length}},{key:"_calcRightPos",value:function(t){return Math.ceil(this.tabsWidth-t.position().left-t[0].getBoundingClientRect().width)}},{key:"_calcLeftPos",value:function(t){return Math.floor(t.position().left)}},{key:"updateTabIndicator",value:function(){this._setTabsAndTabWidth(),this._animateIndicator(this.index)}},{key:"_animateIndicator",value:function(t){var n=0,i=0;0<=this.index-t?n=90:i=90;var o={targets:this._indicator,left:{value:this._calcLeftPos(this.$activeTabLink),delay:n},right:{value:this._calcRightPos(this.$activeTabLink),delay:i},duration:this.options.duration,easing:"easeOutQuad"};e.remove(this._indicator),e(o)}},{key:"select",value:function(t){var e=this.$tabLinks.filter('[href="#'+t+'"]');e.length&&e.trigger("click")}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Tabs}},{key:"defaults",get:function(){return n}}]),o}();M.Tabs=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"tabs","M_Tabs")}(cash,M.anime),function(t,e){"use strict";var n={exitDelay:200,enterDelay:0,html:null,margin:5,inDuration:250,outDuration:200,position:"bottom",transitionMovement:10},i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return(i.el.M_Tooltip=i).options=t.extend({},o.defaults,n),i.isOpen=!1,i.isHovered=!1,i.isFocused=!1,i._appendTooltipEl(),i._setupEventHandlers(),i}return c(o,h),l(o,[{key:"destroy",value:function(){t(this.tooltipEl).remove(),this._removeEventHandlers(),this.el.M_Tooltip=void 0}},{key:"_appendTooltipEl",value:function(){var t=document.createElement("div");t.classList.add("material-tooltip"),this.tooltipEl=t;var e=document.createElement("div");e.classList.add("tooltip-content"),e.innerHTML=this.options.html,t.appendChild(e),document.body.appendChild(t)}},{key:"_updateTooltipContent",value:function(){this.tooltipEl.querySelector(".tooltip-content").innerHTML=this.options.html}},{key:"_setupEventHandlers",value:function(){this._handleMouseEnterBound=this._handleMouseEnter.bind(this),this._handleMouseLeaveBound=this._handleMouseLeave.bind(this),this._handleFocusBound=this._handleFocus.bind(this),this._handleBlurBound=this._handleBlur.bind(this),this.el.addEventListener("mouseenter",this._handleMouseEnterBound),this.el.addEventListener("mouseleave",this._handleMouseLeaveBound),this.el.addEventListener("focus",this._handleFocusBound,!0),this.el.addEventListener("blur",this._handleBlurBound,!0)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("mouseenter",this._handleMouseEnterBound),this.el.removeEventListener("mouseleave",this._handleMouseLeaveBound),this.el.removeEventListener("focus",this._handleFocusBound,!0),this.el.removeEventListener("blur",this._handleBlurBound,!0)}},{key:"open",value:function(e){this.isOpen||(e=void 0===e||void 0,this.isOpen=!0,this.options=t.extend({},this.options,this._getAttributeOptions()),this._updateTooltipContent(),this._setEnterDelayTimeout(e))}},{key:"close",value:function(){this.isOpen&&(this.isHovered=!1,this.isFocused=!1,this.isOpen=!1,this._setExitDelayTimeout())}},{key:"_setExitDelayTimeout",value:function(){var t=this;clearTimeout(this._exitDelayTimeout),this._exitDelayTimeout=setTimeout((function(){t.isHovered||t.isFocused||t._animateOut()}),this.options.exitDelay)}},{key:"_setEnterDelayTimeout",value:function(t){var e=this;clearTimeout(this._enterDelayTimeout),this._enterDelayTimeout=setTimeout((function(){(e.isHovered||e.isFocused||t)&&e._animateIn()}),this.options.enterDelay)}},{key:"_positionTooltip",value:function(){var e,n=this.el,i=this.tooltipEl,o=n.offsetHeight,a=n.offsetWidth,r=i.offsetHeight,s=i.offsetWidth,l=this.options.margin,d=void 0,c=void 0;this.xMovement=0,this.yMovement=0,d=n.getBoundingClientRect().top+M.getDocumentScrollTop(),c=n.getBoundingClientRect().left+M.getDocumentScrollLeft(),"top"===this.options.position?(d+=-r-l,c+=a/2-s/2,this.yMovement=-this.options.transitionMovement):"right"===this.options.position?(d+=o/2-r/2,c+=a+l,this.xMovement=this.options.transitionMovement):"left"===this.options.position?(d+=o/2-r/2,c+=-s-l,this.xMovement=-this.options.transitionMovement):(d+=o+l,c+=a/2-s/2,this.yMovement=this.options.transitionMovement),e=this._repositionWithinScreen(c,d,s,r),t(i).css({top:e.y+"px",left:e.x+"px"})}},{key:"_repositionWithinScreen",value:function(t,e,n,i){var o=M.getDocumentScrollLeft(),a=M.getDocumentScrollTop(),r=t-o,s=e-a,l={left:r,top:s,width:n,height:i},d=this.options.margin+this.options.transitionMovement,c=M.checkWithinContainer(document.body,l,d);return c.left?r=d:c.right&&(r-=r+n-window.innerWidth),c.top?s=d:c.bottom&&(s-=s+i-window.innerHeight),{x:r+o,y:s+a}}},{key:"_animateIn",value:function(){this._positionTooltip(),this.tooltipEl.style.visibility="visible",e.remove(this.tooltipEl),e({targets:this.tooltipEl,opacity:1,translateX:this.xMovement,translateY:this.yMovement,duration:this.options.inDuration,easing:"easeOutCubic"})}},{key:"_animateOut",value:function(){e.remove(this.tooltipEl),e({targets:this.tooltipEl,opacity:0,translateX:0,translateY:0,duration:this.options.outDuration,easing:"easeOutCubic"})}},{key:"_handleMouseEnter",value:function(){this.isHovered=!0,this.isFocused=!1,this.open(!1)}},{key:"_handleMouseLeave",value:function(){this.isHovered=!1,this.isFocused=!1,this.close()}},{key:"_handleFocus",value:function(){M.tabPressed&&(this.isFocused=!0,this.open(!1))}},{key:"_handleBlur",value:function(){this.isFocused=!1,this.close()}},{key:"_getAttributeOptions",value:function(){var t={},e=this.el.getAttribute("data-tooltip"),n=this.el.getAttribute("data-position");return e&&(t.html=e),n&&(t.position=n),t}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Tooltip}},{key:"defaults",get:function(){return n}}]),o}();M.Tooltip=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"tooltip","M_Tooltip")}(cash,M.anime),function(t){"use strict";var e=e||{},n=document.querySelectorAll.bind(document);function i(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e+=n+":"+t[n]+";");return e}var o={duration:750,show:function(t,e){if(2===t.button)return!1;var n=e||this,a=document.createElement("div");a.className="waves-ripple",n.appendChild(a);var r,s,l,d,c,u,p,h=(u={top:0,left:0},s=(p=(r=n)&&r.ownerDocument).documentElement,void 0!==r.getBoundingClientRect&&(u=r.getBoundingClientRect()),l=null!==(c=d=p)&&c===c.window?d:9===d.nodeType&&d.defaultView,{top:u.top+l.pageYOffset-s.clientTop,left:u.left+l.pageXOffset-s.clientLeft}),f=t.pageY-h.top,m=t.pageX-h.left,g="scale("+n.clientWidth/100*10+")";"touches"in t&&(f=t.touches[0].pageY-h.top,m=t.touches[0].pageX-h.left),a.setAttribute("data-hold",Date.now()),a.setAttribute("data-scale",g),a.setAttribute("data-x",m),a.setAttribute("data-y",f);var b={top:f+"px",left:m+"px"};a.className=a.className+" waves-notransition",a.setAttribute("style",i(b)),a.className=a.className.replace("waves-notransition",""),b["-webkit-transform"]=g,b["-moz-transform"]=g,b["-ms-transform"]=g,b["-o-transform"]=g,b.transform=g,b.opacity="1",b["-webkit-transition-duration"]=o.duration+"ms",b["-moz-transition-duration"]=o.duration+"ms",b["-o-transition-duration"]=o.duration+"ms",b["transition-duration"]=o.duration+"ms",b["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",b["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",b["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",b["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",a.setAttribute("style",i(b))},hide:function(t){a.touchup(t);var e=this,n=(e.clientWidth,null),r=e.getElementsByClassName("waves-ripple");if(!(0<r.length))return!1;var s=(n=r[r.length-1]).getAttribute("data-x"),l=n.getAttribute("data-y"),d=n.getAttribute("data-scale"),c=350-(Date.now()-Number(n.getAttribute("data-hold")));c<0&&(c=0),setTimeout((function(){var t={top:l+"px",left:s+"px",opacity:"0","-webkit-transition-duration":o.duration+"ms","-moz-transition-duration":o.duration+"ms","-o-transition-duration":o.duration+"ms","transition-duration":o.duration+"ms","-webkit-transform":d,"-moz-transform":d,"-ms-transform":d,"-o-transform":d,transform:d};n.setAttribute("style",i(t)),setTimeout((function(){try{e.removeChild(n)}catch(t){return!1}}),o.duration)}),c)},wrapInput:function(t){for(var e=0;e<t.length;e++){var n=t[e];if("input"===n.tagName.toLowerCase()){var i=n.parentNode;if("i"===i.tagName.toLowerCase()&&-1!==i.className.indexOf("waves-effect"))continue;var o=document.createElement("i");o.className=n.className+" waves-input-wrapper";var a=n.getAttribute("style");a||(a=""),o.setAttribute("style",a),n.className="waves-button-input",n.removeAttribute("style"),i.replaceChild(o,n),o.appendChild(n)}}}},a={touches:0,allowEvent:function(t){var e=!0;return"touchstart"===t.type?a.touches+=1:"touchend"===t.type||"touchcancel"===t.type?setTimeout((function(){0<a.touches&&(a.touches-=1)}),500):"mousedown"===t.type&&0<a.touches&&(e=!1),e},touchup:function(t){a.allowEvent(t)}};function r(e){var n=function(t){if(!1===a.allowEvent(t))return null;for(var e=null,n=t.target||t.srcElement;null!==n.parentNode;){if(!(n instanceof SVGElement)&&-1!==n.className.indexOf("waves-effect")){e=n;break}n=n.parentNode}return e}(e);null!==n&&(o.show(e,n),"ontouchstart"in t&&(n.addEventListener("touchend",o.hide,!1),n.addEventListener("touchcancel",o.hide,!1)),n.addEventListener("mouseup",o.hide,!1),n.addEventListener("mouseleave",o.hide,!1),n.addEventListener("dragend",o.hide,!1))}e.displayEffect=function(e){"duration"in(e=e||{})&&(o.duration=e.duration),o.wrapInput(n(".waves-effect")),"ontouchstart"in t&&document.body.addEventListener("touchstart",r,!1),document.body.addEventListener("mousedown",r,!1)},e.attach=function(e){"input"===e.tagName.toLowerCase()&&(o.wrapInput([e]),e=e.parentNode),"ontouchstart"in t&&e.addEventListener("touchstart",r,!1),e.addEventListener("mousedown",r,!1)},t.Waves=e,document.addEventListener("DOMContentLoaded",(function(){e.displayEffect()}),!1)}(window),function(t,e){"use strict";var n={html:"",displayLength:4e3,inDuration:300,outDuration:375,classes:"",completeCallback:null,activationPercent:.8},i=function(){function i(e){u(this,i),this.options=t.extend({},i.defaults,e),this.message=this.options.html,this.panning=!1,this.timeRemaining=this.options.displayLength,0===i._toasts.length&&i._createContainer(),i._toasts.push(this);var n=this._createToast();(n.M_Toast=this).el=n,this.$el=t(n),this._animateIn(),this._setTimer()}return l(i,[{key:"_createToast",value:function(){var e=document.createElement("div");return e.classList.add("toast"),this.options.classes.length&&t(e).addClass(this.options.classes),("object"==typeof HTMLElement?this.message instanceof HTMLElement:this.message&&"object"==typeof this.message&&null!==this.message&&1===this.message.nodeType&&"string"==typeof this.message.nodeName)?e.appendChild(this.message):this.message.jquery?t(e).append(this.message[0]):e.innerHTML=this.message,i._container.appendChild(e),e}},{key:"_animateIn",value:function(){e({targets:this.el,top:0,opacity:1,duration:this.options.inDuration,easing:"easeOutCubic"})}},{key:"_setTimer",value:function(){var t=this;this.timeRemaining!==1/0&&(this.counterInterval=setInterval((function(){t.panning||(t.timeRemaining-=20),t.timeRemaining<=0&&t.dismiss()}),20))}},{key:"dismiss",value:function(){var t=this;window.clearInterval(this.counterInterval);var n=this.el.offsetWidth*this.options.activationPercent;this.wasSwiped&&(this.el.style.transition="transform .05s, opacity .05s",this.el.style.transform="translateX("+n+"px)",this.el.style.opacity=0),e({targets:this.el,opacity:0,marginTop:-40,duration:this.options.outDuration,easing:"easeOutExpo",complete:function(){"function"==typeof t.options.completeCallback&&t.options.completeCallback(),t.$el.remove(),i._toasts.splice(i._toasts.indexOf(t),1),0===i._toasts.length&&i._removeContainer()}})}}],[{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Toast}},{key:"_createContainer",value:function(){var t=document.createElement("div");t.setAttribute("id","toast-container"),t.addEventListener("touchstart",i._onDragStart),t.addEventListener("touchmove",i._onDragMove),t.addEventListener("touchend",i._onDragEnd),t.addEventListener("mousedown",i._onDragStart),document.addEventListener("mousemove",i._onDragMove),document.addEventListener("mouseup",i._onDragEnd),document.body.appendChild(t),i._container=t}},{key:"_removeContainer",value:function(){document.removeEventListener("mousemove",i._onDragMove),document.removeEventListener("mouseup",i._onDragEnd),t(i._container).remove(),i._container=null}},{key:"_onDragStart",value:function(e){if(e.target&&t(e.target).closest(".toast").length){var n=t(e.target).closest(".toast")[0].M_Toast;n.panning=!0,(i._draggedToast=n).el.classList.add("panning"),n.el.style.transition="",n.startingXPos=i._xPos(e),n.time=Date.now(),n.xPos=i._xPos(e)}}},{key:"_onDragMove",value:function(t){if(i._draggedToast){t.preventDefault();var e=i._draggedToast;e.deltaX=Math.abs(e.xPos-i._xPos(t)),e.xPos=i._xPos(t),e.velocityX=e.deltaX/(Date.now()-e.time),e.time=Date.now();var n=e.xPos-e.startingXPos,o=e.el.offsetWidth*e.options.activationPercent;e.el.style.transform="translateX("+n+"px)",e.el.style.opacity=1-Math.abs(n/o)}}},{key:"_onDragEnd",value:function(){if(i._draggedToast){var t=i._draggedToast;t.panning=!1,t.el.classList.remove("panning");var e=t.xPos-t.startingXPos,n=t.el.offsetWidth*t.options.activationPercent;Math.abs(e)>n||1<t.velocityX?(t.wasSwiped=!0,t.dismiss()):(t.el.style.transition="transform .2s, opacity .2s",t.el.style.transform="",t.el.style.opacity=""),i._draggedToast=null}}},{key:"_xPos",value:function(t){return t.targetTouches&&1<=t.targetTouches.length?t.targetTouches[0].clientX:t.clientX}},{key:"dismissAll",value:function(){for(var t in i._toasts)i._toasts[t].dismiss()}},{key:"defaults",get:function(){return n}}]),i}();i._toasts=[],i._container=null,i._draggedToast=null,M.Toast=i,M.toast=function(t){return new i(t)}}(cash,M.anime),function(t,e){"use strict";var n={edge:"left",draggable:!0,inDuration:250,outDuration:200,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,preventScrolling:!0},i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return(i.el.M_Sidenav=i).id=i.$el.attr("id"),i.options=t.extend({},o.defaults,n),i.isOpen=!1,i.isFixed=i.el.classList.contains("sidenav-fixed"),i.isDragged=!1,i.lastWindowWidth=window.innerWidth,i.lastWindowHeight=window.innerHeight,i._createOverlay(),i._createDragTarget(),i._setupEventHandlers(),i._setupClasses(),i._setupFixed(),o._sidenavs.push(i),i}return c(o,h),l(o,[{key:"destroy",value:function(){this._removeEventHandlers(),this._enableBodyScrolling(),this._overlay.parentNode.removeChild(this._overlay),this.dragTarget.parentNode.removeChild(this.dragTarget),this.el.M_Sidenav=void 0,this.el.style.transform="";var t=o._sidenavs.indexOf(this);0<=t&&o._sidenavs.splice(t,1)}},{key:"_createOverlay",value:function(){var t=document.createElement("div");this._closeBound=this.close.bind(this),t.classList.add("sidenav-overlay"),t.addEventListener("click",this._closeBound),document.body.appendChild(t),this._overlay=t}},{key:"_setupEventHandlers",value:function(){0===o._sidenavs.length&&document.body.addEventListener("click",this._handleTriggerClick),this._handleDragTargetDragBound=this._handleDragTargetDrag.bind(this),this._handleDragTargetReleaseBound=this._handleDragTargetRelease.bind(this),this._handleCloseDragBound=this._handleCloseDrag.bind(this),this._handleCloseReleaseBound=this._handleCloseRelease.bind(this),this._handleCloseTriggerClickBound=this._handleCloseTriggerClick.bind(this),this.dragTarget.addEventListener("touchmove",this._handleDragTargetDragBound),this.dragTarget.addEventListener("touchend",this._handleDragTargetReleaseBound),this._overlay.addEventListener("touchmove",this._handleCloseDragBound),this._overlay.addEventListener("touchend",this._handleCloseReleaseBound),this.el.addEventListener("touchmove",this._handleCloseDragBound),this.el.addEventListener("touchend",this._handleCloseReleaseBound),this.el.addEventListener("click",this._handleCloseTriggerClickBound),this.isFixed&&(this._handleWindowResizeBound=this._handleWindowResize.bind(this),window.addEventListener("resize",this._handleWindowResizeBound))}},{key:"_removeEventHandlers",value:function(){1===o._sidenavs.length&&document.body.removeEventListener("click",this._handleTriggerClick),this.dragTarget.removeEventListener("touchmove",this._handleDragTargetDragBound),this.dragTarget.removeEventListener("touchend",this._handleDragTargetReleaseBound),this._overlay.removeEventListener("touchmove",this._handleCloseDragBound),this._overlay.removeEventListener("touchend",this._handleCloseReleaseBound),this.el.removeEventListener("touchmove",this._handleCloseDragBound),this.el.removeEventListener("touchend",this._handleCloseReleaseBound),this.el.removeEventListener("click",this._handleCloseTriggerClickBound),this.isFixed&&window.removeEventListener("resize",this._handleWindowResizeBound)}},{key:"_handleTriggerClick",value:function(e){var n=t(e.target).closest(".sidenav-trigger");if(e.target&&n.length){var i=M.getIdFromTrigger(n[0]),o=document.getElementById(i).M_Sidenav;o&&o.open(n),e.preventDefault()}}},{key:"_startDrag",value:function(t){var n=t.targetTouches[0].clientX;this.isDragged=!0,this._startingXpos=n,this._xPos=this._startingXpos,this._time=Date.now(),this._width=this.el.getBoundingClientRect().width,this._overlay.style.display="block",this._initialScrollTop=this.isOpen?this.el.scrollTop:M.getDocumentScrollTop(),this._verticallyScrolling=!1,e.remove(this.el),e.remove(this._overlay)}},{key:"_dragMoveUpdate",value:function(t){var e=t.targetTouches[0].clientX,n=this.isOpen?this.el.scrollTop:M.getDocumentScrollTop();this.deltaX=Math.abs(this._xPos-e),this._xPos=e,this.velocityX=this.deltaX/(Date.now()-this._time),this._time=Date.now(),this._initialScrollTop!==n&&(this._verticallyScrolling=!0)}},{key:"_handleDragTargetDrag",value:function(t){if(this.options.draggable&&!this._isCurrentlyFixed()&&!this._verticallyScrolling){this.isDragged||this._startDrag(t),this._dragMoveUpdate(t);var e=this._xPos-this._startingXpos,n=0<e?"right":"left";e=Math.min(this._width,Math.abs(e)),this.options.edge===n&&(e=0);var i=e,o="translateX(-100%)";"right"===this.options.edge&&(o="translateX(100%)",i=-i),this.percentOpen=Math.min(1,e/this._width),this.el.style.transform=o+" translateX("+i+"px)",this._overlay.style.opacity=this.percentOpen}}},{key:"_handleDragTargetRelease",value:function(){this.isDragged&&(.2<this.percentOpen?this.open():this._animateOut(),this.isDragged=!1,this._verticallyScrolling=!1)}},{key:"_handleCloseDrag",value:function(t){if(this.isOpen){if(!this.options.draggable||this._isCurrentlyFixed()||this._verticallyScrolling)return;this.isDragged||this._startDrag(t),this._dragMoveUpdate(t);var e=this._xPos-this._startingXpos,n=0<e?"right":"left";e=Math.min(this._width,Math.abs(e)),this.options.edge!==n&&(e=0);var i=-e;"right"===this.options.edge&&(i=-i),this.percentOpen=Math.min(1,1-e/this._width),this.el.style.transform="translateX("+i+"px)",this._overlay.style.opacity=this.percentOpen}}},{key:"_handleCloseRelease",value:function(){this.isOpen&&this.isDragged&&(.8<this.percentOpen?this._animateIn():this.close(),this.isDragged=!1,this._verticallyScrolling=!1)}},{key:"_handleCloseTriggerClick",value:function(e){t(e.target).closest(".sidenav-close").length&&!this._isCurrentlyFixed()&&this.close()}},{key:"_handleWindowResize",value:function(){this.lastWindowWidth!==window.innerWidth&&(992<window.innerWidth?this.open():this.close()),this.lastWindowWidth=window.innerWidth,this.lastWindowHeight=window.innerHeight}},{key:"_setupClasses",value:function(){"right"===this.options.edge&&(this.el.classList.add("right-aligned"),this.dragTarget.classList.add("right-aligned"))}},{key:"_removeClasses",value:function(){this.el.classList.remove("right-aligned"),this.dragTarget.classList.remove("right-aligned")}},{key:"_setupFixed",value:function(){this._isCurrentlyFixed()&&this.open()}},{key:"_isCurrentlyFixed",value:function(){return this.isFixed&&992<window.innerWidth}},{key:"_createDragTarget",value:function(){var t=document.createElement("div");t.classList.add("drag-target"),document.body.appendChild(t),this.dragTarget=t}},{key:"_preventBodyScrolling",value:function(){document.body.style.overflow="hidden"}},{key:"_enableBodyScrolling",value:function(){document.body.style.overflow=""}},{key:"open",value:function(){!0!==this.isOpen&&(this.isOpen=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this._isCurrentlyFixed()?(e.remove(this.el),e({targets:this.el,translateX:0,duration:0,easing:"easeOutQuad"}),this._enableBodyScrolling(),this._overlay.style.display="none"):(this.options.preventScrolling&&this._preventBodyScrolling(),this.isDragged&&1==this.percentOpen||this._animateIn()))}},{key:"close",value:function(){if(!1!==this.isOpen)if(this.isOpen=!1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this._isCurrentlyFixed()){var t="left"===this.options.edge?"-105%":"105%";this.el.style.transform="translateX("+t+")"}else this._enableBodyScrolling(),this.isDragged&&0==this.percentOpen?this._overlay.style.display="none":this._animateOut()}},{key:"_animateIn",value:function(){this._animateSidenavIn(),this._animateOverlayIn()}},{key:"_animateSidenavIn",value:function(){var t=this,n="left"===this.options.edge?-1:1;this.isDragged&&(n="left"===this.options.edge?n+this.percentOpen:n-this.percentOpen),e.remove(this.el),e({targets:this.el,translateX:[100*n+"%",0],duration:this.options.inDuration,easing:"easeOutQuad",complete:function(){"function"==typeof t.options.onOpenEnd&&t.options.onOpenEnd.call(t,t.el)}})}},{key:"_animateOverlayIn",value:function(){var n=0;this.isDragged?n=this.percentOpen:t(this._overlay).css({display:"block"}),e.remove(this._overlay),e({targets:this._overlay,opacity:[n,1],duration:this.options.inDuration,easing:"easeOutQuad"})}},{key:"_animateOut",value:function(){this._animateSidenavOut(),this._animateOverlayOut()}},{key:"_animateSidenavOut",value:function(){var t=this,n="left"===this.options.edge?-1:1,i=0;this.isDragged&&(i="left"===this.options.edge?n+this.percentOpen:n-this.percentOpen),e.remove(this.el),e({targets:this.el,translateX:[100*i+"%",105*n+"%"],duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t,t.el)}})}},{key:"_animateOverlayOut",value:function(){var n=this;e.remove(this._overlay),e({targets:this._overlay,opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t(n._overlay).css("display","none")}})}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Sidenav}},{key:"defaults",get:function(){return n}}]),o}();i._sidenavs=[],M.Sidenav=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"sidenav","M_Sidenav")}(cash,M.anime),function(t,e){"use strict";var n={throttle:100,scrollOffset:200,activeClass:"active",getActiveElement:function(t){return'a[href="#'+t+'"]'}},i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return(i.el.M_ScrollSpy=i).options=t.extend({},o.defaults,n),o._elements.push(i),o._count++,o._increment++,i.tickId=-1,i.id=o._increment,i._setupEventHandlers(),i._handleWindowScroll(),i}return c(o,h),l(o,[{key:"destroy",value:function(){o._elements.splice(o._elements.indexOf(this),1),o._elementsInView.splice(o._elementsInView.indexOf(this),1),o._visibleElements.splice(o._visibleElements.indexOf(this.$el),1),o._count--,this._removeEventHandlers(),t(this.options.getActiveElement(this.$el.attr("id"))).removeClass(this.options.activeClass),this.el.M_ScrollSpy=void 0}},{key:"_setupEventHandlers",value:function(){var t=M.throttle(this._handleWindowScroll,200);this._handleThrottledResizeBound=t.bind(this),this._handleWindowScrollBound=this._handleWindowScroll.bind(this),1===o._count&&(window.addEventListener("scroll",this._handleWindowScrollBound),window.addEventListener("resize",this._handleThrottledResizeBound),document.body.addEventListener("click",this._handleTriggerClick))}},{key:"_removeEventHandlers",value:function(){0===o._count&&(window.removeEventListener("scroll",this._handleWindowScrollBound),window.removeEventListener("resize",this._handleThrottledResizeBound),document.body.removeEventListener("click",this._handleTriggerClick))}},{key:"_handleTriggerClick",value:function(n){for(var i=t(n.target),a=o._elements.length-1;0<=a;a--){var r=o._elements[a];if(i.is('a[href="#'+r.$el.attr("id")+'"]')){n.preventDefault();var s=r.$el.offset().top+1;e({targets:[document.documentElement,document.body],scrollTop:s-r.options.scrollOffset,duration:400,easing:"easeOutCubic"});break}}}},{key:"_handleWindowScroll",value:function(){o._ticks++;for(var t=M.getDocumentScrollTop(),e=M.getDocumentScrollLeft(),n=e+window.innerWidth,i=t+window.innerHeight,a=o._findElements(t,n,i,e),r=0;r<a.length;r++){var s=a[r];s.tickId<0&&s._enter(),s.tickId=o._ticks}for(var l=0;l<o._elementsInView.length;l++){var d=o._elementsInView[l],c=d.tickId;0<=c&&c!==o._ticks&&(d._exit(),d.tickId=-1)}o._elementsInView=a}},{key:"_enter",value:function(){(o._visibleElements=o._visibleElements.filter((function(t){return 0!=t.height()})))[0]?(t(this.options.getActiveElement(o._visibleElements[0].attr("id"))).removeClass(this.options.activeClass),o._visibleElements[0][0].M_ScrollSpy&&this.id<o._visibleElements[0][0].M_ScrollSpy.id?o._visibleElements.unshift(this.$el):o._visibleElements.push(this.$el)):o._visibleElements.push(this.$el),t(this.options.getActiveElement(o._visibleElements[0].attr("id"))).addClass(this.options.activeClass)}},{key:"_exit",value:function(){var e=this;(o._visibleElements=o._visibleElements.filter((function(t){return 0!=t.height()})))[0]&&(t(this.options.getActiveElement(o._visibleElements[0].attr("id"))).removeClass(this.options.activeClass),(o._visibleElements=o._visibleElements.filter((function(t){return t.attr("id")!=e.$el.attr("id")})))[0]&&t(this.options.getActiveElement(o._visibleElements[0].attr("id"))).addClass(this.options.activeClass))}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_ScrollSpy}},{key:"_findElements",value:function(t,e,n,i){for(var a=[],r=0;r<o._elements.length;r++){var s=o._elements[r],l=t+s.options.scrollOffset||200;if(0<s.$el.height()){var d=s.$el.offset().top,c=s.$el.offset().left,u=c+s.$el.width(),p=d+s.$el.height();!(e<c||u<i||n<d||p<l)&&a.push(s)}}return a}},{key:"defaults",get:function(){return n}}]),o}();i._elements=[],i._elementsInView=[],i._visibleElements=[],i._count=0,i._increment=0,i._ticks=0,M.ScrollSpy=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"scrollSpy","M_ScrollSpy")}(cash,M.anime),function(t){"use strict";var e={data:{},limit:1/0,onAutocomplete:null,minLength:1,sortFunction:function(t,e,n){return t.indexOf(n)-e.indexOf(n)}},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return(o.el.M_Autocomplete=o).options=t.extend({},i.defaults,n),o.isOpen=!1,o.count=0,o.activeIndex=-1,o.oldVal,o.$inputField=o.$el.closest(".input-field"),o.$active=t(),o._mousedown=!1,o._setupDropdown(),o._setupEventHandlers(),o}return c(i,h),l(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeDropdown(),this.el.M_Autocomplete=void 0}},{key:"_setupEventHandlers",value:function(){this._handleInputBlurBound=this._handleInputBlur.bind(this),this._handleInputKeyupAndFocusBound=this._handleInputKeyupAndFocus.bind(this),this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleContainerMousedownAndTouchstartBound=this._handleContainerMousedownAndTouchstart.bind(this),this._handleContainerMouseupAndTouchendBound=this._handleContainerMouseupAndTouchend.bind(this),this.el.addEventListener("blur",this._handleInputBlurBound),this.el.addEventListener("keyup",this._handleInputKeyupAndFocusBound),this.el.addEventListener("focus",this._handleInputKeyupAndFocusBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.el.addEventListener("click",this._handleInputClickBound),this.container.addEventListener("mousedown",this._handleContainerMousedownAndTouchstartBound),this.container.addEventListener("mouseup",this._handleContainerMouseupAndTouchendBound),void 0!==window.ontouchstart&&(this.container.addEventListener("touchstart",this._handleContainerMousedownAndTouchstartBound),this.container.addEventListener("touchend",this._handleContainerMouseupAndTouchendBound))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("blur",this._handleInputBlurBound),this.el.removeEventListener("keyup",this._handleInputKeyupAndFocusBound),this.el.removeEventListener("focus",this._handleInputKeyupAndFocusBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound),this.el.removeEventListener("click",this._handleInputClickBound),this.container.removeEventListener("mousedown",this._handleContainerMousedownAndTouchstartBound),this.container.removeEventListener("mouseup",this._handleContainerMouseupAndTouchendBound),void 0!==window.ontouchstart&&(this.container.removeEventListener("touchstart",this._handleContainerMousedownAndTouchstartBound),this.container.removeEventListener("touchend",this._handleContainerMouseupAndTouchendBound))}},{key:"_setupDropdown",value:function(){var e=this;this.container=document.createElement("ul"),this.container.id="autocomplete-options-"+M.guid(),t(this.container).addClass("autocomplete-content dropdown-content"),this.$inputField.append(this.container),this.el.setAttribute("data-target",this.container.id),this.dropdown=M.Dropdown.init(this.el,{autoFocus:!1,closeOnClick:!1,coverTrigger:!1,onItemClick:function(n){e.selectOption(t(n))}}),this.el.removeEventListener("click",this.dropdown._handleClickBound)}},{key:"_removeDropdown",value:function(){this.container.parentNode.removeChild(this.container)}},{key:"_handleInputBlur",value:function(){this._mousedown||(this.close(),this._resetAutocomplete())}},{key:"_handleInputKeyupAndFocus",value:function(t){"keyup"===t.type&&(i._keydown=!1),this.count=0;var e=this.el.value.toLowerCase();13!==t.keyCode&&38!==t.keyCode&&40!==t.keyCode&&(this.oldVal===e||!M.tabPressed&&"focus"===t.type||this.open(),this.oldVal=e)}},{key:"_handleInputKeydown",value:function(e){i._keydown=!0;var n=e.keyCode,o=void 0,a=t(this.container).children("li").length;n===M.keys.ENTER&&0<=this.activeIndex?(o=t(this.container).children("li").eq(this.activeIndex)).length&&(this.selectOption(o),e.preventDefault()):n!==M.keys.ARROW_UP&&n!==M.keys.ARROW_DOWN||(e.preventDefault(),n===M.keys.ARROW_UP&&0<this.activeIndex&&this.activeIndex--,n===M.keys.ARROW_DOWN&&this.activeIndex<a-1&&this.activeIndex++,this.$active.removeClass("active"),0<=this.activeIndex&&(this.$active=t(this.container).children("li").eq(this.activeIndex),this.$active.addClass("active")))}},{key:"_handleInputClick",value:function(t){this.open()}},{key:"_handleContainerMousedownAndTouchstart",value:function(t){this._mousedown=!0}},{key:"_handleContainerMouseupAndTouchend",value:function(t){this._mousedown=!1}},{key:"_highlight",value:function(t,e){var n=e.find("img"),i=e.text().toLowerCase().indexOf(""+t.toLowerCase()),o=i+t.length-1,a=e.text().slice(0,i),r=e.text().slice(i,o+1),s=e.text().slice(o+1);e.html("<span>"+a+"<span class='highlight'>"+r+"</span>"+s+"</span>"),n.length&&e.prepend(n)}},{key:"_resetCurrentElement",value:function(){this.activeIndex=-1,this.$active.removeClass("active")}},{key:"_resetAutocomplete",value:function(){t(this.container).empty(),this._resetCurrentElement(),this.oldVal=null,this.isOpen=!1,this._mousedown=!1}},{key:"selectOption",value:function(t){var e=t.text().trim();this.el.value=e,this.$el.trigger("change"),this._resetAutocomplete(),this.close(),"function"==typeof this.options.onAutocomplete&&this.options.onAutocomplete.call(this,e)}},{key:"_renderDropdown",value:function(e,n){var i=this;this._resetAutocomplete();var o=[];for(var a in e)if(e.hasOwnProperty(a)&&-1!==a.toLowerCase().indexOf(n)){if(this.count>=this.options.limit)break;var r={data:e[a],key:a};o.push(r),this.count++}this.options.sortFunction&&o.sort((function(t,e){return i.options.sortFunction(t.key.toLowerCase(),e.key.toLowerCase(),n.toLowerCase())}));for(var s=0;s<o.length;s++){var l=o[s],d=t("<li></li>");l.data?d.append('<img src="'+l.data+'" class="right circle"><span>'+l.key+"</span>"):d.append("<span>"+l.key+"</span>"),t(this.container).append(d),this._highlight(n,d)}}},{key:"open",value:function(){var t=this.el.value.toLowerCase();this._resetAutocomplete(),t.length>=this.options.minLength&&(this.isOpen=!0,this._renderDropdown(this.options.data,t)),this.dropdown.isOpen?this.dropdown.recalculateDimensions():this.dropdown.open()}},{key:"close",value:function(){this.dropdown.close()}},{key:"updateData",value:function(t){var e=this.el.value.toLowerCase();this.options.data=t,this.isOpen&&this._renderDropdown(t,e)}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Autocomplete}},{key:"defaults",get:function(){return e}}]),i}();n._keydown=!1,M.Autocomplete=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"autocomplete","M_Autocomplete")}(cash),v=cash,M.updateTextFields=function(){v("input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea").each((function(t,e){var n=v(this);0<t.value.length||v(t).is(":focus")||t.autofocus||null!==n.attr("placeholder")?n.siblings("label").addClass("active"):t.validity?n.siblings("label").toggleClass("active",!0===t.validity.badInput):n.siblings("label").removeClass("active")}))},M.validate_field=function(t){var e=null!==t.attr("data-length"),n=parseInt(t.attr("data-length")),i=t[0].value.length;0!==i||!1!==t[0].validity.badInput||t.is(":required")?t.hasClass("validate")&&(t.is(":valid")&&e&&i<=n||t.is(":valid")&&!e?(t.removeClass("invalid"),t.addClass("valid")):(t.removeClass("valid"),t.addClass("invalid"))):t.hasClass("validate")&&(t.removeClass("valid"),t.removeClass("invalid"))},M.textareaAutoResize=function(t){if(t instanceof Element&&(t=v(t)),t.length){var e=v(".hiddendiv").first();e.length||(e=v('<div class="hiddendiv common"></div>'),v("body").append(e));var n=t.css("font-family"),i=t.css("font-size"),o=t.css("line-height"),a=t.css("padding-top"),r=t.css("padding-right"),s=t.css("padding-bottom"),l=t.css("padding-left");i&&e.css("font-size",i),n&&e.css("font-family",n),o&&e.css("line-height",o),a&&e.css("padding-top",a),r&&e.css("padding-right",r),s&&e.css("padding-bottom",s),l&&e.css("padding-left",l),t.data("original-height")||t.data("original-height",t.height()),"off"===t.attr("wrap")&&e.css("overflow-wrap","normal").css("white-space","pre"),e.text(t[0].value+"\n");var d=e.html().replace(/\n/g,"<br>");e.html(d),0<t[0].offsetWidth&&0<t[0].offsetHeight?e.css("width",t.width()+"px"):e.css("width",window.innerWidth/2+"px"),t.data("original-height")<=e.innerHeight()?t.css("height",e.innerHeight()+"px"):t[0].value.length<t.data("previous-length")&&t.css("height",t.data("original-height")+"px"),t.data("previous-length",t[0].value.length)}else console.error("No textarea element found")},v(document).ready((function(){var t="input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea";v(document).on("change",t,(function(){0===this.value.length&&null===v(this).attr("placeholder")||v(this).siblings("label").addClass("active"),M.validate_field(v(this))})),v(document).ready((function(){M.updateTextFields()})),v(document).on("reset",(function(e){var n=v(e.target);n.is("form")&&(n.find(t).removeClass("valid").removeClass("invalid"),n.find(t).each((function(t){this.value.length&&v(this).siblings("label").removeClass("active")})),setTimeout((function(){n.find("select").each((function(){this.M_FormSelect&&v(this).trigger("change")}))}),0))})),document.addEventListener("focus",(function(e){v(e.target).is(t)&&v(e.target).siblings("label, .prefix").addClass("active")}),!0),document.addEventListener("blur",(function(e){var n=v(e.target);if(n.is(t)){var i=".prefix";0===n[0].value.length&&!0!==n[0].validity.badInput&&null===n.attr("placeholder")&&(i+=", label"),n.siblings(i).removeClass("active"),M.validate_field(n)}}),!0),v(document).on("keyup","input[type=radio], input[type=checkbox]",(function(t){if(t.which===M.keys.TAB)return v(this).addClass("tabbed"),void v(this).one("blur",(function(t){v(this).removeClass("tabbed")}))}));var e=".materialize-textarea";v(e).each((function(){var t=v(this);t.data("original-height",t.height()),t.data("previous-length",this.value.length),M.textareaAutoResize(t)})),v(document).on("keyup",e,(function(){M.textareaAutoResize(v(this))})),v(document).on("keydown",e,(function(){M.textareaAutoResize(v(this))})),v(document).on("change",'.file-field input[type="file"]',(function(){for(var t=v(this).closest(".file-field").find("input.file-path"),e=v(this)[0].files,n=[],i=0;i<e.length;i++)n.push(e[i].name);t[0].value=n.join(", "),t.trigger("change")}))})),function(t,e){"use strict";var n={indicators:!0,height:400,duration:500,interval:6e3},i=function(i){function o(n,i){u(this,o);var a=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,n,i));return(a.el.M_Slider=a).options=t.extend({},o.defaults,i),a.$slider=a.$el.find(".slides"),a.$slides=a.$slider.children("li"),a.activeIndex=a.$slides.filter((function(e){return t(e).hasClass("active")})).first().index(),-1!=a.activeIndex&&(a.$active=a.$slides.eq(a.activeIndex)),a._setSliderHeight(),a.$slides.find(".caption").each((function(t){a._animateCaptionIn(t,0)})),a.$slides.find("img").each((function(e){var n="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";t(e).attr("src")!==n&&(t(e).css("background-image",'url("'+t(e).attr("src")+'")'),t(e).attr("src",n))})),a._setupIndicators(),a.$active?a.$active.css("display","block"):(a.$slides.first().addClass("active"),e({targets:a.$slides.first()[0],opacity:1,duration:a.options.duration,easing:"easeOutQuad"}),a.activeIndex=0,a.$active=a.$slides.eq(a.activeIndex),a.options.indicators&&a.$indicators.eq(a.activeIndex).addClass("active")),a.$active.find("img").each((function(t){e({targets:a.$active.find(".caption")[0],opacity:1,translateX:0,translateY:0,duration:a.options.duration,easing:"easeOutQuad"})})),a._setupEventHandlers(),a.start(),a}return c(o,h),l(o,[{key:"destroy",value:function(){this.pause(),this._removeIndicators(),this._removeEventHandlers(),this.el.M_Slider=void 0}},{key:"_setupEventHandlers",value:function(){var t=this;this._handleIntervalBound=this._handleInterval.bind(this),this._handleIndicatorClickBound=this._handleIndicatorClick.bind(this),this.options.indicators&&this.$indicators.each((function(e){e.addEventListener("click",t._handleIndicatorClickBound)}))}},{key:"_removeEventHandlers",value:function(){var t=this;this.options.indicators&&this.$indicators.each((function(e){e.removeEventListener("click",t._handleIndicatorClickBound)}))}},{key:"_handleIndicatorClick",value:function(e){var n=t(e.target).index();this.set(n)}},{key:"_handleInterval",value:function(){var t=this.$slider.find(".active").index();this.$slides.length===t+1?t=0:t+=1,this.set(t)}},{key:"_animateCaptionIn",value:function(n,i){var o={targets:n,opacity:0,duration:i,easing:"easeOutQuad"};t(n).hasClass("center-align")?o.translateY=-100:t(n).hasClass("right-align")?o.translateX=100:t(n).hasClass("left-align")&&(o.translateX=-100),e(o)}},{key:"_setSliderHeight",value:function(){this.$el.hasClass("fullscreen")||(this.options.indicators?this.$el.css("height",this.options.height+40+"px"):this.$el.css("height",this.options.height+"px"),this.$slider.css("height",this.options.height+"px"))}},{key:"_setupIndicators",value:function(){var e=this;this.options.indicators&&(this.$indicators=t('<ul class="indicators"></ul>'),this.$slides.each((function(n,i){var o=t('<li class="indicator-item"></li>');e.$indicators.append(o[0])})),this.$el.append(this.$indicators[0]),this.$indicators=this.$indicators.children("li.indicator-item"))}},{key:"_removeIndicators",value:function(){this.$el.find("ul.indicators").remove()}},{key:"set",value:function(t){var n=this;if(t>=this.$slides.length?t=0:t<0&&(t=this.$slides.length-1),this.activeIndex!=t){this.$active=this.$slides.eq(this.activeIndex);var i=this.$active.find(".caption");this.$active.removeClass("active"),e({targets:this.$active[0],opacity:0,duration:this.options.duration,easing:"easeOutQuad",complete:function(){n.$slides.not(".active").each((function(t){e({targets:t,opacity:0,translateX:0,translateY:0,duration:0,easing:"easeOutQuad"})}))}}),this._animateCaptionIn(i[0],this.options.duration),this.options.indicators&&(this.$indicators.eq(this.activeIndex).removeClass("active"),this.$indicators.eq(t).addClass("active")),e({targets:this.$slides.eq(t)[0],opacity:1,duration:this.options.duration,easing:"easeOutQuad"}),e({targets:this.$slides.eq(t).find(".caption")[0],opacity:1,translateX:0,translateY:0,duration:this.options.duration,delay:this.options.duration,easing:"easeOutQuad"}),this.$slides.eq(t).addClass("active"),this.activeIndex=t,this.start()}}},{key:"pause",value:function(){clearInterval(this.interval)}},{key:"start",value:function(){clearInterval(this.interval),this.interval=setInterval(this._handleIntervalBound,this.options.duration+this.options.interval)}},{key:"next",value:function(){var t=this.activeIndex+1;t>=this.$slides.length?t=0:t<0&&(t=this.$slides.length-1),this.set(t)}},{key:"prev",value:function(){var t=this.activeIndex-1;t>=this.$slides.length?t=0:t<0&&(t=this.$slides.length-1),this.set(t)}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Slider}},{key:"defaults",get:function(){return n}}]),o}();M.Slider=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"slider","M_Slider")}(cash,M.anime),g=cash,b=M.anime,g(document).on("click",".card",(function(t){if(g(this).children(".card-reveal").length){var e=g(t.target).closest(".card");void 0===e.data("initialOverflow")&&e.data("initialOverflow",void 0===e.css("overflow")?"":e.css("overflow"));var n=g(this).find(".card-reveal");g(t.target).is(g(".card-reveal .card-title"))||g(t.target).is(g(".card-reveal .card-title i"))?b({targets:n[0],translateY:0,duration:225,easing:"easeInOutQuad",complete:function(t){var n=t.animatables[0].target;g(n).css({display:"none"}),e.css("overflow",e.data("initialOverflow"))}}):(g(t.target).is(g(".card .activator"))||g(t.target).is(g(".card .activator i")))&&(e.css("overflow","hidden"),n.css({display:"block"}),b({targets:n[0],translateY:"-100%",duration:300,easing:"easeInOutQuad"}))}})),function(t){"use strict";var e={data:[],placeholder:"",secondaryPlaceholder:"",autocompleteOptions:{},limit:1/0,onChipAdd:null,onChipSelect:null,onChipDelete:null},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return(o.el.M_Chips=o).options=t.extend({},i.defaults,n),o.$el.addClass("chips input-field"),o.chipsData=[],o.$chips=t(),o._setupInput(),o.hasAutocomplete=0<Object.keys(o.options.autocompleteOptions).length,o.$input.attr("id")||o.$input.attr("id",M.guid()),o.options.data.length&&(o.chipsData=o.options.data,o._renderChips(o.chipsData)),o.hasAutocomplete&&o._setupAutocomplete(),o._setPlaceholder(),o._setupLabel(),o._setupEventHandlers(),o}return c(i,h),l(i,[{key:"getData",value:function(){return this.chipsData}},{key:"destroy",value:function(){this._removeEventHandlers(),this.$chips.remove(),this.el.M_Chips=void 0}},{key:"_setupEventHandlers",value:function(){this._handleChipClickBound=this._handleChipClick.bind(this),this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputFocusBound=this._handleInputFocus.bind(this),this._handleInputBlurBound=this._handleInputBlur.bind(this),this.el.addEventListener("click",this._handleChipClickBound),document.addEventListener("keydown",i._handleChipsKeydown),document.addEventListener("keyup",i._handleChipsKeyup),this.el.addEventListener("blur",i._handleChipsBlur,!0),this.$input[0].addEventListener("focus",this._handleInputFocusBound),this.$input[0].addEventListener("blur",this._handleInputBlurBound),this.$input[0].addEventListener("keydown",this._handleInputKeydownBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleChipClickBound),document.removeEventListener("keydown",i._handleChipsKeydown),document.removeEventListener("keyup",i._handleChipsKeyup),this.el.removeEventListener("blur",i._handleChipsBlur,!0),this.$input[0].removeEventListener("focus",this._handleInputFocusBound),this.$input[0].removeEventListener("blur",this._handleInputBlurBound),this.$input[0].removeEventListener("keydown",this._handleInputKeydownBound)}},{key:"_handleChipClick",value:function(e){var n=t(e.target).closest(".chip"),i=t(e.target).is(".close");if(n.length){var o=n.index();i?(this.deleteChip(o),this.$input[0].focus()):this.selectChip(o)}else this.$input[0].focus()}},{key:"_handleInputFocus",value:function(){this.$el.addClass("focus")}},{key:"_handleInputBlur",value:function(){this.$el.removeClass("focus")}},{key:"_handleInputKeydown",value:function(t){if(i._keydown=!0,13===t.keyCode){if(this.hasAutocomplete&&this.autocomplete&&this.autocomplete.isOpen)return;t.preventDefault(),this.addChip({tag:this.$input[0].value}),this.$input[0].value=""}else 8!==t.keyCode&&37!==t.keyCode||""!==this.$input[0].value||!this.chipsData.length||(t.preventDefault(),this.selectChip(this.chipsData.length-1))}},{key:"_renderChip",value:function(e){if(e.tag){var n=document.createElement("div"),i=document.createElement("i");if(n.classList.add("chip"),n.textContent=e.tag,n.setAttribute("tabindex",0),t(i).addClass("material-icons close"),i.textContent="close",e.image){var o=document.createElement("img");o.setAttribute("src",e.image),n.insertBefore(o,n.firstChild)}return n.appendChild(i),n}}},{key:"_renderChips",value:function(){this.$chips.remove();for(var t=0;t<this.chipsData.length;t++){var e=this._renderChip(this.chipsData[t]);this.$el.append(e),this.$chips.add(e)}this.$el.append(this.$input[0])}},{key:"_setupAutocomplete",value:function(){var t=this;this.options.autocompleteOptions.onAutocomplete=function(e){t.addChip({tag:e}),t.$input[0].value="",t.$input[0].focus()},this.autocomplete=M.Autocomplete.init(this.$input[0],this.options.autocompleteOptions)}},{key:"_setupInput",value:function(){this.$input=this.$el.find("input"),this.$input.length||(this.$input=t("<input></input>"),this.$el.append(this.$input)),this.$input.addClass("input")}},{key:"_setupLabel",value:function(){this.$label=this.$el.find("label"),this.$label.length&&this.$label.setAttribute("for",this.$input.attr("id"))}},{key:"_setPlaceholder",value:function(){void 0!==this.chipsData&&!this.chipsData.length&&this.options.placeholder?t(this.$input).prop("placeholder",this.options.placeholder):(void 0===this.chipsData||this.chipsData.length)&&this.options.secondaryPlaceholder&&t(this.$input).prop("placeholder",this.options.secondaryPlaceholder)}},{key:"_isValid",value:function(t){if(t.hasOwnProperty("tag")&&""!==t.tag){for(var e=!1,n=0;n<this.chipsData.length;n++)if(this.chipsData[n].tag===t.tag){e=!0;break}return!e}return!1}},{key:"addChip",value:function(e){if(this._isValid(e)&&!(this.chipsData.length>=this.options.limit)){var n=this._renderChip(e);this.$chips.add(n),this.chipsData.push(e),t(this.$input).before(n),this._setPlaceholder(),"function"==typeof this.options.onChipAdd&&this.options.onChipAdd.call(this,this.$el,n)}}},{key:"deleteChip",value:function(e){var n=this.$chips.eq(e);this.$chips.eq(e).remove(),this.$chips=this.$chips.filter((function(e){return 0<=t(e).index()})),this.chipsData.splice(e,1),this._setPlaceholder(),"function"==typeof this.options.onChipDelete&&this.options.onChipDelete.call(this,this.$el,n[0])}},{key:"selectChip",value:function(t){var e=this.$chips.eq(t);(this._selectedChip=e)[0].focus(),"function"==typeof this.options.onChipSelect&&this.options.onChipSelect.call(this,this.$el,e[0])}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Chips}},{key:"_handleChipsKeydown",value:function(e){i._keydown=!0;var n=t(e.target).closest(".chips"),o=e.target&&n.length;if(!t(e.target).is("input, textarea")&&o){var a=n[0].M_Chips;if(8===e.keyCode||46===e.keyCode){e.preventDefault();var r=a.chipsData.length;if(a._selectedChip){var s=a._selectedChip.index();a.deleteChip(s),a._selectedChip=null,r=Math.max(s-1,0)}a.chipsData.length&&a.selectChip(r)}else if(37===e.keyCode){if(a._selectedChip){var l=a._selectedChip.index()-1;if(l<0)return;a.selectChip(l)}}else if(39===e.keyCode&&a._selectedChip){var d=a._selectedChip.index()+1;d>=a.chipsData.length?a.$input[0].focus():a.selectChip(d)}}}},{key:"_handleChipsKeyup",value:function(t){i._keydown=!1}},{key:"_handleChipsBlur",value:function(e){i._keydown||(t(e.target).closest(".chips")[0].M_Chips._selectedChip=null)}},{key:"defaults",get:function(){return e}}]),i}();n._keydown=!1,M.Chips=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"chips","M_Chips"),t(document).ready((function(){t(document.body).on("click",".chip .close",(function(){var e=t(this).closest(".chips");e.length&&e[0].M_Chips||t(this).closest(".chip").remove()}))}))}(cash),function(t){"use strict";var e={top:0,bottom:1/0,offset:0,onPositionChange:null},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return(o.el.M_Pushpin=o).options=t.extend({},i.defaults,n),o.originalOffset=o.el.offsetTop,i._pushpins.push(o),o._setupEventHandlers(),o._updatePosition(),o}return c(i,h),l(i,[{key:"destroy",value:function(){this.el.style.top=null,this._removePinClasses(),this._removeEventHandlers();var t=i._pushpins.indexOf(this);i._pushpins.splice(t,1)}},{key:"_setupEventHandlers",value:function(){document.addEventListener("scroll",i._updateElements)}},{key:"_removeEventHandlers",value:function(){document.removeEventListener("scroll",i._updateElements)}},{key:"_updatePosition",value:function(){var t=M.getDocumentScrollTop()+this.options.offset;this.options.top<=t&&this.options.bottom>=t&&!this.el.classList.contains("pinned")&&(this._removePinClasses(),this.el.style.top=this.options.offset+"px",this.el.classList.add("pinned"),"function"==typeof this.options.onPositionChange&&this.options.onPositionChange.call(this,"pinned")),t<this.options.top&&!this.el.classList.contains("pin-top")&&(this._removePinClasses(),this.el.style.top=0,this.el.classList.add("pin-top"),"function"==typeof this.options.onPositionChange&&this.options.onPositionChange.call(this,"pin-top")),t>this.options.bottom&&!this.el.classList.contains("pin-bottom")&&(this._removePinClasses(),this.el.classList.add("pin-bottom"),this.el.style.top=this.options.bottom-this.originalOffset+"px","function"==typeof this.options.onPositionChange&&this.options.onPositionChange.call(this,"pin-bottom"))}},{key:"_removePinClasses",value:function(){this.el.classList.remove("pin-top"),this.el.classList.remove("pinned"),this.el.classList.remove("pin-bottom")}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Pushpin}},{key:"_updateElements",value:function(){for(var t in i._pushpins)i._pushpins[t]._updatePosition()}},{key:"defaults",get:function(){return e}}]),i}();n._pushpins=[],M.Pushpin=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"pushpin","M_Pushpin")}(cash),function(t,e){"use strict";var n={direction:"top",hoverEnabled:!0,toolbarEnabled:!1};t.fn.reverse=[].reverse;var i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return(i.el.M_FloatingActionButton=i).options=t.extend({},o.defaults,n),i.isOpen=!1,i.$anchor=i.$el.children("a").first(),i.$menu=i.$el.children("ul").first(),i.$floatingBtns=i.$el.find("ul .btn-floating"),i.$floatingBtnsReverse=i.$el.find("ul .btn-floating").reverse(),i.offsetY=0,i.offsetX=0,i.$el.addClass("direction-"+i.options.direction),"top"===i.options.direction?i.offsetY=40:"right"===i.options.direction?i.offsetX=-40:"bottom"===i.options.direction?i.offsetY=-40:i.offsetX=40,i._setupEventHandlers(),i}return c(o,h),l(o,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_FloatingActionButton=void 0}},{key:"_setupEventHandlers",value:function(){this._handleFABClickBound=this._handleFABClick.bind(this),this._handleOpenBound=this.open.bind(this),this._handleCloseBound=this.close.bind(this),this.options.hoverEnabled&&!this.options.toolbarEnabled?(this.el.addEventListener("mouseenter",this._handleOpenBound),this.el.addEventListener("mouseleave",this._handleCloseBound)):this.el.addEventListener("click",this._handleFABClickBound)}},{key:"_removeEventHandlers",value:function(){this.options.hoverEnabled&&!this.options.toolbarEnabled?(this.el.removeEventListener("mouseenter",this._handleOpenBound),this.el.removeEventListener("mouseleave",this._handleCloseBound)):this.el.removeEventListener("click",this._handleFABClickBound)}},{key:"_handleFABClick",value:function(){this.isOpen?this.close():this.open()}},{key:"_handleDocumentClick",value:function(e){t(e.target).closest(this.$menu).length||this.close()}},{key:"open",value:function(){this.isOpen||(this.options.toolbarEnabled?this._animateInToolbar():this._animateInFAB(),this.isOpen=!0)}},{key:"close",value:function(){this.isOpen&&(this.options.toolbarEnabled?(window.removeEventListener("scroll",this._handleCloseBound,!0),document.body.removeEventListener("click",this._handleDocumentClickBound,!0),this._animateOutToolbar()):this._animateOutFAB(),this.isOpen=!1)}},{key:"_animateInFAB",value:function(){var t=this;this.$el.addClass("active");var n=0;this.$floatingBtnsReverse.each((function(i){e({targets:i,opacity:1,scale:[.4,1],translateY:[t.offsetY,0],translateX:[t.offsetX,0],duration:275,delay:n,easing:"easeInOutQuad"}),n+=40}))}},{key:"_animateOutFAB",value:function(){var t=this;this.$floatingBtnsReverse.each((function(n){e.remove(n),e({targets:n,opacity:0,scale:.4,translateY:t.offsetY,translateX:t.offsetX,duration:175,easing:"easeOutQuad",complete:function(){t.$el.removeClass("active")}})}))}},{key:"_animateInToolbar",value:function(){var e,n=this,i=window.innerWidth,o=window.innerHeight,a=this.el.getBoundingClientRect(),r=t('<div class="fab-backdrop"></div>'),s=this.$anchor.css("background-color");this.$anchor.append(r),this.offsetX=a.left-i/2+a.width/2,this.offsetY=o-a.bottom,e=i/r[0].clientWidth,this.btnBottom=a.bottom,this.btnLeft=a.left,this.btnWidth=a.width,this.$el.addClass("active"),this.$el.css({"text-align":"center",width:"100%",bottom:0,left:0,transform:"translateX("+this.offsetX+"px)",transition:"none"}),this.$anchor.css({transform:"translateY("+-this.offsetY+"px)",transition:"none"}),r.css({"background-color":s}),setTimeout((function(){n.$el.css({transform:"",transition:"transform .2s cubic-bezier(0.550, 0.085, 0.680, 0.530), background-color 0s linear .2s"}),n.$anchor.css({overflow:"visible",transform:"",transition:"transform .2s"}),setTimeout((function(){n.$el.css({overflow:"hidden","background-color":s}),r.css({transform:"scale("+e+")",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"}),n.$menu.children("li").children("a").css({opacity:1}),n._handleDocumentClickBound=n._handleDocumentClick.bind(n),window.addEventListener("scroll",n._handleCloseBound,!0),document.body.addEventListener("click",n._handleDocumentClickBound,!0)}),100)}),0)}},{key:"_animateOutToolbar",value:function(){var t=this,e=window.innerWidth,n=window.innerHeight,i=this.$el.find(".fab-backdrop"),o=this.$anchor.css("background-color");this.offsetX=this.btnLeft-e/2+this.btnWidth/2,this.offsetY=n-this.btnBottom,this.$el.removeClass("active"),this.$el.css({"background-color":"transparent",transition:"none"}),this.$anchor.css({transition:"none"}),i.css({transform:"scale(0)","background-color":o}),this.$menu.children("li").children("a").css({opacity:""}),setTimeout((function(){i.remove(),t.$el.css({"text-align":"",width:"",bottom:"",left:"",overflow:"","background-color":"",transform:"translate3d("+-t.offsetX+"px,0,0)"}),t.$anchor.css({overflow:"",transform:"translate3d(0,"+t.offsetY+"px,0)"}),setTimeout((function(){t.$el.css({transform:"translate3d(0,0,0)",transition:"transform .2s"}),t.$anchor.css({transform:"translate3d(0,0,0)",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"})}),20)}),200)}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_FloatingActionButton}},{key:"defaults",get:function(){return n}}]),o}();M.FloatingActionButton=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"floatingActionButton","M_FloatingActionButton")}(cash,M.anime),function(t){"use strict";var e={autoClose:!1,format:"mmm dd, yyyy",parse:null,defaultDate:null,setDefaultDate:!1,disableWeekends:!1,disableDayFn:null,firstDay:0,minDate:null,maxDate:null,yearRange:10,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,container:null,showClearBtn:!1,i18n:{cancel:"Cancel",clear:"Clear",done:"Ok",previousMonth:"‹",nextMonth:"›",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysAbbrev:["S","M","T","W","T","F","S"]},events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));(o.el.M_Datepicker=o).options=t.extend({},i.defaults,n),n&&n.hasOwnProperty("i18n")&&"object"==typeof n.i18n&&(o.options.i18n=t.extend({},i.defaults.i18n,n.i18n)),o.options.minDate&&o.options.minDate.setHours(0,0,0,0),o.options.maxDate&&o.options.maxDate.setHours(0,0,0,0),o.id=M.guid(),o._setupVariables(),o._insertHTMLIntoDOM(),o._setupModal(),o._setupEventHandlers(),o.options.defaultDate||(o.options.defaultDate=new Date(Date.parse(o.el.value)));var a=o.options.defaultDate;return i._isDate(a)?o.options.setDefaultDate?(o.setDate(a,!0),o.setInputValue()):o.gotoDate(a):o.gotoDate(new Date),o.isOpen=!1,o}return c(i,h),l(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.modal.destroy(),t(this.modalEl).remove(),this.destroySelects(),this.el.M_Datepicker=void 0}},{key:"destroySelects",value:function(){var t=this.calendarEl.querySelector(".orig-select-year");t&&M.FormSelect.getInstance(t).destroy();var e=this.calendarEl.querySelector(".orig-select-month");e&&M.FormSelect.getInstance(e).destroy()}},{key:"_insertHTMLIntoDOM",value:function(){this.options.showClearBtn&&(t(this.clearBtn).css({visibility:""}),this.clearBtn.innerHTML=this.options.i18n.clear),this.doneBtn.innerHTML=this.options.i18n.done,this.cancelBtn.innerHTML=this.options.i18n.cancel,this.options.container?this.$modalEl.appendTo(this.options.container):this.$modalEl.insertBefore(this.el)}},{key:"_setupModal",value:function(){var t=this;this.modalEl.id="modal-"+this.id,this.modal=M.Modal.init(this.modalEl,{onCloseEnd:function(){t.isOpen=!1}})}},{key:"toString",value:function(t){var e=this;return t=t||this.options.format,i._isDate(this.date)?t.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g).map((function(t){return e.formats[t]?e.formats[t]():t})).join(""):""}},{key:"setDate",value:function(t,e){if(!t)return this.date=null,this._renderDateDisplay(),this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),i._isDate(t)){var n=this.options.minDate,o=this.options.maxDate;i._isDate(n)&&t<n?t=n:i._isDate(o)&&o<t&&(t=o),this.date=new Date(t.getTime()),this._renderDateDisplay(),i._setToStartOfDay(this.date),this.gotoDate(this.date),e||"function"!=typeof this.options.onSelect||this.options.onSelect.call(this,this.date)}}},{key:"setInputValue",value:function(){this.el.value=this.toString(),this.$el.trigger("change",{firedBy:this})}},{key:"_renderDateDisplay",value:function(){var t=i._isDate(this.date)?this.date:new Date,e=this.options.i18n,n=e.weekdaysShort[t.getDay()],o=e.monthsShort[t.getMonth()],a=t.getDate();this.yearTextEl.innerHTML=t.getFullYear(),this.dateTextEl.innerHTML=n+", "+o+" "+a}},{key:"gotoDate",value:function(t){var e=!0;if(i._isDate(t)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),o=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),a=t.getTime();o.setMonth(o.getMonth()+1),o.setDate(o.getDate()-1),e=a<n.getTime()||o.getTime()<a}e&&(this.calendars=[{month:t.getMonth(),year:t.getFullYear()}]),this.adjustCalendars()}}},{key:"adjustCalendars",value:function(){this.calendars[0]=this.adjustCalendar(this.calendars[0]),this.draw()}},{key:"adjustCalendar",value:function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),11<t.month&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t}},{key:"nextMonth",value:function(){this.calendars[0].month++,this.adjustCalendars()}},{key:"prevMonth",value:function(){this.calendars[0].month--,this.adjustCalendars()}},{key:"render",value:function(t,e,n){var o=this.options,a=new Date,r=i._getDaysInMonth(t,e),s=new Date(t,e,1).getDay(),l=[],d=[];i._setToStartOfDay(a),0<o.firstDay&&(s-=o.firstDay)<0&&(s+=7);for(var c=0===e?11:e-1,u=11===e?0:e+1,p=0===e?t-1:t,h=11===e?t+1:t,f=i._getDaysInMonth(p,c),m=r+s,g=m;7<g;)g-=7;m+=7-g;for(var b=!1,v=0,y=0;v<m;v++){var x=new Date(t,e,v-s+1),w=!!i._isDate(this.date)&&i._compareDates(x,this.date),k=i._compareDates(x,a),_=-1!==o.events.indexOf(x.toDateString()),C=v<s||r+s<=v,E=v-s+1,M=e,T=t,L=o.startRange&&i._compareDates(o.startRange,x),O=o.endRange&&i._compareDates(o.endRange,x),D=o.startRange&&o.endRange&&o.startRange<x&&x<o.endRange;C&&(v<s?(E=f+E,M=c,T=p):(E-=r,M=u,T=h));var B={day:E,month:M,year:T,hasEvent:_,isSelected:w,isToday:k,isDisabled:o.minDate&&x<o.minDate||o.maxDate&&x>o.maxDate||o.disableWeekends&&i._isWeekend(x)||o.disableDayFn&&o.disableDayFn(x),isEmpty:C,isStartRange:L,isEndRange:O,isInRange:D,showDaysInNextAndPreviousMonths:o.showDaysInNextAndPreviousMonths};d.push(this.renderDay(B)),7==++y&&(l.push(this.renderRow(d,o.isRTL,b)),y=0,b=!(d=[]))}return this.renderTable(o,l,n)}},{key:"renderDay",value:function(t){var e=[],n="false";if(t.isEmpty){if(!t.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';e.push("is-outside-current-month"),e.push("is-selection-disabled")}return t.isDisabled&&e.push("is-disabled"),t.isToday&&e.push("is-today"),t.isSelected&&(e.push("is-selected"),n="true"),t.hasEvent&&e.push("has-event"),t.isInRange&&e.push("is-inrange"),t.isStartRange&&e.push("is-startrange"),t.isEndRange&&e.push("is-endrange"),'<td data-day="'+t.day+'" class="'+e.join(" ")+'" aria-selected="'+n+'"><button class="datepicker-day-button" type="button" data-year="'+t.year+'" data-month="'+t.month+'" data-day="'+t.day+'">'+t.day+"</button></td>"}},{key:"renderRow",value:function(t,e,n){return'<tr class="datepicker-row'+(n?" is-selected":"")+'">'+(e?t.reverse():t).join("")+"</tr>"}},{key:"renderTable",value:function(t,e,n){return'<div class="datepicker-table-wrapper"><table cellpadding="0" cellspacing="0" class="datepicker-table" role="grid" aria-labelledby="'+n+'">'+this.renderHead(t)+this.renderBody(e)+"</table></div>"}},{key:"renderHead",value:function(t){var e=void 0,n=[];for(e=0;e<7;e++)n.push('<th scope="col"><abbr title="'+this.renderDayName(t,e)+'">'+this.renderDayName(t,e,!0)+"</abbr></th>");return"<thead><tr>"+(t.isRTL?n.reverse():n).join("")+"</tr></thead>"}},{key:"renderBody",value:function(t){return"<tbody>"+t.join("")+"</tbody>"}},{key:"renderTitle",value:function(e,n,i,o,a,r){var s,l,d=void 0,c=void 0,u=void 0,p=this.options,h=i===p.minYear,f=i===p.maxYear,m='<div id="'+r+'" class="datepicker-controls" role="heading" aria-live="assertive">',g=!0,b=!0;for(u=[],d=0;d<12;d++)u.push('<option value="'+(i===a?d-n:12+d-n)+'"'+(d===o?' selected="selected"':"")+(h&&d<p.minMonth||f&&d>p.maxMonth?'disabled="disabled"':"")+">"+p.i18n.months[d]+"</option>");for(s='<select class="datepicker-select orig-select-month" tabindex="-1">'+u.join("")+"</select>",t.isArray(p.yearRange)?(d=p.yearRange[0],c=p.yearRange[1]+1):(d=i-p.yearRange,c=1+i+p.yearRange),u=[];d<c&&d<=p.maxYear;d++)d>=p.minYear&&u.push('<option value="'+d+'" '+(d===i?'selected="selected"':"")+">"+d+"</option>");return l='<select class="datepicker-select orig-select-year" tabindex="-1">'+u.join("")+"</select>",m+='<button class="month-prev'+(g?"":" is-disabled")+'" type="button"><svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/><path d="M0-.5h24v24H0z" fill="none"/></svg></button>',m+='<div class="selects-container">',p.showMonthAfterYear?m+=l+s:m+=s+l,m+="</div>",h&&(0===o||p.minMonth>=o)&&(g=!1),f&&(11===o||p.maxMonth<=o)&&(b=!1),(m+='<button class="month-next'+(b?"":" is-disabled")+'" type="button"><svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/><path d="M0-.25h24v24H0z" fill="none"/></svg></button>')+"</div>"}},{key:"draw",value:function(t){if(this.isOpen||t){var e,n=this.options,i=n.minYear,o=n.maxYear,a=n.minMonth,r=n.maxMonth,s="";this._y<=i&&(this._y=i,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=o&&(this._y=o,!isNaN(r)&&this._m>r&&(this._m=r)),e="datepicker-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var l=0;l<1;l++)this._renderDateDisplay(),s+=this.renderTitle(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year,e)+this.render(this.calendars[l].year,this.calendars[l].month,e);this.destroySelects(),this.calendarEl.innerHTML=s;var d=this.calendarEl.querySelector(".orig-select-year"),c=this.calendarEl.querySelector(".orig-select-month");M.FormSelect.init(d,{classes:"select-year",dropdownOptions:{container:document.body,constrainWidth:!1}}),M.FormSelect.init(c,{classes:"select-month",dropdownOptions:{container:document.body,constrainWidth:!1}}),d.addEventListener("change",this._handleYearChange.bind(this)),c.addEventListener("change",this._handleMonthChange.bind(this)),"function"==typeof this.options.onDraw&&this.options.onDraw(this)}}},{key:"_setupEventHandlers",value:function(){this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleInputChangeBound=this._handleInputChange.bind(this),this._handleCalendarClickBound=this._handleCalendarClick.bind(this),this._finishSelectionBound=this._finishSelection.bind(this),this._handleMonthChange=this._handleMonthChange.bind(this),this._closeBound=this.close.bind(this),this.el.addEventListener("click",this._handleInputClickBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.el.addEventListener("change",this._handleInputChangeBound),this.calendarEl.addEventListener("click",this._handleCalendarClickBound),this.doneBtn.addEventListener("click",this._finishSelectionBound),this.cancelBtn.addEventListener("click",this._closeBound),this.options.showClearBtn&&(this._handleClearClickBound=this._handleClearClick.bind(this),this.clearBtn.addEventListener("click",this._handleClearClickBound))}},{key:"_setupVariables",value:function(){var e=this;this.$modalEl=t(i._template),this.modalEl=this.$modalEl[0],this.calendarEl=this.modalEl.querySelector(".datepicker-calendar"),this.yearTextEl=this.modalEl.querySelector(".year-text"),this.dateTextEl=this.modalEl.querySelector(".date-text"),this.options.showClearBtn&&(this.clearBtn=this.modalEl.querySelector(".datepicker-clear")),this.doneBtn=this.modalEl.querySelector(".datepicker-done"),this.cancelBtn=this.modalEl.querySelector(".datepicker-cancel"),this.formats={d:function(){return e.date.getDate()},dd:function(){var t=e.date.getDate();return(t<10?"0":"")+t},ddd:function(){return e.options.i18n.weekdaysShort[e.date.getDay()]},dddd:function(){return e.options.i18n.weekdays[e.date.getDay()]},m:function(){return e.date.getMonth()+1},mm:function(){var t=e.date.getMonth()+1;return(t<10?"0":"")+t},mmm:function(){return e.options.i18n.monthsShort[e.date.getMonth()]},mmmm:function(){return e.options.i18n.months[e.date.getMonth()]},yy:function(){return(""+e.date.getFullYear()).slice(2)},yyyy:function(){return e.date.getFullYear()}}}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleInputClickBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound),this.el.removeEventListener("change",this._handleInputChangeBound),this.calendarEl.removeEventListener("click",this._handleCalendarClickBound)}},{key:"_handleInputClick",value:function(){this.open()}},{key:"_handleInputKeydown",value:function(t){t.which===M.keys.ENTER&&(t.preventDefault(),this.open())}},{key:"_handleCalendarClick",value:function(e){if(this.isOpen){var n=t(e.target);n.hasClass("is-disabled")||(!n.hasClass("datepicker-day-button")||n.hasClass("is-empty")||n.parent().hasClass("is-disabled")?n.closest(".month-prev").length?this.prevMonth():n.closest(".month-next").length&&this.nextMonth():(this.setDate(new Date(e.target.getAttribute("data-year"),e.target.getAttribute("data-month"),e.target.getAttribute("data-day"))),this.options.autoClose&&this._finishSelection()))}}},{key:"_handleClearClick",value:function(){this.date=null,this.setInputValue(),this.close()}},{key:"_handleMonthChange",value:function(t){this.gotoMonth(t.target.value)}},{key:"_handleYearChange",value:function(t){this.gotoYear(t.target.value)}},{key:"gotoMonth",value:function(t){isNaN(t)||(this.calendars[0].month=parseInt(t,10),this.adjustCalendars())}},{key:"gotoYear",value:function(t){isNaN(t)||(this.calendars[0].year=parseInt(t,10),this.adjustCalendars())}},{key:"_handleInputChange",value:function(t){var e=void 0;t.firedBy!==this&&(e=this.options.parse?this.options.parse(this.el.value,this.options.format):new Date(Date.parse(this.el.value)),i._isDate(e)&&this.setDate(e))}},{key:"renderDayName",value:function(t,e,n){for(e+=t.firstDay;7<=e;)e-=7;return n?t.i18n.weekdaysAbbrev[e]:t.i18n.weekdays[e]}},{key:"_finishSelection",value:function(){this.setInputValue(),this.close()}},{key:"open",value:function(){if(!this.isOpen)return this.isOpen=!0,"function"==typeof this.options.onOpen&&this.options.onOpen.call(this),this.draw(),this.modal.open(),this}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,"function"==typeof this.options.onClose&&this.options.onClose.call(this),this.modal.close(),this}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"_isDate",value:function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())}},{key:"_isWeekend",value:function(t){var e=t.getDay();return 0===e||6===e}},{key:"_setToStartOfDay",value:function(t){i._isDate(t)&&t.setHours(0,0,0,0)}},{key:"_getDaysInMonth",value:function(t,e){return[31,i._isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]}},{key:"_isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"_compareDates",value:function(t,e){return t.getTime()===e.getTime()}},{key:"_setToStartOfDay",value:function(t){i._isDate(t)&&t.setHours(0,0,0,0)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Datepicker}},{key:"defaults",get:function(){return e}}]),i}();n._template=['<div class= "modal datepicker-modal">','<div class="modal-content datepicker-container">','<div class="datepicker-date-display">','<span class="year-text"></span>','<span class="date-text"></span>',"</div>",'<div class="datepicker-calendar-container">','<div class="datepicker-calendar"></div>','<div class="datepicker-footer">','<button class="btn-flat datepicker-clear waves-effect" style="visibility: hidden;" type="button"></button>','<div class="confirmation-btns">','<button class="btn-flat datepicker-cancel waves-effect" type="button"></button>','<button class="btn-flat datepicker-done waves-effect" type="button"></button>',"</div>","</div>","</div>","</div>","</div>"].join(""),M.Datepicker=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"datepicker","M_Datepicker")}(cash),function(t){"use strict";var e={dialRadius:135,outerRadius:105,innerRadius:70,tickRadius:20,duration:350,container:null,defaultTime:"now",fromNow:0,showClearBtn:!1,i18n:{cancel:"Cancel",clear:"Clear",done:"Ok"},autoClose:!1,twelveHour:!0,vibrate:!0,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,onSelect:null},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return(o.el.M_Timepicker=o).options=t.extend({},i.defaults,n),o.id=M.guid(),o._insertHTMLIntoDOM(),o._setupModal(),o._setupVariables(),o._setupEventHandlers(),o._clockSetup(),o._pickerSetup(),o}return c(i,h),l(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.modal.destroy(),t(this.modalEl).remove(),this.el.M_Timepicker=void 0}},{key:"_setupEventHandlers",value:function(){this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleClockClickStartBound=this._handleClockClickStart.bind(this),this._handleDocumentClickMoveBound=this._handleDocumentClickMove.bind(this),this._handleDocumentClickEndBound=this._handleDocumentClickEnd.bind(this),this.el.addEventListener("click",this._handleInputClickBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.plate.addEventListener("mousedown",this._handleClockClickStartBound),this.plate.addEventListener("touchstart",this._handleClockClickStartBound),t(this.spanHours).on("click",this.showView.bind(this,"hours")),t(this.spanMinutes).on("click",this.showView.bind(this,"minutes"))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleInputClickBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound)}},{key:"_handleInputClick",value:function(){this.open()}},{key:"_handleInputKeydown",value:function(t){t.which===M.keys.ENTER&&(t.preventDefault(),this.open())}},{key:"_handleClockClickStart",value:function(t){t.preventDefault();var e=this.plate.getBoundingClientRect(),n=e.left,o=e.top;this.x0=n+this.options.dialRadius,this.y0=o+this.options.dialRadius,this.moved=!1;var a=i._Pos(t);this.dx=a.x-this.x0,this.dy=a.y-this.y0,this.setHand(this.dx,this.dy,!1),document.addEventListener("mousemove",this._handleDocumentClickMoveBound),document.addEventListener("touchmove",this._handleDocumentClickMoveBound),document.addEventListener("mouseup",this._handleDocumentClickEndBound),document.addEventListener("touchend",this._handleDocumentClickEndBound)}},{key:"_handleDocumentClickMove",value:function(t){t.preventDefault();var e=i._Pos(t),n=e.x-this.x0,o=e.y-this.y0;this.moved=!0,this.setHand(n,o,!1,!0)}},{key:"_handleDocumentClickEnd",value:function(e){var n=this;e.preventDefault(),document.removeEventListener("mouseup",this._handleDocumentClickEndBound),document.removeEventListener("touchend",this._handleDocumentClickEndBound);var o=i._Pos(e),a=o.x-this.x0,r=o.y-this.y0;this.moved&&a===this.dx&&r===this.dy&&this.setHand(a,r),"hours"===this.currentView?this.showView("minutes",this.options.duration/2):this.options.autoClose&&(t(this.minutesView).addClass("timepicker-dial-out"),setTimeout((function(){n.done()}),this.options.duration/2)),"function"==typeof this.options.onSelect&&this.options.onSelect.call(this,this.hours,this.minutes),document.removeEventListener("mousemove",this._handleDocumentClickMoveBound),document.removeEventListener("touchmove",this._handleDocumentClickMoveBound)}},{key:"_insertHTMLIntoDOM",value:function(){this.$modalEl=t(i._template),this.modalEl=this.$modalEl[0],this.modalEl.id="modal-"+this.id;var e=document.querySelector(this.options.container);this.options.container&&e?this.$modalEl.appendTo(e):this.$modalEl.insertBefore(this.el)}},{key:"_setupModal",value:function(){var t=this;this.modal=M.Modal.init(this.modalEl,{onOpenStart:this.options.onOpenStart,onOpenEnd:this.options.onOpenEnd,onCloseStart:this.options.onCloseStart,onCloseEnd:function(){"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t),t.isOpen=!1}})}},{key:"_setupVariables",value:function(){this.currentView="hours",this.vibrate=navigator.vibrate?"vibrate":navigator.webkitVibrate?"webkitVibrate":null,this._canvas=this.modalEl.querySelector(".timepicker-canvas"),this.plate=this.modalEl.querySelector(".timepicker-plate"),this.hoursView=this.modalEl.querySelector(".timepicker-hours"),this.minutesView=this.modalEl.querySelector(".timepicker-minutes"),this.spanHours=this.modalEl.querySelector(".timepicker-span-hours"),this.spanMinutes=this.modalEl.querySelector(".timepicker-span-minutes"),this.spanAmPm=this.modalEl.querySelector(".timepicker-span-am-pm"),this.footer=this.modalEl.querySelector(".timepicker-footer"),this.amOrPm="PM"}},{key:"_pickerSetup",value:function(){var e=t('<button class="btn-flat timepicker-clear waves-effect" style="visibility: hidden;" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.clear+"</button>").appendTo(this.footer).on("click",this.clear.bind(this));this.options.showClearBtn&&e.css({visibility:""});var n=t('<div class="confirmation-btns"></div>');t('<button class="btn-flat timepicker-close waves-effect" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.cancel+"</button>").appendTo(n).on("click",this.close.bind(this)),t('<button class="btn-flat timepicker-close waves-effect" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.done+"</button>").appendTo(n).on("click",this.done.bind(this)),n.appendTo(this.footer)}},{key:"_clockSetup",value:function(){this.options.twelveHour&&(this.$amBtn=t('<div class="am-btn">AM</div>'),this.$pmBtn=t('<div class="pm-btn">PM</div>'),this.$amBtn.on("click",this._handleAmPmClick.bind(this)).appendTo(this.spanAmPm),this.$pmBtn.on("click",this._handleAmPmClick.bind(this)).appendTo(this.spanAmPm)),this._buildHoursView(),this._buildMinutesView(),this._buildSVGClock()}},{key:"_buildSVGClock",value:function(){var t=this.options.dialRadius,e=this.options.tickRadius,n=2*t,o=i._createSVGEl("svg");o.setAttribute("class","timepicker-svg"),o.setAttribute("width",n),o.setAttribute("height",n);var a=i._createSVGEl("g");a.setAttribute("transform","translate("+t+","+t+")");var r=i._createSVGEl("circle");r.setAttribute("class","timepicker-canvas-bearing"),r.setAttribute("cx",0),r.setAttribute("cy",0),r.setAttribute("r",4);var s=i._createSVGEl("line");s.setAttribute("x1",0),s.setAttribute("y1",0);var l=i._createSVGEl("circle");l.setAttribute("class","timepicker-canvas-bg"),l.setAttribute("r",e),a.appendChild(s),a.appendChild(l),a.appendChild(r),o.appendChild(a),this._canvas.appendChild(o),this.hand=s,this.bg=l,this.bearing=r,this.g=a}},{key:"_buildHoursView",value:function(){var e=t('<div class="timepicker-tick"></div>');if(this.options.twelveHour)for(var n=1;n<13;n+=1){var i=e.clone(),o=n/6*Math.PI,a=this.options.outerRadius;i.css({left:this.options.dialRadius+Math.sin(o)*a-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(o)*a-this.options.tickRadius+"px"}),i.html(0===n?"00":n),this.hoursView.appendChild(i[0])}else for(var r=0;r<24;r+=1){var s=e.clone(),l=r/6*Math.PI,d=0<r&&r<13?this.options.innerRadius:this.options.outerRadius;s.css({left:this.options.dialRadius+Math.sin(l)*d-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(l)*d-this.options.tickRadius+"px"}),s.html(0===r?"00":r),this.hoursView.appendChild(s[0])}}},{key:"_buildMinutesView",value:function(){for(var e=t('<div class="timepicker-tick"></div>'),n=0;n<60;n+=5){var o=e.clone(),a=n/30*Math.PI;o.css({left:this.options.dialRadius+Math.sin(a)*this.options.outerRadius-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(a)*this.options.outerRadius-this.options.tickRadius+"px"}),o.html(i._addLeadingZero(n)),this.minutesView.appendChild(o[0])}}},{key:"_handleAmPmClick",value:function(e){var n=t(e.target);this.amOrPm=n.hasClass("am-btn")?"AM":"PM",this._updateAmPmView()}},{key:"_updateAmPmView",value:function(){this.options.twelveHour&&(this.$amBtn.toggleClass("text-primary","AM"===this.amOrPm),this.$pmBtn.toggleClass("text-primary","PM"===this.amOrPm))}},{key:"_updateTimeFromInput",value:function(){var t=((this.el.value||this.options.defaultTime||"")+"").split(":");if(this.options.twelveHour&&void 0!==t[1]&&(0<t[1].toUpperCase().indexOf("AM")?this.amOrPm="AM":this.amOrPm="PM",t[1]=t[1].replace("AM","").replace("PM","")),"now"===t[0]){var e=new Date(+new Date+this.options.fromNow);t=[e.getHours(),e.getMinutes()],this.options.twelveHour&&(this.amOrPm=12<=t[0]&&t[0]<24?"PM":"AM")}this.hours=+t[0]||0,this.minutes=+t[1]||0,this.spanHours.innerHTML=this.hours,this.spanMinutes.innerHTML=i._addLeadingZero(this.minutes),this._updateAmPmView()}},{key:"showView",value:function(e,n){"minutes"===e&&t(this.hoursView).css("visibility");var i="hours"===e,o=i?this.hoursView:this.minutesView,a=i?this.minutesView:this.hoursView;this.currentView=e,t(this.spanHours).toggleClass("text-primary",i),t(this.spanMinutes).toggleClass("text-primary",!i),a.classList.add("timepicker-dial-out"),t(o).css("visibility","visible").removeClass("timepicker-dial-out"),this.resetClock(n),clearTimeout(this.toggleViewTimer),this.toggleViewTimer=setTimeout((function(){t(a).css("visibility","hidden")}),this.options.duration)}},{key:"resetClock",value:function(e){var n=this.currentView,i=this[n],o="hours"===n,a=i*(Math.PI/(o?6:30)),r=o&&0<i&&i<13?this.options.innerRadius:this.options.outerRadius,s=Math.sin(a)*r,l=-Math.cos(a)*r,d=this;e?(t(this.canvas).addClass("timepicker-canvas-out"),setTimeout((function(){t(d.canvas).removeClass("timepicker-canvas-out"),d.setHand(s,l)}),e)):this.setHand(s,l)}},{key:"setHand",value:function(t,e,n){var o=this,a=Math.atan2(t,-e),r="hours"===this.currentView,s=Math.PI/(r||n?6:30),l=Math.sqrt(t*t+e*e),d=r&&l<(this.options.outerRadius+this.options.innerRadius)/2,c=d?this.options.innerRadius:this.options.outerRadius;this.options.twelveHour&&(c=this.options.outerRadius),a<0&&(a=2*Math.PI+a);var u=Math.round(a/s);a=u*s,this.options.twelveHour?r?0===u&&(u=12):(n&&(u*=5),60===u&&(u=0)):r?(12===u&&(u=0),u=d?0===u?12:u:0===u?0:u+12):(n&&(u*=5),60===u&&(u=0)),this[this.currentView]!==u&&this.vibrate&&this.options.vibrate&&(this.vibrateTimer||(navigator[this.vibrate](10),this.vibrateTimer=setTimeout((function(){o.vibrateTimer=null}),100))),this[this.currentView]=u,r?this.spanHours.innerHTML=u:this.spanMinutes.innerHTML=i._addLeadingZero(u);var p=Math.sin(a)*(c-this.options.tickRadius),h=-Math.cos(a)*(c-this.options.tickRadius),f=Math.sin(a)*c,m=-Math.cos(a)*c;this.hand.setAttribute("x2",p),this.hand.setAttribute("y2",h),this.bg.setAttribute("cx",f),this.bg.setAttribute("cy",m)}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,this._updateTimeFromInput(),this.showView("hours"),this.modal.open())}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.modal.close())}},{key:"done",value:function(t,e){var n=this.el.value,o=e?"":i._addLeadingZero(this.hours)+":"+i._addLeadingZero(this.minutes);this.time=o,!e&&this.options.twelveHour&&(o=o+" "+this.amOrPm),(this.el.value=o)!==n&&this.$el.trigger("change"),this.close(),this.el.focus()}},{key:"clear",value:function(){this.done(null,!0)}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"_addLeadingZero",value:function(t){return(t<10?"0":"")+t}},{key:"_createSVGEl",value:function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}},{key:"_Pos",value:function(t){return t.targetTouches&&1<=t.targetTouches.length?{x:t.targetTouches[0].clientX,y:t.targetTouches[0].clientY}:{x:t.clientX,y:t.clientY}}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Timepicker}},{key:"defaults",get:function(){return e}}]),i}();n._template=['<div class= "modal timepicker-modal">','<div class="modal-content timepicker-container">','<div class="timepicker-digital-display">','<div class="timepicker-text-container">','<div class="timepicker-display-column">','<span class="timepicker-span-hours text-primary"></span>',":",'<span class="timepicker-span-minutes"></span>',"</div>",'<div class="timepicker-display-column timepicker-display-am-pm">','<div class="timepicker-span-am-pm"></div>',"</div>","</div>","</div>",'<div class="timepicker-analog-display">','<div class="timepicker-plate">','<div class="timepicker-canvas"></div>','<div class="timepicker-dial timepicker-hours"></div>','<div class="timepicker-dial timepicker-minutes timepicker-dial-out"></div>',"</div>",'<div class="timepicker-footer"></div>',"</div>","</div>","</div>"].join(""),M.Timepicker=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"timepicker","M_Timepicker")}(cash),function(t){"use strict";var e={},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return(o.el.M_CharacterCounter=o).options=t.extend({},i.defaults,n),o.isInvalid=!1,o.isValidLength=!1,o._setupCounter(),o._setupEventHandlers(),o}return c(i,h),l(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.CharacterCounter=void 0,this._removeCounter()}},{key:"_setupEventHandlers",value:function(){this._handleUpdateCounterBound=this.updateCounter.bind(this),this.el.addEventListener("focus",this._handleUpdateCounterBound,!0),this.el.addEventListener("input",this._handleUpdateCounterBound,!0)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("focus",this._handleUpdateCounterBound,!0),this.el.removeEventListener("input",this._handleUpdateCounterBound,!0)}},{key:"_setupCounter",value:function(){this.counterEl=document.createElement("span"),t(this.counterEl).addClass("character-counter").css({float:"right","font-size":"12px",height:1}),this.$el.parent().append(this.counterEl)}},{key:"_removeCounter",value:function(){t(this.counterEl).remove()}},{key:"updateCounter",value:function(){var e=+this.$el.attr("data-length"),n=this.el.value.length;this.isValidLength=n<=e;var i=n;e&&(i+="/"+e,this._validateInput()),t(this.counterEl).html(i)}},{key:"_validateInput",value:function(){this.isValidLength&&this.isInvalid?(this.isInvalid=!1,this.$el.removeClass("invalid")):this.isValidLength||this.isInvalid||(this.isInvalid=!0,this.$el.removeClass("valid"),this.$el.addClass("invalid"))}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_CharacterCounter}},{key:"defaults",get:function(){return e}}]),i}();M.CharacterCounter=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"characterCounter","M_CharacterCounter")}(cash),function(t){"use strict";var e={duration:200,dist:-100,shift:0,padding:0,numVisible:5,fullWidth:!1,indicators:!1,noWrap:!1,onCycleTo:null},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return(o.el.M_Carousel=o).options=t.extend({},i.defaults,n),o.hasMultipleSlides=1<o.$el.find(".carousel-item").length,o.showIndicators=o.options.indicators&&o.hasMultipleSlides,o.noWrap=o.options.noWrap||!o.hasMultipleSlides,o.pressed=!1,o.dragged=!1,o.offset=o.target=0,o.images=[],o.itemWidth=o.$el.find(".carousel-item").first().innerWidth(),o.itemHeight=o.$el.find(".carousel-item").first().innerHeight(),o.dim=2*o.itemWidth+o.options.padding||1,o._autoScrollBound=o._autoScroll.bind(o),o._trackBound=o._track.bind(o),o.options.fullWidth&&(o.options.dist=0,o._setCarouselHeight(),o.showIndicators&&o.$el.find(".carousel-fixed-item").addClass("with-indicators")),o.$indicators=t('<ul class="indicators"></ul>'),o.$el.find(".carousel-item").each((function(e,n){if(o.images.push(e),o.showIndicators){var i=t('<li class="indicator-item"></li>');0===n&&i[0].classList.add("active"),o.$indicators.append(i)}})),o.showIndicators&&o.$el.append(o.$indicators),o.count=o.images.length,o.options.numVisible=Math.min(o.count,o.options.numVisible),o.xform="transform",["webkit","Moz","O","ms"].every((function(t){var e=t+"Transform";return void 0===document.body.style[e]||(o.xform=e,!1)})),o._setupEventHandlers(),o._scroll(o.offset),o}return c(i,h),l(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Carousel=void 0}},{key:"_setupEventHandlers",value:function(){var t=this;this._handleCarouselTapBound=this._handleCarouselTap.bind(this),this._handleCarouselDragBound=this._handleCarouselDrag.bind(this),this._handleCarouselReleaseBound=this._handleCarouselRelease.bind(this),this._handleCarouselClickBound=this._handleCarouselClick.bind(this),void 0!==window.ontouchstart&&(this.el.addEventListener("touchstart",this._handleCarouselTapBound),this.el.addEventListener("touchmove",this._handleCarouselDragBound),this.el.addEventListener("touchend",this._handleCarouselReleaseBound)),this.el.addEventListener("mousedown",this._handleCarouselTapBound),this.el.addEventListener("mousemove",this._handleCarouselDragBound),this.el.addEventListener("mouseup",this._handleCarouselReleaseBound),this.el.addEventListener("mouseleave",this._handleCarouselReleaseBound),this.el.addEventListener("click",this._handleCarouselClickBound),this.showIndicators&&this.$indicators&&(this._handleIndicatorClickBound=this._handleIndicatorClick.bind(this),this.$indicators.find(".indicator-item").each((function(e,n){e.addEventListener("click",t._handleIndicatorClickBound)})));var e=M.throttle(this._handleResize,200);this._handleThrottledResizeBound=e.bind(this),window.addEventListener("resize",this._handleThrottledResizeBound)}},{key:"_removeEventHandlers",value:function(){var t=this;void 0!==window.ontouchstart&&(this.el.removeEventListener("touchstart",this._handleCarouselTapBound),this.el.removeEventListener("touchmove",this._handleCarouselDragBound),this.el.removeEventListener("touchend",this._handleCarouselReleaseBound)),this.el.removeEventListener("mousedown",this._handleCarouselTapBound),this.el.removeEventListener("mousemove",this._handleCarouselDragBound),this.el.removeEventListener("mouseup",this._handleCarouselReleaseBound),this.el.removeEventListener("mouseleave",this._handleCarouselReleaseBound),this.el.removeEventListener("click",this._handleCarouselClickBound),this.showIndicators&&this.$indicators&&this.$indicators.find(".indicator-item").each((function(e,n){e.removeEventListener("click",t._handleIndicatorClickBound)})),window.removeEventListener("resize",this._handleThrottledResizeBound)}},{key:"_handleCarouselTap",value:function(e){"mousedown"===e.type&&t(e.target).is("img")&&e.preventDefault(),this.pressed=!0,this.dragged=!1,this.verticalDragged=!1,this.reference=this._xpos(e),this.referenceY=this._ypos(e),this.velocity=this.amplitude=0,this.frame=this.offset,this.timestamp=Date.now(),clearInterval(this.ticker),this.ticker=setInterval(this._trackBound,100)}},{key:"_handleCarouselDrag",value:function(t){var e=void 0,n=void 0,i=void 0;if(this.pressed)if(e=this._xpos(t),n=this._ypos(t),i=this.reference-e,Math.abs(this.referenceY-n)<30&&!this.verticalDragged)(2<i||i<-2)&&(this.dragged=!0,this.reference=e,this._scroll(this.offset+i));else{if(this.dragged)return t.preventDefault(),t.stopPropagation(),!1;this.verticalDragged=!0}if(this.dragged)return t.preventDefault(),t.stopPropagation(),!1}},{key:"_handleCarouselRelease",value:function(t){if(this.pressed)return this.pressed=!1,clearInterval(this.ticker),this.target=this.offset,(10<this.velocity||this.velocity<-10)&&(this.amplitude=.9*this.velocity,this.target=this.offset+this.amplitude),this.target=Math.round(this.target/this.dim)*this.dim,this.noWrap&&(this.target>=this.dim*(this.count-1)?this.target=this.dim*(this.count-1):this.target<0&&(this.target=0)),this.amplitude=this.target-this.offset,this.timestamp=Date.now(),requestAnimationFrame(this._autoScrollBound),this.dragged&&(t.preventDefault(),t.stopPropagation()),!1}},{key:"_handleCarouselClick",value:function(e){if(this.dragged)return e.preventDefault(),e.stopPropagation(),!1;if(!this.options.fullWidth){var n=t(e.target).closest(".carousel-item").index();0!=this._wrap(this.center)-n&&(e.preventDefault(),e.stopPropagation()),this._cycleTo(n)}}},{key:"_handleIndicatorClick",value:function(e){e.stopPropagation();var n=t(e.target).closest(".indicator-item");n.length&&this._cycleTo(n.index())}},{key:"_handleResize",value:function(t){this.options.fullWidth?(this.itemWidth=this.$el.find(".carousel-item").first().innerWidth(),this.imageHeight=this.$el.find(".carousel-item.active").height(),this.dim=2*this.itemWidth+this.options.padding,this.offset=2*this.center*this.itemWidth,this.target=this.offset,this._setCarouselHeight(!0)):this._scroll()}},{key:"_setCarouselHeight",value:function(t){var e=this,n=this.$el.find(".carousel-item.active").length?this.$el.find(".carousel-item.active").first():this.$el.find(".carousel-item").first(),i=n.find("img").first();if(i.length)if(i[0].complete){var o=i.height();if(0<o)this.$el.css("height",o+"px");else{var a=i[0].naturalWidth,r=i[0].naturalHeight,s=this.$el.width()/a*r;this.$el.css("height",s+"px")}}else i.one("load",(function(t,n){e.$el.css("height",t.offsetHeight+"px")}));else if(!t){var l=n.height();this.$el.css("height",l+"px")}}},{key:"_xpos",value:function(t){return t.targetTouches&&1<=t.targetTouches.length?t.targetTouches[0].clientX:t.clientX}},{key:"_ypos",value:function(t){return t.targetTouches&&1<=t.targetTouches.length?t.targetTouches[0].clientY:t.clientY}},{key:"_wrap",value:function(t){return t>=this.count?t%this.count:t<0?this._wrap(this.count+t%this.count):t}},{key:"_track",value:function(){var t,e,n,i;e=(t=Date.now())-this.timestamp,this.timestamp=t,n=this.offset-this.frame,this.frame=this.offset,i=1e3*n/(1+e),this.velocity=.8*i+.2*this.velocity}},{key:"_autoScroll",value:function(){var t=void 0,e=void 0;this.amplitude&&(t=Date.now()-this.timestamp,2<(e=this.amplitude*Math.exp(-t/this.options.duration))||e<-2?(this._scroll(this.target-e),requestAnimationFrame(this._autoScrollBound)):this._scroll(this.target))}},{key:"_scroll",value:function(e){var n=this;this.$el.hasClass("scrolling")||this.el.classList.add("scrolling"),null!=this.scrollingTimeout&&window.clearTimeout(this.scrollingTimeout),this.scrollingTimeout=window.setTimeout((function(){n.$el.removeClass("scrolling")}),this.options.duration);var i,o,a,r,s=void 0,l=void 0,d=void 0,c=void 0,u=void 0,p=void 0,h=this.center,f=1/this.options.numVisible;if(this.offset="number"==typeof e?e:this.offset,this.center=Math.floor((this.offset+this.dim/2)/this.dim),r=-(a=(o=this.offset-this.center*this.dim)<0?1:-1)*o*2/this.dim,i=this.count>>1,this.options.fullWidth?(d="translateX(0)",p=1):(d="translateX("+(this.el.clientWidth-this.itemWidth)/2+"px) ",d+="translateY("+(this.el.clientHeight-this.itemHeight)/2+"px)",p=1-f*r),this.showIndicators){var m=this.center%this.count,g=this.$indicators.find(".indicator-item.active");g.index()!==m&&(g.removeClass("active"),this.$indicators.find(".indicator-item").eq(m)[0].classList.add("active"))}if(!this.noWrap||0<=this.center&&this.center<this.count){l=this.images[this._wrap(this.center)],t(l).hasClass("active")||(this.$el.find(".carousel-item").removeClass("active"),l.classList.add("active"));var b=d+" translateX("+-o/2+"px) translateX("+a*this.options.shift*r*s+"px) translateZ("+this.options.dist*r+"px)";this._updateItemStyle(l,p,0,b)}for(s=1;s<=i;++s){if(this.options.fullWidth?(c=this.options.dist,u=s===i&&o<0?1-r:1):(c=this.options.dist*(2*s+r*a),u=1-f*(2*s+r*a)),!this.noWrap||this.center+s<this.count){l=this.images[this._wrap(this.center+s)];var v=d+" translateX("+(this.options.shift+(this.dim*s-o)/2)+"px) translateZ("+c+"px)";this._updateItemStyle(l,u,-s,v)}if(this.options.fullWidth?(c=this.options.dist,u=s===i&&0<o?1-r:1):(c=this.options.dist*(2*s-r*a),u=1-f*(2*s-r*a)),!this.noWrap||0<=this.center-s){l=this.images[this._wrap(this.center-s)];var y=d+" translateX("+(-this.options.shift+(-this.dim*s-o)/2)+"px) translateZ("+c+"px)";this._updateItemStyle(l,u,-s,y)}}if(!this.noWrap||0<=this.center&&this.center<this.count){l=this.images[this._wrap(this.center)];var x=d+" translateX("+-o/2+"px) translateX("+a*this.options.shift*r+"px) translateZ("+this.options.dist*r+"px)";this._updateItemStyle(l,p,0,x)}var w=this.$el.find(".carousel-item").eq(this._wrap(this.center));h!==this.center&&"function"==typeof this.options.onCycleTo&&this.options.onCycleTo.call(this,w[0],this.dragged),"function"==typeof this.oneTimeCallback&&(this.oneTimeCallback.call(this,w[0],this.dragged),this.oneTimeCallback=null)}},{key:"_updateItemStyle",value:function(t,e,n,i){t.style[this.xform]=i,t.style.zIndex=n,t.style.opacity=e,t.style.visibility="visible"}},{key:"_cycleTo",value:function(t,e){var n=this.center%this.count-t;this.noWrap||(n<0?Math.abs(n+this.count)<Math.abs(n)&&(n+=this.count):0<n&&Math.abs(n-this.count)<n&&(n-=this.count)),this.target=this.dim*Math.round(this.offset/this.dim),n<0?this.target+=this.dim*Math.abs(n):0<n&&(this.target-=this.dim*n),"function"==typeof e&&(this.oneTimeCallback=e),this.offset!==this.target&&(this.amplitude=this.target-this.offset,this.timestamp=Date.now(),requestAnimationFrame(this._autoScrollBound))}},{key:"next",value:function(t){(void 0===t||isNaN(t))&&(t=1);var e=this.center+t;if(e>=this.count||e<0){if(this.noWrap)return;e=this._wrap(e)}this._cycleTo(e)}},{key:"prev",value:function(t){(void 0===t||isNaN(t))&&(t=1);var e=this.center-t;if(e>=this.count||e<0){if(this.noWrap)return;e=this._wrap(e)}this._cycleTo(e)}},{key:"set",value:function(t,e){if((void 0===t||isNaN(t))&&(t=0),t>this.count||t<0){if(this.noWrap)return;t=this._wrap(t)}this._cycleTo(t,e)}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Carousel}},{key:"defaults",get:function(){return e}}]),i}();M.Carousel=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"carousel","M_Carousel")}(cash),function(t){"use strict";var e={onOpen:void 0,onClose:void 0},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return(o.el.M_TapTarget=o).options=t.extend({},i.defaults,n),o.isOpen=!1,o.$origin=t("#"+o.$el.attr("data-target")),o._setup(),o._calculatePositioning(),o._setupEventHandlers(),o}return c(i,h),l(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.TapTarget=void 0}},{key:"_setupEventHandlers",value:function(){this._handleDocumentClickBound=this._handleDocumentClick.bind(this),this._handleTargetClickBound=this._handleTargetClick.bind(this),this._handleOriginClickBound=this._handleOriginClick.bind(this),this.el.addEventListener("click",this._handleTargetClickBound),this.originEl.addEventListener("click",this._handleOriginClickBound);var t=M.throttle(this._handleResize,200);this._handleThrottledResizeBound=t.bind(this),window.addEventListener("resize",this._handleThrottledResizeBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleTargetClickBound),this.originEl.removeEventListener("click",this._handleOriginClickBound),window.removeEventListener("resize",this._handleThrottledResizeBound)}},{key:"_handleTargetClick",value:function(t){this.open()}},{key:"_handleOriginClick",value:function(t){this.close()}},{key:"_handleResize",value:function(t){this._calculatePositioning()}},{key:"_handleDocumentClick",value:function(e){t(e.target).closest(".tap-target-wrapper").length||(this.close(),e.preventDefault(),e.stopPropagation())}},{key:"_setup",value:function(){this.wrapper=this.$el.parent()[0],this.waveEl=t(this.wrapper).find(".tap-target-wave")[0],this.originEl=t(this.wrapper).find(".tap-target-origin")[0],this.contentEl=this.$el.find(".tap-target-content")[0],t(this.wrapper).hasClass(".tap-target-wrapper")||(this.wrapper=document.createElement("div"),this.wrapper.classList.add("tap-target-wrapper"),this.$el.before(t(this.wrapper)),this.wrapper.append(this.el)),this.contentEl||(this.contentEl=document.createElement("div"),this.contentEl.classList.add("tap-target-content"),this.$el.append(this.contentEl)),this.waveEl||(this.waveEl=document.createElement("div"),this.waveEl.classList.add("tap-target-wave"),this.originEl||(this.originEl=this.$origin.clone(!0,!0),this.originEl.addClass("tap-target-origin"),this.originEl.removeAttr("id"),this.originEl.removeAttr("style"),this.originEl=this.originEl[0],this.waveEl.append(this.originEl)),this.wrapper.append(this.waveEl))}},{key:"_calculatePositioning",value:function(){var e="fixed"===this.$origin.css("position");if(!e)for(var n=this.$origin.parents(),i=0;i<n.length&&!(e="fixed"==t(n[i]).css("position"));i++);var o=this.$origin.outerWidth(),a=this.$origin.outerHeight(),r=e?this.$origin.offset().top-M.getDocumentScrollTop():this.$origin.offset().top,s=e?this.$origin.offset().left-M.getDocumentScrollLeft():this.$origin.offset().left,l=window.innerWidth,d=window.innerHeight,c=l/2,u=d/2,p=s<=c,h=c<s,f=r<=u,m=u<r,g=.25*l<=s&&s<=.75*l,b=this.$el.outerWidth(),v=this.$el.outerHeight(),y=r+a/2-v/2,x=s+o/2-b/2,w=e?"fixed":"absolute",k=g?b:b/2+o,_=v/2,C=f?v/2:0,E=p&&!g?b/2-o:0,T=o,L=m?"bottom":"top",O=2*o,D=O,B=v/2-D/2,S=b/2-O/2,z={};z.top=f?y+"px":"",z.right=h?l-x-b+"px":"",z.bottom=m?d-y-v+"px":"",z.left=p?x+"px":"",z.position=w,t(this.wrapper).css(z),t(this.contentEl).css({width:k+"px",height:_+"px",top:C+"px",right:"0px",bottom:"0px",left:E+"px",padding:T+"px",verticalAlign:L}),t(this.waveEl).css({top:B+"px",left:S+"px",width:O+"px",height:D+"px"})}},{key:"open",value:function(){this.isOpen||("function"==typeof this.options.onOpen&&this.options.onOpen.call(this,this.$origin[0]),this.isOpen=!0,this.wrapper.classList.add("open"),document.body.addEventListener("click",this._handleDocumentClickBound,!0),document.body.addEventListener("touchend",this._handleDocumentClickBound))}},{key:"close",value:function(){this.isOpen&&("function"==typeof this.options.onClose&&this.options.onClose.call(this,this.$origin[0]),this.isOpen=!1,this.wrapper.classList.remove("open"),document.body.removeEventListener("click",this._handleDocumentClickBound,!0),document.body.removeEventListener("touchend",this._handleDocumentClickBound))}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_TapTarget}},{key:"defaults",get:function(){return e}}]),i}();M.TapTarget=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"tapTarget","M_TapTarget")}(cash),function(t){"use strict";var e={classes:"",dropdownOptions:{}},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.$el.hasClass("browser-default")?d(o):((o.el.M_FormSelect=o).options=t.extend({},i.defaults,n),o.isMultiple=o.$el.prop("multiple"),o.el.tabIndex=-1,o._keysSelected={},o._valueDict={},o._setupDropdown(),o._setupEventHandlers(),o)}return c(i,h),l(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeDropdown(),this.el.M_FormSelect=void 0}},{key:"_setupEventHandlers",value:function(){var e=this;this._handleSelectChangeBound=this._handleSelectChange.bind(this),this._handleOptionClickBound=this._handleOptionClick.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),t(this.dropdownOptions).find("li:not(.optgroup)").each((function(t){t.addEventListener("click",e._handleOptionClickBound)})),this.el.addEventListener("change",this._handleSelectChangeBound),this.input.addEventListener("click",this._handleInputClickBound)}},{key:"_removeEventHandlers",value:function(){var e=this;t(this.dropdownOptions).find("li:not(.optgroup)").each((function(t){t.removeEventListener("click",e._handleOptionClickBound)})),this.el.removeEventListener("change",this._handleSelectChangeBound),this.input.removeEventListener("click",this._handleInputClickBound)}},{key:"_handleSelectChange",value:function(t){this._setValueToInput()}},{key:"_handleOptionClick",value:function(e){e.preventDefault();var n=t(e.target).closest("li")[0],i=n.id;if(!t(n).hasClass("disabled")&&!t(n).hasClass("optgroup")&&i.length){var o=!0;if(this.isMultiple){var a=t(this.dropdownOptions).find("li.disabled.selected");a.length&&(a.removeClass("selected"),a.find('input[type="checkbox"]').prop("checked",!1),this._toggleEntryFromArray(a[0].id)),o=this._toggleEntryFromArray(i)}else t(this.dropdownOptions).find("li").removeClass("selected"),t(n).toggleClass("selected",o);t(this._valueDict[i].el).prop("selected")!==o&&(t(this._valueDict[i].el).prop("selected",o),this.$el.trigger("change"))}e.stopPropagation()}},{key:"_handleInputClick",value:function(){this.dropdown&&this.dropdown.isOpen&&(this._setValueToInput(),this._setSelectedStates())}},{key:"_setupDropdown",value:function(){var e=this;this.wrapper=document.createElement("div"),t(this.wrapper).addClass("select-wrapper "+this.options.classes),this.$el.before(t(this.wrapper)),this.wrapper.appendChild(this.el),this.el.disabled&&this.wrapper.classList.add("disabled"),this.$selectOptions=this.$el.children("option, optgroup"),this.dropdownOptions=document.createElement("ul"),this.dropdownOptions.id="select-options-"+M.guid(),t(this.dropdownOptions).addClass("dropdown-content select-dropdown "+(this.isMultiple?"multiple-select-dropdown":"")),this.$selectOptions.length&&this.$selectOptions.each((function(n){if(t(n).is("option")){var i;i=e.isMultiple?e._appendOptionWithIcon(e.$el,n,"multiple"):e._appendOptionWithIcon(e.$el,n),e._addOptionToValueDict(n,i)}else if(t(n).is("optgroup")){var o=t(n).children("option");t(e.dropdownOptions).append(t('<li class="optgroup"><span>'+n.getAttribute("label")+"</span></li>")[0]),o.each((function(t){var n=e._appendOptionWithIcon(e.$el,t,"optgroup-option");e._addOptionToValueDict(t,n)}))}})),this.$el.after(this.dropdownOptions),this.input=document.createElement("input"),t(this.input).addClass("select-dropdown dropdown-trigger"),this.input.setAttribute("type","text"),this.input.setAttribute("readonly","true"),this.input.setAttribute("data-target",this.dropdownOptions.id),this.el.disabled&&t(this.input).prop("disabled","true"),this.$el.before(this.input),this._setValueToInput();var n=t('<svg class="caret" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');if(this.$el.before(n[0]),!this.el.disabled){var i=t.extend({},this.options.dropdownOptions);i.onOpenEnd=function(n){var i=t(e.dropdownOptions).find(".selected").first();if(i.length&&(M.keyDown=!0,e.dropdown.focusedIndex=i.index(),e.dropdown._focusFocusedItem(),M.keyDown=!1,e.dropdown.isScrollable)){var o=i[0].getBoundingClientRect().top-e.dropdownOptions.getBoundingClientRect().top;o-=e.dropdownOptions.clientHeight/2,e.dropdownOptions.scrollTop=o}},this.isMultiple&&(i.closeOnClick=!1),this.dropdown=M.Dropdown.init(this.input,i)}this._setSelectedStates()}},{key:"_addOptionToValueDict",value:function(t,e){var n=Object.keys(this._valueDict).length,i=this.dropdownOptions.id+n,o={};e.id=i,o.el=t,o.optionEl=e,this._valueDict[i]=o}},{key:"_removeDropdown",value:function(){t(this.wrapper).find(".caret").remove(),t(this.input).remove(),t(this.dropdownOptions).remove(),t(this.wrapper).before(this.$el),t(this.wrapper).remove()}},{key:"_appendOptionWithIcon",value:function(e,n,i){var o=n.disabled?"disabled ":"",a="optgroup-option"===i?"optgroup-option ":"",r=this.isMultiple?'<label><input type="checkbox"'+o+'"/><span>'+n.innerHTML+"</span></label>":n.innerHTML,s=t("<li></li>"),l=t("<span></span>");l.html(r),s.addClass(o+" "+a),s.append(l);var d=n.getAttribute("data-icon");if(d){var c=t('<img alt="" src="'+d+'">');s.prepend(c)}return t(this.dropdownOptions).append(s[0]),s[0]}},{key:"_toggleEntryFromArray",value:function(e){var n=!this._keysSelected.hasOwnProperty(e),i=t(this._valueDict[e].optionEl);return n?this._keysSelected[e]=!0:delete this._keysSelected[e],i.toggleClass("selected",n),i.find('input[type="checkbox"]').prop("checked",n),i.prop("selected",n),n}},{key:"_setValueToInput",value:function(){var e=[];if(this.$el.find("option").each((function(n){if(t(n).prop("selected")){var i=t(n).text();e.push(i)}})),!e.length){var n=this.$el.find("option:disabled").eq(0);n.length&&""===n[0].value&&e.push(n.text())}this.input.value=e.join(", ")}},{key:"_setSelectedStates",value:function(){for(var e in this._keysSelected={},this._valueDict){var n=this._valueDict[e],i=t(n.el).prop("selected");t(n.optionEl).find('input[type="checkbox"]').prop("checked",i),i?(this._activateOption(t(this.dropdownOptions),t(n.optionEl)),this._keysSelected[e]=!0):t(n.optionEl).removeClass("selected")}}},{key:"_activateOption",value:function(e,n){n&&(this.isMultiple||e.find("li.selected").removeClass("selected"),t(n).addClass("selected"))}},{key:"getSelectedValues",value:function(){var t=[];for(var e in this._keysSelected)t.push(this._valueDict[e].el.value);return t}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_FormSelect}},{key:"defaults",get:function(){return e}}]),i}();M.FormSelect=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"formSelect","M_FormSelect")}(cash),function(t,e){"use strict";var n={},i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return(i.el.M_Range=i).options=t.extend({},o.defaults,n),i._mousedown=!1,i._setupThumb(),i._setupEventHandlers(),i}return c(o,h),l(o,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeThumb(),this.el.M_Range=void 0}},{key:"_setupEventHandlers",value:function(){this._handleRangeChangeBound=this._handleRangeChange.bind(this),this._handleRangeMousedownTouchstartBound=this._handleRangeMousedownTouchstart.bind(this),this._handleRangeInputMousemoveTouchmoveBound=this._handleRangeInputMousemoveTouchmove.bind(this),this._handleRangeMouseupTouchendBound=this._handleRangeMouseupTouchend.bind(this),this._handleRangeBlurMouseoutTouchleaveBound=this._handleRangeBlurMouseoutTouchleave.bind(this),this.el.addEventListener("change",this._handleRangeChangeBound),this.el.addEventListener("mousedown",this._handleRangeMousedownTouchstartBound),this.el.addEventListener("touchstart",this._handleRangeMousedownTouchstartBound),this.el.addEventListener("input",this._handleRangeInputMousemoveTouchmoveBound),this.el.addEventListener("mousemove",this._handleRangeInputMousemoveTouchmoveBound),this.el.addEventListener("touchmove",this._handleRangeInputMousemoveTouchmoveBound),this.el.addEventListener("mouseup",this._handleRangeMouseupTouchendBound),this.el.addEventListener("touchend",this._handleRangeMouseupTouchendBound),this.el.addEventListener("blur",this._handleRangeBlurMouseoutTouchleaveBound),this.el.addEventListener("mouseout",this._handleRangeBlurMouseoutTouchleaveBound),this.el.addEventListener("touchleave",this._handleRangeBlurMouseoutTouchleaveBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("change",this._handleRangeChangeBound),this.el.removeEventListener("mousedown",this._handleRangeMousedownTouchstartBound),this.el.removeEventListener("touchstart",this._handleRangeMousedownTouchstartBound),this.el.removeEventListener("input",this._handleRangeInputMousemoveTouchmoveBound),this.el.removeEventListener("mousemove",this._handleRangeInputMousemoveTouchmoveBound),this.el.removeEventListener("touchmove",this._handleRangeInputMousemoveTouchmoveBound),this.el.removeEventListener("mouseup",this._handleRangeMouseupTouchendBound),this.el.removeEventListener("touchend",this._handleRangeMouseupTouchendBound),this.el.removeEventListener("blur",this._handleRangeBlurMouseoutTouchleaveBound),this.el.removeEventListener("mouseout",this._handleRangeBlurMouseoutTouchleaveBound),this.el.removeEventListener("touchleave",this._handleRangeBlurMouseoutTouchleaveBound)}},{key:"_handleRangeChange",value:function(){t(this.value).html(this.$el.val()),t(this.thumb).hasClass("active")||this._showRangeBubble();var e=this._calcRangeOffset();t(this.thumb).addClass("active").css("left",e+"px")}},{key:"_handleRangeMousedownTouchstart",value:function(e){if(t(this.value).html(this.$el.val()),this._mousedown=!0,this.$el.addClass("active"),t(this.thumb).hasClass("active")||this._showRangeBubble(),"input"!==e.type){var n=this._calcRangeOffset();t(this.thumb).addClass("active").css("left",n+"px")}}},{key:"_handleRangeInputMousemoveTouchmove",value:function(){if(this._mousedown){t(this.thumb).hasClass("active")||this._showRangeBubble();var e=this._calcRangeOffset();t(this.thumb).addClass("active").css("left",e+"px"),t(this.value).html(this.$el.val())}}},{key:"_handleRangeMouseupTouchend",value:function(){this._mousedown=!1,this.$el.removeClass("active")}},{key:"_handleRangeBlurMouseoutTouchleave",value:function(){if(!this._mousedown){var n=7+parseInt(this.$el.css("padding-left"))+"px";t(this.thumb).hasClass("active")&&(e.remove(this.thumb),e({targets:this.thumb,height:0,width:0,top:10,easing:"easeOutQuad",marginLeft:n,duration:100})),t(this.thumb).removeClass("active")}}},{key:"_setupThumb",value:function(){this.thumb=document.createElement("span"),this.value=document.createElement("span"),t(this.thumb).addClass("thumb"),t(this.value).addClass("value"),t(this.thumb).append(this.value),this.$el.after(this.thumb)}},{key:"_removeThumb",value:function(){t(this.thumb).remove()}},{key:"_showRangeBubble",value:function(){var n=-7+parseInt(t(this.thumb).parent().css("padding-left"))+"px";e.remove(this.thumb),e({targets:this.thumb,height:30,width:30,top:-30,marginLeft:n,duration:300,easing:"easeOutQuint"})}},{key:"_calcRangeOffset",value:function(){var t=this.$el.width()-15,e=parseFloat(this.$el.attr("max"))||100,n=parseFloat(this.$el.attr("min"))||0;return(parseFloat(this.$el.val())-n)/(e-n)*t}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Range}},{key:"defaults",get:function(){return n}}]),o}();M.Range=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"range","M_Range"),i.init(t("input[type=range]"))}(cash,M.anime)}).call(this,n(0),n(0),n(0),n(2))},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var o=(r=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),a=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(a).concat([o]).join("\n")}var r,s,l;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(i)for(var a=0;a<this.length;a++){var r=this[a][0];null!=r&&(o[r]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},function(t,e,n){(function(n,i,o,a){var r,s=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var a=Object.getPrototypeOf(e);return null===a?void 0:t(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(); /*! * Materialize v1.0.0 (http://materializecss.com) * Copyright 2014-2017 Materialize * MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE) */function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")} /*! cash-dom 1.3.5, https://github.com/kenwheeler/cash @license MIT */window.cash=function(){var t,e=document,n=window,i=Array.prototype,o=i.slice,a=i.filter,r=i.push,s=function(){},l=function(t){return typeof t==typeof s&&t.call},d=function(t){return"string"==typeof t},c=/^#[\w-]*$/,u=/^\.[\w-]*$/,p=/<.+>/,h=/^\w+$/;function f(t,n){return n=n||e,u.test(t)?n.getElementsByClassName(t.slice(1)):h.test(t)?n.getElementsByTagName(t):n.querySelectorAll(t)}function m(n){if(!t){var i=(t=e.implementation.createHTMLDocument(null)).createElement("base");i.href=e.location.href,t.head.appendChild(i)}return t.body.innerHTML=n,t.body.childNodes}function g(t){"loading"!==e.readyState?t():e.addEventListener("DOMContentLoaded",t)}function b(t,i){if(!t)return this;if(t.cash&&t!==n)return t;var o,a=t,r=0;if(d(t))a=c.test(t)?e.getElementById(t.slice(1)):p.test(t)?m(t):f(t,i);else if(l(t))return g(t),this;if(!a)return this;if(a.nodeType||a===n)this[0]=a,this.length=1;else for(o=this.length=a.length;r<o;r++)this[r]=a[r];return this}function v(t,e){return new b(t,e)}var y=v.fn=v.prototype=b.prototype={cash:!0,length:0,push:r,splice:i.splice,map:i.map,init:b};function x(t,e){for(var n=t.length,i=0;i<n&&!1!==e.call(t[i],t[i],i,t);i++);}function w(t,e){var n=t&&(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector);return!!n&&n.call(t,e)}function k(t){return d(t)?w:t.cash?function(e){return t.is(e)}:function(t,e){return t===e}}function _(t){return v(o.call(t).filter((function(t,e,n){return n.indexOf(t)===e})))}Object.defineProperty(y,"constructor",{value:v}),v.parseHTML=m,v.noop=s,v.isFunction=l,v.isString=d,v.extend=y.extend=function(t){t=t||{};var e=o.call(arguments),n=e.length,i=1;for(1===e.length&&(t=this,i=0);i<n;i++)if(e[i])for(var a in e[i])e[i].hasOwnProperty(a)&&(t[a]=e[i][a]);return t},v.extend({merge:function(t,e){for(var n=+e.length,i=t.length,o=0;o<n;i++,o++)t[i]=e[o];return t.length=i,t},each:x,matches:w,unique:_,isArray:Array.isArray,isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)}});var C=v.uid="_cash"+Date.now();function E(t){return t[C]=t[C]||{}}function M(t,e,n){return E(t)[e]=n}function T(t,e){var n=E(t);return void 0===n[e]&&(n[e]=t.dataset?t.dataset[e]:v(t).attr("data-"+e)),n[e]}y.extend({data:function(t,e){if(d(t))return void 0===e?T(this[0],t):this.each((function(n){return M(n,t,e)}));for(var n in t)this.data(n,t[n]);return this},removeData:function(t){return this.each((function(e){return function(t,e){var n=E(t);n?delete n[e]:t.dataset?delete t.dataset[e]:v(t).removeAttr("data-"+name)}(e,t)}))}});var L=/\S+/g;function O(t){return d(t)&&t.match(L)}function D(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}function B(t,e,n){t.classList?t.classList.add(e):n.indexOf(" "+e+" ")&&(t.className+=" "+e)}function S(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(e,"")}y.extend({addClass:function(t){var e=O(t);return e?this.each((function(t){var n=" "+t.className+" ";x(e,(function(e){B(t,e,n)}))})):this},attr:function(t,e){if(t){if(d(t))return void 0===e?this[0]?this[0].getAttribute?this[0].getAttribute(t):this[0][t]:void 0:this.each((function(n){n.setAttribute?n.setAttribute(t,e):n[t]=e}));for(var n in t)this.attr(n,t[n]);return this}},hasClass:function(t){var e=!1,n=O(t);return n&&n.length&&this.each((function(t){return!(e=D(t,n[0]))})),e},prop:function(t,e){if(d(t))return void 0===e?this[0][t]:this.each((function(n){n[t]=e}));for(var n in t)this.prop(n,t[n]);return this},removeAttr:function(t){return this.each((function(e){e.removeAttribute?e.removeAttribute(t):delete e[t]}))},removeClass:function(t){if(!arguments.length)return this.attr("class","");var e=O(t);return e?this.each((function(t){x(e,(function(e){S(t,e)}))})):this},removeProp:function(t){return this.each((function(e){delete e[t]}))},toggleClass:function(t,e){if(void 0!==e)return this[e?"addClass":"removeClass"](t);var n=O(t);return n?this.each((function(t){var e=" "+t.className+" ";x(n,(function(n){D(t,n)?S(t,n):B(t,n,e)}))})):this}}),y.extend({add:function(t,e){return _(v.merge(this,v(t,e)))},each:function(t){return x(this,t),this},eq:function(t){return v(this.get(t))},filter:function(t){if(!t)return this;var e=l(t)?t:k(t);return v(a.call(this,(function(n){return e(n,t)})))},first:function(){return this.eq(0)},get:function(t){return void 0===t?o.call(this):t<0?this[t+this.length]:this[t]},index:function(t){var e=t?v(t)[0]:this[0],n=t?this:v(e).parent().children();return o.call(n).indexOf(e)},last:function(){return this.eq(-1)}});var z,A,$,I,R=($=/(?:^\w|[A-Z]|\b\w)/g,I=/[\s-_]+/g,function(t){return t.replace($,(function(t,e){return t[0===e?"toLowerCase":"toUpperCase"]()})).replace(I,"")}),F=(z={},A=document.createElement("div").style,function(t){if(t=R(t),z[t])return z[t];var e=t.charAt(0).toUpperCase()+t.slice(1);return x((t+" "+["webkit","moz","ms","o"].join(e+" ")+e).split(" "),(function(e){if(e in A)return z[e]=t=z[t]=e,!1})),z[t]});function H(t,e){return parseInt(n.getComputedStyle(t[0],null)[e],10)||0}function P(t,e,n){var i,o=T(t,"_cashEvents"),a=o&&o[e];a&&(n?(t.removeEventListener(e,n),(i=a.indexOf(n))>=0&&a.splice(i,1)):(x(a,(function(n){t.removeEventListener(e,n)})),a=[]))}function W(t,e){return"&"+encodeURIComponent(t)+"="+encodeURIComponent(e).replace(/%20/g,"+")}function j(t){var e=t.type;if(!e)return null;switch(e.toLowerCase()){case"select-one":return function(t){var e=t.selectedIndex;return e>=0?t.options[e].value:null}(t);case"select-multiple":return function(t){var e=[];return x(t.options,(function(t){t.selected&&e.push(t.value)})),e.length?e:null}(t);case"radio":case"checkbox":return t.checked?t.value:null;default:return t.value?t.value:null}}function N(t,e,n){var i=d(e);i||!e.length?x(t,i?function(t){return t.insertAdjacentHTML(n?"afterbegin":"beforeend",e)}:function(t,i){return function(t,e,n){if(n){var i=t.childNodes[0];t.insertBefore(e,i)}else t.appendChild(e)}(t,0===i?e:e.cloneNode(!0),n)}):x(e,(function(e){return N(t,e,n)}))}v.prefixedProp=F,v.camelCase=R,y.extend({css:function(t,e){if(d(t))return t=F(t),arguments.length>1?this.each((function(n){return n.style[t]=e})):n.getComputedStyle(this[0])[t];for(var i in t)this.css(i,t[i]);return this}}),x(["Width","Height"],(function(t){var e=t.toLowerCase();y[e]=function(){return this[0].getBoundingClientRect()[e]},y["inner"+t]=function(){return this[0]["client"+t]},y["outer"+t]=function(e){return this[0]["offset"+t]+(e?H(this,"margin"+("Width"===t?"Left":"Top"))+H(this,"margin"+("Width"===t?"Right":"Bottom")):0)}})),y.extend({off:function(t,e){return this.each((function(n){return P(n,t,e)}))},on:function(t,e,n,i){var o;if(!d(t)){for(var a in t)this.on(a,e,t[a]);return this}return l(e)&&(n=e,e=null),"ready"===t?(g(n),this):(e&&(o=n,n=function(t){for(var n=t.target;!w(n,e);){if(n===this||null===n)return!1;n=n.parentNode}n&&o.call(n,t)}),this.each((function(e){var o=n;i&&(o=function(){n.apply(this,arguments),P(e,t,o)}),function(t,e,n){var i=T(t,"_cashEvents")||M(t,"_cashEvents",{});i[e]=i[e]||[],i[e].push(n),t.addEventListener(e,n)}(e,t,o)})))},one:function(t,e,n){return this.on(t,e,n,!0)},ready:g,trigger:function(t,e){if(document.createEvent){var n=document.createEvent("HTMLEvents");return n.initEvent(t,!0,!1),n=this.extend(n,e),this.each((function(t){return t.dispatchEvent(n)}))}}}),y.extend({serialize:function(){var t="";return x(this[0].elements||this,(function(e){if(!e.disabled&&"FIELDSET"!==e.tagName){var n=e.name;switch(e.type.toLowerCase()){case"file":case"reset":case"submit":case"button":break;case"select-multiple":var i=j(e);null!==i&&x(i,(function(e){t+=W(n,e)}));break;default:var o=j(e);null!==o&&(t+=W(n,o))}}})),t.substr(1)},val:function(t){return void 0===t?j(this[0]):this.each((function(e){return e.value=t}))}}),y.extend({after:function(t){return v(t).insertAfter(this),this},append:function(t){return N(this,t),this},appendTo:function(t){return N(v(t),this),this},before:function(t){return v(t).insertBefore(this),this},clone:function(){return v(this.map((function(t){return t.cloneNode(!0)})))},empty:function(){return this.html(""),this},html:function(t){if(void 0===t)return this[0].innerHTML;var e=t.nodeType?t[0].outerHTML:t;return this.each((function(t){return t.innerHTML=e}))},insertAfter:function(t){var e=this;return v(t).each((function(t,n){var i=t.parentNode,o=t.nextSibling;e.each((function(t){i.insertBefore(0===n?t:t.cloneNode(!0),o)}))})),this},insertBefore:function(t){var e=this;return v(t).each((function(t,n){var i=t.parentNode;e.each((function(e){i.insertBefore(0===n?e:e.cloneNode(!0),t)}))})),this},prepend:function(t){return N(this,t,!0),this},prependTo:function(t){return N(v(t),this,!0),this},remove:function(){return this.each((function(t){if(t.parentNode)return t.parentNode.removeChild(t)}))},text:function(t){return void 0===t?this[0].textContent:this.each((function(e){return e.textContent=t}))}});var q=e.documentElement;return y.extend({position:function(){var t=this[0];return{left:t.offsetLeft,top:t.offsetTop}},offset:function(){var t=this[0].getBoundingClientRect();return{top:t.top+n.pageYOffset-q.clientTop,left:t.left+n.pageXOffset-q.clientLeft}},offsetParent:function(){return v(this[0].offsetParent)}}),y.extend({children:function(t){var e=[];return this.each((function(t){r.apply(e,t.children)})),e=_(e),t?e.filter((function(e){return w(e,t)})):e},closest:function(t){return!t||this.length<1?v():this.is(t)?this.filter(t):this.parent().closest(t)},is:function(t){if(!t)return!1;var e=!1,n=k(t);return this.each((function(i){return!(e=n(i,t))})),e},find:function(t){if(!t||t.nodeType)return v(t&&this.has(t).length?t:null);var e=[];return this.each((function(n){r.apply(e,f(t,n))})),_(e)},has:function(t){var e=d(t)?function(e){return 0!==f(t,e).length}:function(e){return e.contains(t)};return this.filter(e)},next:function(){return v(this[0].nextElementSibling)},not:function(t){if(!t)return this;var e=k(t);return this.filter((function(n){return!e(n,t)}))},parent:function(){var t=[];return this.each((function(e){e&&e.parentNode&&t.push(e.parentNode)})),_(t)},parents:function(t){var n,i=[];return this.each((function(o){for(n=o;n&&n.parentNode&&n!==e.body.parentNode;)n=n.parentNode,(!t||t&&w(n,t))&&i.push(n)})),_(i)},prev:function(){return v(this[0].previousElementSibling)},siblings:function(t){var e=this.parent().children(t),n=this[0];return e.filter((function(t){return t!==n}))}}),v}();var p=function(){function t(e,n,i){u(this,t),n instanceof Element||console.error(Error(n+" is not an HTML Element"));var o=e.getInstance(n);o&&o.destroy(),this.el=n,this.$el=cash(n)}return l(t,null,[{key:"init",value:function(t,e,n){var i=null;if(e instanceof Element)i=new t(e,n);else if(e&&(e.jquery||e.cash||e instanceof NodeList)){for(var o=[],a=0;a<e.length;a++)o.push(new t(e[a],n));i=o}return i}}]),t}();!function(t){t.Package?M={}:t.M={},M.jQueryLoaded=!!n}(window),void 0===(r=function(){return M}.apply(e,[]))||(t.exports=r),M.version="1.0.0",M.keys={TAB:9,ENTER:13,ESC:27,ARROW_UP:38,ARROW_DOWN:40},M.tabPressed=!1,M.keyDown=!1;document.addEventListener("keydown",(function(t){M.keyDown=!0,t.which!==M.keys.TAB&&t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ARROW_UP||(M.tabPressed=!0)}),!0),document.addEventListener("keyup",(function(t){M.keyDown=!1,t.which!==M.keys.TAB&&t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ARROW_UP||(M.tabPressed=!1)}),!0),document.addEventListener("focus",(function(t){M.keyDown&&document.body.classList.add("keyboard-focused")}),!0),document.addEventListener("blur",(function(t){document.body.classList.remove("keyboard-focused")}),!0),M.initializeJqueryWrapper=function(t,e,n){i.fn[e]=function(o){if(t.prototype[o]){var a=Array.prototype.slice.call(arguments,1);if("get"===o.slice(0,3)){var r=this.first()[0][n];return r[o].apply(r,a)}return this.each((function(){var t=this[n];t[o].apply(t,a)}))}if("object"==typeof o||!o)return t.init(this,arguments[0]),this;i.error("Method "+o+" does not exist on jQuery."+e)}},M.AutoInit=function(t){var e=t||document.body,n={Autocomplete:e.querySelectorAll(".autocomplete:not(.no-autoinit)"),Carousel:e.querySelectorAll(".carousel:not(.no-autoinit)"),Chips:e.querySelectorAll(".chips:not(.no-autoinit)"),Collapsible:e.querySelectorAll(".collapsible:not(.no-autoinit)"),Datepicker:e.querySelectorAll(".datepicker:not(.no-autoinit)"),Dropdown:e.querySelectorAll(".dropdown-trigger:not(.no-autoinit)"),Materialbox:e.querySelectorAll(".materialboxed:not(.no-autoinit)"),Modal:e.querySelectorAll(".modal:not(.no-autoinit)"),Parallax:e.querySelectorAll(".parallax:not(.no-autoinit)"),Pushpin:e.querySelectorAll(".pushpin:not(.no-autoinit)"),ScrollSpy:e.querySelectorAll(".scrollspy:not(.no-autoinit)"),FormSelect:e.querySelectorAll("select:not(.no-autoinit)"),Sidenav:e.querySelectorAll(".sidenav:not(.no-autoinit)"),Tabs:e.querySelectorAll(".tabs:not(.no-autoinit)"),TapTarget:e.querySelectorAll(".tap-target:not(.no-autoinit)"),Timepicker:e.querySelectorAll(".timepicker:not(.no-autoinit)"),Tooltip:e.querySelectorAll(".tooltipped:not(.no-autoinit)"),FloatingActionButton:e.querySelectorAll(".fixed-action-btn:not(.no-autoinit)")};for(var i in n){M[i].init(n[i])}},M.objectSelectorString=function(t){return((t.prop("tagName")||"")+(t.attr("id")||"")+(t.attr("class")||"")).replace(/\s/g,"")},M.guid=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}}(),M.escapeHash=function(t){return t.replace(/(:|\.|\[|\]|,|=|\/)/g,"\\$1")},M.elementOrParentIsFixed=function(t){var e=o(t),n=e.add(e.parents()),i=!1;return n.each((function(){if("fixed"===o(this).css("position"))return i=!0,!1})),i},M.checkWithinContainer=function(t,e,n){var i={top:!1,right:!1,bottom:!1,left:!1},o=t.getBoundingClientRect(),a=t===document.body?Math.max(o.bottom,window.innerHeight):o.bottom,r=t.scrollLeft,s=t.scrollTop,l=e.left-r,d=e.top-s;return(l<o.left+n||l<n)&&(i.left=!0),(l+e.width>o.right-n||l+e.width>window.innerWidth-n)&&(i.right=!0),(d<o.top+n||d<n)&&(i.top=!0),(d+e.height>a-n||d+e.height>window.innerHeight-n)&&(i.bottom=!0),i},M.checkPossibleAlignments=function(t,e,n,i){var o={top:!0,right:!0,bottom:!0,left:!0,spaceOnTop:null,spaceOnRight:null,spaceOnBottom:null,spaceOnLeft:null},a="visible"===getComputedStyle(e).overflow,r=e.getBoundingClientRect(),s=Math.min(r.height,window.innerHeight),l=Math.min(r.width,window.innerWidth),d=t.getBoundingClientRect(),c=e.scrollLeft,u=e.scrollTop,p=n.left-c,h=n.top-u,f=n.top+d.height-u;return o.spaceOnRight=a?window.innerWidth-(d.left+n.width):l-(p+n.width),o.spaceOnRight<0&&(o.left=!1),o.spaceOnLeft=a?d.right-n.width:p-n.width+d.width,o.spaceOnLeft<0&&(o.right=!1),o.spaceOnBottom=a?window.innerHeight-(d.top+n.height+i):s-(h+n.height+i),o.spaceOnBottom<0&&(o.top=!1),o.spaceOnTop=a?d.bottom-(n.height+i):f-(n.height-i),o.spaceOnTop<0&&(o.bottom=!1),o},M.getOverflowParent=function(t){return null==t?null:t===document.body||"visible"!==getComputedStyle(t).overflow?t:M.getOverflowParent(t.parentElement)},M.getIdFromTrigger=function(t){var e=t.getAttribute("data-target");return e||(e=(e=t.getAttribute("href"))?e.slice(1):""),e},M.getDocumentScrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},M.getDocumentScrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0}; /** * Get time in ms * @license https://raw.github.com/jashkenas/underscore/master/LICENSE * @type {function} * @return {number} */ var h=Date.now||function(){return(new Date).getTime()}; /** * Returns a function, that, when invoked, will only be triggered at most once * during a given window of time. Normally, the throttled function will run * as much as it can, without ever going more than once per `wait` duration; * but if you'd like to disable the execution on the leading edge, pass
* @param {function} func * @param {number} wait * @param {Object=} options * @returns {Function} */M.throttle=function(t,e,n){var i=void 0,o=void 0,a=void 0,r=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:h(),r=null,a=t.apply(i,o),i=o=null};return function(){var d=h();s||!1!==n.leading||(s=d);var c=e-(d-s);return i=this,o=arguments,c<=0?(clearTimeout(r),r=null,s=d,a=t.apply(i,o),i=o=null):r||!1===n.trailing||(r=setTimeout(l,c)),a}};var f={scope:{}};f.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},f.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:void 0!==a&&null!=a?a:t},f.global=f.getGlobal(this),f.SYMBOL_PREFIX="jscomp_symbol_",f.initSymbol=function(){f.initSymbol=function(){},f.global.Symbol||(f.global.Symbol=f.Symbol)},f.symbolCounter_=0,f.Symbol=function(t){return f.SYMBOL_PREFIX+(t||"")+f.symbolCounter_++},f.initSymbolIterator=function(){f.initSymbol();var t=f.global.Symbol.iterator;t||(t=f.global.Symbol.iterator=f.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&f.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return f.arrayIterator(this)}}),f.initSymbolIterator=function(){}},f.arrayIterator=function(t){var e=0;return f.iteratorPrototype((function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}))},f.iteratorPrototype=function(t){return f.initSymbolIterator(),(t={next:t})[f.global.Symbol.iterator]=function(){return this},t},f.array=f.array||{},f.iteratorFromArray=function(t,e){f.initSymbolIterator(),t instanceof String&&(t+="");var n=0,i={next:function(){if(n<t.length){var o=n++;return{value:e(o,t[o]),done:!1}}return i.next=function(){return{done:!0,value:void 0}},i.next()}};return i[Symbol.iterator]=function(){return i},i},f.polyfill=function(t,e,n,i){if(e){for(n=f.global,t=t.split("."),i=0;i<t.length-1;i++){var o=t[i];o in n||(n[o]={}),n=n[o]}(e=e(i=n[t=t[t.length-1]]))!=i&&null!=e&&f.defineProperty(n,t,{configurable:!0,writable:!0,value:e})}},f.polyfill("Array.prototype.keys",(function(t){return t||function(){return f.iteratorFromArray(this,(function(t){return t}))}}),"es6-impl","es3");var m=this;M.anime=function(){function t(t){if(!D.col(t))try{return document.querySelectorAll(t)}catch(t){}}function e(t,e){for(var n=t.length,i=2<=arguments.length?arguments[1]:void 0,o=[],a=0;a<n;a++)if(a in t){var r=t[a];e.call(i,r,a,t)&&o.push(r)}return o}function n(t){return t.reduce((function(t,e){return t.concat(D.arr(e)?n(e):e)}),[])}function i(e){return D.arr(e)?e:(D.str(e)&&(e=t(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function o(t,e){return t.some((function(t){return t===e}))}function a(t){var e,n={};for(e in t)n[e]=t[e];return n}function r(t,e){var n,i=a(t);for(n in t)i[n]=e.hasOwnProperty(n)?e[n]:t[n];return i}function s(t,e){var n,i=a(t);for(n in e)i[n]=D.und(t[n])?e[n]:t[n];return i}function l(t){if(t=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t))return t[2]}function d(t,e){return D.fnc(t)?t(e.target,e.id,e.total):t}function c(t,e){if(e in t.style)return getComputedStyle(t).getPropertyValue(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function u(t,e){return D.dom(t)&&o(O,e)?"transform":D.dom(t)&&(t.getAttribute(e)||D.svg(t)&&t[e])?"attribute":D.dom(t)&&"transform"!==e&&c(t,e)?"css":null!=t[e]?"object":void 0}function p(t,n){switch(u(t,n)){case"transform":return function(t,n){var i=function(t){return-1<t.indexOf("translate")||"perspective"===t?"px":-1<t.indexOf("rotate")||-1<t.indexOf("skew")?"deg":void 0}(n);if(i=-1<n.indexOf("scale")?1:0+i,!(t=t.style.transform))return i;for(var o=[],a=[],r=[],s=/(\w+)\((.+?)\)/g;o=s.exec(t);)a.push(o[1]),r.push(o[2]);return(t=e(r,(function(t,e){return a[e]===n}))).length?t[0]:i}(t,n);case"css":return c(t,n);case"attribute":return t.getAttribute(n)}return t[n]||0}function h(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var i=l(t)||0;switch(e=parseFloat(e),t=parseFloat(t.replace(n[0],"")),n[0][0]){case"+":return e+t+i;case"-":return e-t+i;case"*":return e*t+i}}function f(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function g(t){t=t.points;for(var e,n=0,i=0;i<t.numberOfItems;i++){var o=t.getItem(i);0<i&&(n+=f(e,o)),e=o}return n}function b(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*t.getAttribute("r");case"rect":return 2*t.getAttribute("width")+2*t.getAttribute("height");case"line":return f({x:t.getAttribute("x1"),y:t.getAttribute("y1")},{x:t.getAttribute("x2"),y:t.getAttribute("y2")});case"polyline":return g(t);case"polygon":var e=t.points;return g(t)+f(e.getItem(e.numberOfItems-1),e.getItem(0))}}function v(t,e){function n(n){return n=void 0===n?0:n,t.el.getPointAtLength(1<=e+n?e+n:0)}var i=n(),o=n(-1),a=n(1);switch(t.property){case"x":return i.x;case"y":return i.y;case"angle":return 180*Math.atan2(a.y-o.y,a.x-o.x)/Math.PI}}function y(t,e){var n,i=/-?\d*\.?\d+/g;if(n=D.pth(t)?t.totalLength:t,D.col(n))if(D.rgb(n)){var o=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=o?"rgba("+o[1]+",1)":n}else n=D.hex(n)?function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,i){return e+e+n+n+i+i}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+(t=parseInt(e[1],16))+","+parseInt(e[2],16)+","+(e=parseInt(e[3],16))+",1)"}(n):D.hsl(n)?function(t){function e(t,e,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?t+6*(e-t)*n:.5>n?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t);t=parseInt(n[1])/360;var i=parseInt(n[2])/100,o=parseInt(n[3])/100;if(n=n[4]||1,0==i)o=i=t=o;else{var a=.5>o?o*(1+i):o+i-o*i,r=2*o-a;o=e(r,a,t+1/3),i=e(r,a,t),t=e(r,a,t-1/3)}return"rgba("+255*o+","+255*i+","+255*t+","+n+")"}(n):void 0;else o=(o=l(n))?n.substr(0,n.length-o.length):n,n=e&&!/\s/g.test(n)?o+e:o;return{original:n+="",numbers:n.match(i)?n.match(i).map(Number):[0],strings:D.str(t)||e?n.split(i):[]}}function x(t){return e(t=t?n(D.arr(t)?t.map(i):i(t)):[],(function(t,e,n){return n.indexOf(t)===e}))}function w(t,e){var n=a(e);if(D.arr(t)){var o=t.length;2!==o||D.obj(t[0])?D.fnc(e.duration)||(n.duration=e.duration/o):t={value:t}}return i(t).map((function(t,n){return n=n?0:e.delay,t=D.obj(t)&&!D.pth(t)?t:{value:t},D.und(t.delay)&&(t.delay=n),t})).map((function(t){return s(t,n)}))}function k(t,e){var n;return t.tweens.map((function(i){var o=(i=function(t,e){var n,i={};for(n in t){var o=d(t[n],e);D.arr(o)&&1===(o=o.map((function(t){return d(t,e)}))).length&&(o=o[0]),i[n]=o}return i.duration=parseFloat(i.duration),i.delay=parseFloat(i.delay),i}(i,e)).value,a=p(e.target,t.name),r=n?n.to.original:a,s=(r=D.arr(o)?o[0]:r,h(D.arr(o)?o[1]:o,r));return a=l(s)||l(r)||l(a),i.from=y(r,a),i.to=y(s,a),i.start=n?n.end:t.offset,i.end=i.start+i.delay+i.duration,i.easing=function(t){return D.arr(t)?B.apply(this,t):S[t]}(i.easing),i.elasticity=(1e3-Math.min(Math.max(i.elasticity,1),999))/1e3,i.isPath=D.pth(o),i.isColor=D.col(i.from.original),i.isColor&&(i.round=1),n=i}))}function _(t,e,n,i){var o="delay"===t;return e.length?(o?Math.min:Math.max).apply(Math,e.map((function(e){return e[t]}))):o?i.delay:n.offset+i.delay+i.duration}function C(t){var i,o=r(T,t),a=r(L,t),l=function(t){var e=x(t);return e.map((function(t,n){return{target:t,id:n,total:e.length}}))}(t.targets),d=[],c=s(o,a);for(i in t)c.hasOwnProperty(i)||"targets"===i||d.push({name:i,offset:c.offset,tweens:w(t[i],a)});return t=function(t,i){return e(n(t.map((function(t){return i.map((function(e){var n=u(t.target,e.name);if(n){var i=k(e,t);e={type:n,property:e.name,animatable:t,tweens:i,duration:i[i.length-1].end,delay:i[0].delay}}else e=void 0;return e}))}))),(function(t){return!D.und(t)}))}(l,d),s(o,{children:[],animatables:l,animations:t,duration:_("duration",t,o,a),delay:_("delay",t,o,a)})}function E(t){function n(){return window.Promise&&new Promise((function(t){return p=t}))}function i(t){return f.reversed?f.duration-t:t}function o(t){for(var n=0,i={},o=f.animations,a=o.length;n<a;){var r=o[n],s=r.animatable,l=(d=r.tweens)[h=d.length-1];h&&(l=e(d,(function(e){return t<e.end}))[0]||l);for(var d=Math.min(Math.max(t-l.start-l.delay,0),l.duration)/l.duration,u=isNaN(d)?1:l.easing(d,l.elasticity),p=(d=l.to.strings,l.round),h=[],m=void 0,g=(m=l.to.numbers.length,0);g<m;g++){var b=void 0,y=(b=l.to.numbers[g],l.from.numbers[g]);b=l.isPath?v(l.value,u*b):y+u*(b-y),p&&(l.isColor&&2<g||(b=Math.round(b*p)/p)),h.push(b)}if(l=d.length)for(m=d[0],u=0;u<l;u++)p=d[u+1],g=h[u],isNaN(g)||(m=p?m+(g+p):m+(g+" "));else m=h[0];z[r.type](s.target,r.property,m,i,s.id),r.currentValue=m,n++}if(n=Object.keys(i).length)for(o=0;o<n;o++)M||(M=c(document.body,"transform")?"transform":"-webkit-transform"),f.animatables[o].target.style[M]=i[o].join(" ");f.currentTime=t,f.progress=t/f.duration*100}function a(t){f[t]&&f[t](f)}function r(){f.remaining&&!0!==f.remaining&&f.remaining--}function s(t){var e=f.duration,s=f.offset,c=s+f.delay,m=f.currentTime,g=f.reversed,b=i(t);if(f.children.length){var v=f.children,y=v.length;if(b>=f.currentTime)for(var x=0;x<y;x++)v[x].seek(b);else for(;y--;)v[y].seek(b)}(b>=c||!e)&&(f.began||(f.began=!0,a("begin")),a("run")),b>s&&b<e?o(b):(b<=s&&0!==m&&(o(0),g&&r()),(b>=e&&m!==e||!e)&&(o(e),g||r())),a("update"),t>=e&&(f.remaining?(d=l,"alternate"===f.direction&&(f.reversed=!f.reversed)):(f.pause(),f.completed||(f.completed=!0,a("complete"),"Promise"in window&&(p(),h=n()))),u=0)}t=void 0===t?{}:t;var l,d,u=0,p=null,h=n(),f=C(t);return f.reset=function(){var t=f.direction,e=f.loop;for(f.currentTime=0,f.progress=0,f.paused=!0,f.began=!1,f.completed=!1,f.reversed="reverse"===t,f.remaining="alternate"===t&&1===e?2:e,o(0),t=f.children.length;t--;)f.children[t].reset()},f.tick=function(t){l=t,d||(d=l),s((u+l-d)*E.speed)},f.seek=function(t){s(i(t))},f.pause=function(){var t=A.indexOf(f);-1<t&&A.splice(t,1),f.paused=!0},f.play=function(){f.paused&&(f.paused=!1,d=0,u=i(f.currentTime),A.push(f),$||I())},f.reverse=function(){f.reversed=!f.reversed,d=0,u=i(f.currentTime)},f.restart=function(){f.pause(),f.reset(),f.play()},f.finished=h,f.reset(),f.autoplay&&f.play(),f}var M,T={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},L={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},O="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),D={arr:function(t){return Array.isArray(t)},obj:function(t){return-1<Object.prototype.toString.call(t).indexOf("Object")},pth:function(t){return D.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},dom:function(t){return t.nodeType||D.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return D.hex(t)||D.rgb(t)||D.hsl(t)}},B=function(){function t(t,e,n){return(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t}return function(e,n,i,o){if(0<=e&&1>=e&&0<=i&&1>=i){var a=new Float32Array(11);if(e!==n||i!==o)for(var r=0;11>r;++r)a[r]=t(.1*r,e,i);return function(r){if(e===n&&i===o)return r;if(0===r)return 0;if(1===r)return 1;for(var s=0,l=1;10!==l&&a[l]<=r;++l)s+=.1;--l,l=s+(r-a[l])/(a[l+1]-a[l])*.1;var d=3*(1-3*i+3*e)*l*l+2*(3*i-6*e)*l+3*e;if(.001<=d){for(s=0;4>s&&0!=(d=3*(1-3*i+3*e)*l*l+2*(3*i-6*e)*l+3*e);++s){var c=t(l,e,i)-r;l-=c/d}r=l}else if(0===d)r=l;else{l=s,s+=.1;var u=0;do{0<(d=t(c=l+(s-l)/2,e,i)-r)?s=c:l=c}while(1e-7<Math.abs(d)&&10>++u);r=c}return t(r,n,o)}}}}(),S=function(){function t(t,e){return 0===t||1===t?t:-Math.pow(2,10*(t-1))*Math.sin(2*(t-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var e,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),i={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],t],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(e,n){return 1-t(1-e,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(e,n){return.5>e?t(2*e,n)/2:1-t(-2*e+2,n)/2}]},o={linear:B(.25,.25,.75,.75)},a={};for(e in i)a.type=e,i[a.type].forEach(function(t){return function(e,i){o["ease"+t.type+n[i]]=D.fnc(e)?e:B.apply(m,e)}}(a)),a={type:a.type};return o}(),z={css:function(t,e,n){return t.style[e]=n},attribute:function(t,e,n){return t.setAttribute(e,n)},object:function(t,e,n){return t[e]=n},transform:function(t,e,n,i,o){i[o]||(i[o]=[]),i[o].push(e+"("+n+")")}},A=[],$=0,I=function(){function t(){$=requestAnimationFrame(e)}function e(e){var n=A.length;if(n){for(var i=0;i<n;)A[i]&&A[i].tick(e),i++;t()}else cancelAnimationFrame($),$=0}return t}();return E.version="2.2.0",E.speed=1,E.running=A,E.remove=function(t){t=x(t);for(var e=A.length;e--;)for(var n=A[e],i=n.animations,a=i.length;a--;)o(t,i[a].animatable.target)&&(i.splice(a,1),i.length||n.pause())},E.getValue=p,E.path=function(e,n){var i=D.str(e)?t(e)[0]:e,o=n||100;return function(t){return{el:i,property:t,totalLength:b(i)*(o/100)}}},E.setDashoffset=function(t){var e=b(t);return t.setAttribute("stroke-dasharray",e),e},E.bezier=B,E.easings=S,E.timeline=function(t){var e=E(t);return e.pause(),e.duration=0,e.add=function(n){return e.children.forEach((function(t){t.began=!0,t.completed=!0})),i(n).forEach((function(n){var i=s(n,r(L,t||{}));i.targets=i.targets||t.targets,n=e.duration;var o=i.offset;i.autoplay=!1,i.direction=e.direction,i.offset=D.und(o)?n:h(o,n),e.began=!0,e.completed=!0,e.seek(i.offset),(i=E(i)).began=!0,i.completed=!0,i.duration>n&&(e.duration=i.duration),e.children.push(i)})),e.seek(0),e.reset(),e.autoplay&&e.restart(),e},e},E.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},E}(),function(t,e){"use strict";var n={accordion:!0,onOpenStart:void 0,onOpenEnd:void 0,onCloseStart:void 0,onCloseEnd:void 0,inDuration:300,outDuration:300},i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));i.el.M_Collapsible=i,i.options=t.extend({},o.defaults,n),i.$headers=i.$el.children("li").children(".collapsible-header"),i.$headers.attr("tabindex",0),i._setupEventHandlers();var a=i.$el.children("li.active").children(".collapsible-body");return i.options.accordion?a.first().css("display","block"):a.css("display","block"),i}return c(o,i),l(o,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Collapsible=void 0}},{key:"_setupEventHandlers",value:function(){var t=this;this._handleCollapsibleClickBound=this._handleCollapsibleClick.bind(this),this._handleCollapsibleKeydownBound=this._handleCollapsibleKeydown.bind(this),this.el.addEventListener("click",this._handleCollapsibleClickBound),this.$headers.each((function(e){e.addEventListener("keydown",t._handleCollapsibleKeydownBound)}))}},{key:"_removeEventHandlers",value:function(){var t=this;this.el.removeEventListener("click",this._handleCollapsibleClickBound),this.$headers.each((function(e){e.removeEventListener("keydown",t._handleCollapsibleKeydownBound)}))}},{key:"_handleCollapsibleClick",value:function(e){var n=t(e.target).closest(".collapsible-header");if(e.target&&n.length){var i=n.closest(".collapsible");if(i[0]===this.el){var o=n.closest("li"),a=i.children("li"),r=o[0].classList.contains("active"),s=a.index(o);r?this.close(s):this.open(s)}}}},{key:"_handleCollapsibleKeydown",value:function(t){13===t.keyCode&&this._handleCollapsibleClickBound(t)}},{key:"_animateIn",value:function(t){var n=this,i=this.$el.children("li").eq(t);if(i.length){var o=i.children(".collapsible-body");e.remove(o[0]),o.css({display:"block",overflow:"hidden",height:0,paddingTop:"",paddingBottom:""});var a=o.css("padding-top"),r=o.css("padding-bottom"),s=o[0].scrollHeight;o.css({paddingTop:0,paddingBottom:0}),e({targets:o[0],height:s,paddingTop:a,paddingBottom:r,duration:this.options.inDuration,easing:"easeInOutCubic",complete:function(t){o.css({overflow:"",paddingTop:"",paddingBottom:"",height:""}),"function"==typeof n.options.onOpenEnd&&n.options.onOpenEnd.call(n,i[0])}})}}},{key:"_animateOut",value:function(t){var n=this,i=this.$el.children("li").eq(t);if(i.length){var o=i.children(".collapsible-body");e.remove(o[0]),o.css("overflow","hidden"),e({targets:o[0],height:0,paddingTop:0,paddingBottom:0,duration:this.options.outDuration,easing:"easeInOutCubic",complete:function(){o.css({height:"",overflow:"",padding:"",display:""}),"function"==typeof n.options.onCloseEnd&&n.options.onCloseEnd.call(n,i[0])}})}}},{key:"open",value:function(e){var n=this,i=this.$el.children("li").eq(e);if(i.length&&!i[0].classList.contains("active")){if("function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,i[0]),this.options.accordion){var o=this.$el.children("li");this.$el.children("li.active").each((function(e){var i=o.index(t(e));n.close(i)}))}i[0].classList.add("active"),this._animateIn(e)}}},{key:"close",value:function(t){var e=this.$el.children("li").eq(t);e.length&&e[0].classList.contains("active")&&("function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,e[0]),e[0].classList.remove("active"),this._animateOut(t))}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Collapsible}},{key:"defaults",get:function(){return n}}]),o}(p);M.Collapsible=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"collapsible","M_Collapsible")}(cash,M.anime),function(t,e){"use strict";var n={alignment:"left",autoFocus:!0,constrainWidth:!0,container:null,coverTrigger:!0,closeOnClick:!0,hover:!1,inDuration:150,outDuration:250,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,onItemClick:null},i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_Dropdown=i,o._dropdowns.push(i),i.id=M.getIdFromTrigger(e),i.dropdownEl=document.getElementById(i.id),i.$dropdownEl=t(i.dropdownEl),i.options=t.extend({},o.defaults,n),i.isOpen=!1,i.isScrollable=!1,i.isTouchMoving=!1,i.focusedIndex=-1,i.filterQuery=[],i.options.container?t(i.options.container).append(i.dropdownEl):i.$el.after(i.dropdownEl),i._makeDropdownFocusable(),i._resetFilterQueryBound=i._resetFilterQuery.bind(i),i._handleDocumentClickBound=i._handleDocumentClick.bind(i),i._handleDocumentTouchmoveBound=i._handleDocumentTouchmove.bind(i),i._handleDropdownClickBound=i._handleDropdownClick.bind(i),i._handleDropdownKeydownBound=i._handleDropdownKeydown.bind(i),i._handleTriggerKeydownBound=i._handleTriggerKeydown.bind(i),i._setupEventHandlers(),i}return c(o,i),l(o,[{key:"destroy",value:function(){this._resetDropdownStyles(),this._removeEventHandlers(),o._dropdowns.splice(o._dropdowns.indexOf(this),1),this.el.M_Dropdown=void 0}},{key:"_setupEventHandlers",value:function(){this.el.addEventListener("keydown",this._handleTriggerKeydownBound),this.dropdownEl.addEventListener("click",this._handleDropdownClickBound),this.options.hover?(this._handleMouseEnterBound=this._handleMouseEnter.bind(this),this.el.addEventListener("mouseenter",this._handleMouseEnterBound),this._handleMouseLeaveBound=this._handleMouseLeave.bind(this),this.el.addEventListener("mouseleave",this._handleMouseLeaveBound),this.dropdownEl.addEventListener("mouseleave",this._handleMouseLeaveBound)):(this._handleClickBound=this._handleClick.bind(this),this.el.addEventListener("click",this._handleClickBound))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("keydown",this._handleTriggerKeydownBound),this.dropdownEl.removeEventListener("click",this._handleDropdownClickBound),this.options.hover?(this.el.removeEventListener("mouseenter",this._handleMouseEnterBound),this.el.removeEventListener("mouseleave",this._handleMouseLeaveBound),this.dropdownEl.removeEventListener("mouseleave",this._handleMouseLeaveBound)):this.el.removeEventListener("click",this._handleClickBound)}},{key:"_setupTemporaryEventHandlers",value:function(){document.body.addEventListener("click",this._handleDocumentClickBound,!0),document.body.addEventListener("touchend",this._handleDocumentClickBound),document.body.addEventListener("touchmove",this._handleDocumentTouchmoveBound),this.dropdownEl.addEventListener("keydown",this._handleDropdownKeydownBound)}},{key:"_removeTemporaryEventHandlers",value:function(){document.body.removeEventListener("click",this._handleDocumentClickBound,!0),document.body.removeEventListener("touchend",this._handleDocumentClickBound),document.body.removeEventListener("touchmove",this._handleDocumentTouchmoveBound),this.dropdownEl.removeEventListener("keydown",this._handleDropdownKeydownBound)}},{key:"_handleClick",value:function(t){t.preventDefault(),this.open()}},{key:"_handleMouseEnter",value:function(){this.open()}},{key:"_handleMouseLeave",value:function(e){var n=e.toElement||e.relatedTarget,i=!!t(n).closest(".dropdown-content").length,o=!1,a=t(n).closest(".dropdown-trigger");a.length&&a[0].M_Dropdown&&a[0].M_Dropdown.isOpen&&(o=!0),o||i||this.close()}},{key:"_handleDocumentClick",value:function(e){var n=this,i=t(e.target);this.options.closeOnClick&&i.closest(".dropdown-content").length&&!this.isTouchMoving?setTimeout((function(){n.close()}),0):!i.closest(".dropdown-trigger").length&&i.closest(".dropdown-content").length||setTimeout((function(){n.close()}),0),this.isTouchMoving=!1}},{key:"_handleTriggerKeydown",value:function(t){t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ENTER||this.isOpen||(t.preventDefault(),this.open())}},{key:"_handleDocumentTouchmove",value:function(e){t(e.target).closest(".dropdown-content").length&&(this.isTouchMoving=!0)}},{key:"_handleDropdownClick",value:function(e){if("function"==typeof this.options.onItemClick){var n=t(e.target).closest("li")[0];this.options.onItemClick.call(this,n)}}},{key:"_handleDropdownKeydown",value:function(e){if(e.which===M.keys.TAB)e.preventDefault(),this.close();else if(e.which!==M.keys.ARROW_DOWN&&e.which!==M.keys.ARROW_UP||!this.isOpen)if(e.which===M.keys.ENTER&&this.isOpen){var n=this.dropdownEl.children[this.focusedIndex],i=t(n).find("a, button").first();i.length?i[0].click():n&&n.click()}else e.which===M.keys.ESC&&this.isOpen&&(e.preventDefault(),this.close());else{e.preventDefault();var o=e.which===M.keys.ARROW_DOWN?1:-1,a=this.focusedIndex,r=!1;do{if(a+=o,this.dropdownEl.children[a]&&-1!==this.dropdownEl.children[a].tabIndex){r=!0;break}}while(a<this.dropdownEl.children.length&&a>=0);r&&(this.focusedIndex=a,this._focusFocusedItem())}var s=String.fromCharCode(e.which).toLowerCase();if(s&&-1===[9,13,27,38,40].indexOf(e.which)){this.filterQuery.push(s);var l=this.filterQuery.join(""),d=t(this.dropdownEl).find("li").filter((function(e){return 0===t(e).text().toLowerCase().indexOf(l)}))[0];d&&(this.focusedIndex=t(d).index(),this._focusFocusedItem())}this.filterTimeout=setTimeout(this._resetFilterQueryBound,1e3)}},{key:"_resetFilterQuery",value:function(){this.filterQuery=[]}},{key:"_resetDropdownStyles",value:function(){this.$dropdownEl.css({display:"",width:"",height:"",left:"",top:"","transform-origin":"",transform:"",opacity:""})}},{key:"_makeDropdownFocusable",value:function(){this.dropdownEl.tabIndex=0,t(this.dropdownEl).children().each((function(t){t.getAttribute("tabindex")||t.setAttribute("tabindex",0)}))}},{key:"_focusFocusedItem",value:function(){this.focusedIndex>=0&&this.focusedIndex<this.dropdownEl.children.length&&this.options.autoFocus&&this.dropdownEl.children[this.focusedIndex].focus()}},{key:"_getDropdownPosition",value:function(){this.el.offsetParent.getBoundingClientRect();var t=this.el.getBoundingClientRect(),e=this.dropdownEl.getBoundingClientRect(),n=e.height,i=e.width,o=t.left-e.left,a=t.top-e.top,r={left:o,top:a,height:n,width:i},s=this.dropdownEl.offsetParent?this.dropdownEl.offsetParent:this.dropdownEl.parentNode,l=M.checkPossibleAlignments(this.el,s,r,this.options.coverTrigger?0:t.height),d="top",c=this.options.alignment;if(a+=this.options.coverTrigger?0:t.height,this.isScrollable=!1,l.top||(l.bottom?d="bottom":(this.isScrollable=!0,l.spaceOnTop>l.spaceOnBottom?(d="bottom",n+=l.spaceOnTop,a-=l.spaceOnTop):n+=l.spaceOnBottom)),!l[c]){var u="left"===c?"right":"left";l[u]?c=u:l.spaceOnLeft>l.spaceOnRight?(c="right",i+=l.spaceOnLeft,o-=l.spaceOnLeft):(c="left",i+=l.spaceOnRight)}return"bottom"===d&&(a=a-e.height+(this.options.coverTrigger?t.height:0)),"right"===c&&(o=o-e.width+t.width),{x:o,y:a,verticalAlignment:d,horizontalAlignment:c,height:n,width:i}}},{key:"_animateIn",value:function(){var t=this;e.remove(this.dropdownEl),e({targets:this.dropdownEl,opacity:{value:[0,1],easing:"easeOutQuad"},scaleX:[.3,1],scaleY:[.3,1],duration:this.options.inDuration,easing:"easeOutQuint",complete:function(e){t.options.autoFocus&&t.dropdownEl.focus(),"function"==typeof t.options.onOpenEnd&&t.options.onOpenEnd.call(t,t.el)}})}},{key:"_animateOut",value:function(){var t=this;e.remove(this.dropdownEl),e({targets:this.dropdownEl,opacity:{value:0,easing:"easeOutQuint"},scaleX:.3,scaleY:.3,duration:this.options.outDuration,easing:"easeOutQuint",complete:function(e){t._resetDropdownStyles(),"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t,t.el)}})}},{key:"_placeDropdown",value:function(){var t=this.options.constrainWidth?this.el.getBoundingClientRect().width:this.dropdownEl.getBoundingClientRect().width;this.dropdownEl.style.width=t+"px";var e=this._getDropdownPosition();this.dropdownEl.style.left=e.x+"px",this.dropdownEl.style.top=e.y+"px",this.dropdownEl.style.height=e.height+"px",this.dropdownEl.style.width=e.width+"px",this.dropdownEl.style.transformOrigin=("left"===e.horizontalAlignment?"0":"100%")+" "+("top"===e.verticalAlignment?"0":"100%")}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this._resetDropdownStyles(),this.dropdownEl.style.display="block",this._placeDropdown(),this._animateIn(),this._setupTemporaryEventHandlers())}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.focusedIndex=-1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this._animateOut(),this._removeTemporaryEventHandlers(),this.options.autoFocus&&this.el.focus())}},{key:"recalculateDimensions",value:function(){this.isOpen&&(this.$dropdownEl.css({width:"",height:"",left:"",top:"","transform-origin":""}),this._placeDropdown())}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Dropdown}},{key:"defaults",get:function(){return n}}]),o}(p);i._dropdowns=[],M.Dropdown=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"dropdown","M_Dropdown")}(cash,M.anime),function(t,e){"use strict";var n={opacity:.5,inDuration:250,outDuration:250,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,preventScrolling:!0,dismissible:!0,startingTop:"4%",endingTop:"10%"},i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_Modal=i,i.options=t.extend({},o.defaults,n),i.isOpen=!1,i.id=i.$el.attr("id"),i._openingTrigger=void 0,i.$overlay=t('<div class="modal-overlay"></div>'),i.el.tabIndex=0,i._nthModalOpened=0,o._count++,i._setupEventHandlers(),i}return c(o,i),l(o,[{key:"destroy",value:function(){o._count--,this._removeEventHandlers(),this.el.removeAttribute("style"),this.$overlay.remove(),this.el.M_Modal=void 0}},{key:"_setupEventHandlers",value:function(){this._handleOverlayClickBound=this._handleOverlayClick.bind(this),this._handleModalCloseClickBound=this._handleModalCloseClick.bind(this),1===o._count&&document.body.addEventListener("click",this._handleTriggerClick),this.$overlay[0].addEventListener("click",this._handleOverlayClickBound),this.el.addEventListener("click",this._handleModalCloseClickBound)}},{key:"_removeEventHandlers",value:function(){0===o._count&&document.body.removeEventListener("click",this._handleTriggerClick),this.$overlay[0].removeEventListener("click",this._handleOverlayClickBound),this.el.removeEventListener("click",this._handleModalCloseClickBound)}},{key:"_handleTriggerClick",value:function(e){var n=t(e.target).closest(".modal-trigger");if(n.length){var i=M.getIdFromTrigger(n[0]),o=document.getElementById(i).M_Modal;o&&o.open(n),e.preventDefault()}}},{key:"_handleOverlayClick",value:function(){this.options.dismissible&&this.close()}},{key:"_handleModalCloseClick",value:function(e){t(e.target).closest(".modal-close").length&&this.close()}},{key:"_handleKeydown",value:function(t){27===t.keyCode&&this.options.dismissible&&this.close()}},{key:"_handleFocus",value:function(t){this.el.contains(t.target)||this._nthModalOpened!==o._modalsOpen||this.el.focus()}},{key:"_animateIn",value:function(){var n=this;t.extend(this.el.style,{display:"block",opacity:0}),t.extend(this.$overlay[0].style,{display:"block",opacity:0}),e({targets:this.$overlay[0],opacity:this.options.opacity,duration:this.options.inDuration,easing:"easeOutQuad"});var i={targets:this.el,duration:this.options.inDuration,easing:"easeOutCubic",complete:function(){"function"==typeof n.options.onOpenEnd&&n.options.onOpenEnd.call(n,n.el,n._openingTrigger)}};this.el.classList.contains("bottom-sheet")?(t.extend(i,{bottom:0,opacity:1}),e(i)):(t.extend(i,{top:[this.options.startingTop,this.options.endingTop],opacity:1,scaleX:[.8,1],scaleY:[.8,1]}),e(i))}},{key:"_animateOut",value:function(){var n=this;e({targets:this.$overlay[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuart"});var i={targets:this.el,duration:this.options.outDuration,easing:"easeOutCubic",complete:function(){n.el.style.display="none",n.$overlay.remove(),"function"==typeof n.options.onCloseEnd&&n.options.onCloseEnd.call(n,n.el)}};this.el.classList.contains("bottom-sheet")?(t.extend(i,{bottom:"-100%",opacity:0}),e(i)):(t.extend(i,{top:[this.options.endingTop,this.options.startingTop],opacity:0,scaleX:.8,scaleY:.8}),e(i))}},{key:"open",value:function(t){if(!this.isOpen)return this.isOpen=!0,o._modalsOpen++,this._nthModalOpened=o._modalsOpen,this.$overlay[0].style.zIndex=1e3+2*o._modalsOpen,this.el.style.zIndex=1e3+2*o._modalsOpen+1,this._openingTrigger=t?t[0]:void 0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el,this._openingTrigger),this.options.preventScrolling&&(document.body.style.overflow="hidden"),this.el.classList.add("open"),this.el.insertAdjacentElement("afterend",this.$overlay[0]),this.options.dismissible&&(this._handleKeydownBound=this._handleKeydown.bind(this),this._handleFocusBound=this._handleFocus.bind(this),document.addEventListener("keydown",this._handleKeydownBound),document.addEventListener("focus",this._handleFocusBound,!0)),e.remove(this.el),e.remove(this.$overlay[0]),this._animateIn(),this.el.focus(),this}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,o._modalsOpen--,this._nthModalOpened=0,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this.el.classList.remove("open"),0===o._modalsOpen&&(document.body.style.overflow=""),this.options.dismissible&&(document.removeEventListener("keydown",this._handleKeydownBound),document.removeEventListener("focus",this._handleFocusBound,!0)),e.remove(this.el),e.remove(this.$overlay[0]),this._animateOut(),this}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Modal}},{key:"defaults",get:function(){return n}}]),o}(p);i._modalsOpen=0,i._count=0,M.Modal=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"modal","M_Modal")}(cash,M.anime),function(t,e){"use strict";var n={inDuration:275,outDuration:200,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null},i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_Materialbox=i,i.options=t.extend({},o.defaults,n),i.overlayActive=!1,i.doneAnimating=!0,i.placeholder=t("<div></div>").addClass("material-placeholder"),i.originalWidth=0,i.originalHeight=0,i.originInlineStyles=i.$el.attr("style"),i.caption=i.el.getAttribute("data-caption")||"",i.$el.before(i.placeholder),i.placeholder.append(i.$el),i._setupEventHandlers(),i}return c(o,i),l(o,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Materialbox=void 0,t(this.placeholder).after(this.el).remove(),this.$el.removeAttr("style")}},{key:"_setupEventHandlers",value:function(){this._handleMaterialboxClickBound=this._handleMaterialboxClick.bind(this),this.el.addEventListener("click",this._handleMaterialboxClickBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleMaterialboxClickBound)}},{key:"_handleMaterialboxClick",value:function(t){!1===this.doneAnimating||this.overlayActive&&this.doneAnimating?this.close():this.open()}},{key:"_handleWindowScroll",value:function(){this.overlayActive&&this.close()}},{key:"_handleWindowResize",value:function(){this.overlayActive&&this.close()}},{key:"_handleWindowEscape",value:function(t){27===t.keyCode&&this.doneAnimating&&this.overlayActive&&this.close()}},{key:"_makeAncestorsOverflowVisible",value:function(){this.ancestorsChanged=t();for(var e=this.placeholder[0].parentNode;null!==e&&!t(e).is(document);){var n=t(e);"visible"!==n.css("overflow")&&(n.css("overflow","visible"),void 0===this.ancestorsChanged?this.ancestorsChanged=n:this.ancestorsChanged=this.ancestorsChanged.add(n)),e=e.parentNode}}},{key:"_animateImageIn",value:function(){var t=this,n={targets:this.el,height:[this.originalHeight,this.newHeight],width:[this.originalWidth,this.newWidth],left:M.getDocumentScrollLeft()+this.windowWidth/2-this.placeholder.offset().left-this.newWidth/2,top:M.getDocumentScrollTop()+this.windowHeight/2-this.placeholder.offset().top-this.newHeight/2,duration:this.options.inDuration,easing:"easeOutQuad",complete:function(){t.doneAnimating=!0,"function"==typeof t.options.onOpenEnd&&t.options.onOpenEnd.call(t,t.el)}};this.maxWidth=this.$el.css("max-width"),this.maxHeight=this.$el.css("max-height"),"none"!==this.maxWidth&&(n.maxWidth=this.newWidth),"none"!==this.maxHeight&&(n.maxHeight=this.newHeight),e(n)}},{key:"_animateImageOut",value:function(){var t=this,n={targets:this.el,width:this.originalWidth,height:this.originalHeight,left:0,top:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t.placeholder.css({height:"",width:"",position:"",top:"",left:""}),t.attrWidth&&t.$el.attr("width",t.attrWidth),t.attrHeight&&t.$el.attr("height",t.attrHeight),t.$el.removeAttr("style"),t.originInlineStyles&&t.$el.attr("style",t.originInlineStyles),t.$el.removeClass("active"),t.doneAnimating=!0,t.ancestorsChanged.length&&t.ancestorsChanged.css("overflow",""),"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t,t.el)}};e(n)}},{key:"_updateVars",value:function(){this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight,this.caption=this.el.getAttribute("data-caption")||""}},{key:"open",value:function(){var n=this;this._updateVars(),this.originalWidth=this.el.getBoundingClientRect().width,this.originalHeight=this.el.getBoundingClientRect().height,this.doneAnimating=!1,this.$el.addClass("active"),this.overlayActive=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this.placeholder.css({width:this.placeholder[0].getBoundingClientRect().width+"px",height:this.placeholder[0].getBoundingClientRect().height+"px",position:"relative",top:0,left:0}),this._makeAncestorsOverflowVisible(),this.$el.css({position:"absolute","z-index":1e3,"will-change":"left, top, width, height"}),this.attrWidth=this.$el.attr("width"),this.attrHeight=this.$el.attr("height"),this.attrWidth&&(this.$el.css("width",this.attrWidth+"px"),this.$el.removeAttr("width")),this.attrHeight&&(this.$el.css("width",this.attrHeight+"px"),this.$el.removeAttr("height")),this.$overlay=t('<div id="materialbox-overlay"></div>').css({opacity:0}).one("click",(function(){n.doneAnimating&&n.close()})),this.$el.before(this.$overlay);var i=this.$overlay[0].getBoundingClientRect();this.$overlay.css({width:this.windowWidth+"px",height:this.windowHeight+"px",left:-1*i.left+"px",top:-1*i.top+"px"}),e.remove(this.el),e.remove(this.$overlay[0]),e({targets:this.$overlay[0],opacity:1,duration:this.options.inDuration,easing:"easeOutQuad"}),""!==this.caption&&(this.$photocaption&&e.remove(this.$photoCaption[0]),this.$photoCaption=t('<div class="materialbox-caption"></div>'),this.$photoCaption.text(this.caption),t("body").append(this.$photoCaption),this.$photoCaption.css({display:"inline"}),e({targets:this.$photoCaption[0],opacity:1,duration:this.options.inDuration,easing:"easeOutQuad"}));var o=0,a=this.originalWidth/this.windowWidth,r=this.originalHeight/this.windowHeight;this.newWidth=0,this.newHeight=0,a>r?(o=this.originalHeight/this.originalWidth,this.newWidth=.9*this.windowWidth,this.newHeight=.9*this.windowWidth*o):(o=this.originalWidth/this.originalHeight,this.newWidth=.9*this.windowHeight*o,this.newHeight=.9*this.windowHeight),this._animateImageIn(),this._handleWindowScrollBound=this._handleWindowScroll.bind(this),this._handleWindowResizeBound=this._handleWindowResize.bind(this),this._handleWindowEscapeBound=this._handleWindowEscape.bind(this),window.addEventListener("scroll",this._handleWindowScrollBound),window.addEventListener("resize",this._handleWindowResizeBound),window.addEventListener("keyup",this._handleWindowEscapeBound)}},{key:"close",value:function(){var t=this;this._updateVars(),this.doneAnimating=!1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),e.remove(this.el),e.remove(this.$overlay[0]),""!==this.caption&&e.remove(this.$photoCaption[0]),window.removeEventListener("scroll",this._handleWindowScrollBound),window.removeEventListener("resize",this._handleWindowResizeBound),window.removeEventListener("keyup",this._handleWindowEscapeBound),e({targets:this.$overlay[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t.overlayActive=!1,t.$overlay.remove()}}),this._animateImageOut(),""!==this.caption&&e({targets:this.$photoCaption[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t.$photoCaption.remove()}})}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Materialbox}},{key:"defaults",get:function(){return n}}]),o}(p);M.Materialbox=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"materialbox","M_Materialbox")}(cash,M.anime),function(t){"use strict";var e={responsiveThreshold:0},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.el.M_Parallax=o,o.options=t.extend({},i.defaults,n),o._enabled=window.innerWidth>o.options.responsiveThreshold,o.$img=o.$el.find("img").first(),o.$img.each((function(){this.complete&&t(this).trigger("load")})),o._updateParallax(),o._setupEventHandlers(),o._setupStyles(),i._parallaxes.push(o),o}return c(i,n),l(i,[{key:"destroy",value:function(){i._parallaxes.splice(i._parallaxes.indexOf(this),1),this.$img[0].style.transform="",this._removeEventHandlers(),this.$el[0].M_Parallax=void 0}},{key:"_setupEventHandlers",value:function(){this._handleImageLoadBound=this._handleImageLoad.bind(this),this.$img[0].addEventListener("load",this._handleImageLoadBound),0===i._parallaxes.length&&(i._handleScrollThrottled=M.throttle(i._handleScroll,5),window.addEventListener("scroll",i._handleScrollThrottled),i._handleWindowResizeThrottled=M.throttle(i._handleWindowResize,5),window.addEventListener("resize",i._handleWindowResizeThrottled))}},{key:"_removeEventHandlers",value:function(){this.$img[0].removeEventListener("load",this._handleImageLoadBound),0===i._parallaxes.length&&(window.removeEventListener("scroll",i._handleScrollThrottled),window.removeEventListener("resize",i._handleWindowResizeThrottled))}},{key:"_setupStyles",value:function(){this.$img[0].style.opacity=1}},{key:"_handleImageLoad",value:function(){this._updateParallax()}},{key:"_updateParallax",value:function(){var t=this.$el.height()>0?this.el.parentNode.offsetHeight:500,e=this.$img[0].offsetHeight-t,n=this.$el.offset().top+t,i=this.$el.offset().top,o=M.getDocumentScrollTop(),a=window.innerHeight,r=e*((o+a-i)/(t+a));this._enabled?n>o&&i<o+a&&(this.$img[0].style.transform="translate3D(-50%, "+r+"px, 0)"):this.$img[0].style.transform=""}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Parallax}},{key:"_handleScroll",value:function(){for(var t=0;t<i._parallaxes.length;t++){var e=i._parallaxes[t];e._updateParallax.call(e)}}},{key:"_handleWindowResize",value:function(){for(var t=0;t<i._parallaxes.length;t++){var e=i._parallaxes[t];e._enabled=window.innerWidth>e.options.responsiveThreshold}}},{key:"defaults",get:function(){return e}}]),i}(p);n._parallaxes=[],M.Parallax=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"parallax","M_Parallax")}(cash),function(t,e){"use strict";var n={duration:300,onShow:null,swipeable:!1,responsiveThreshold:1/0},i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_Tabs=i,i.options=t.extend({},o.defaults,n),i.$tabLinks=i.$el.children("li.tab").children("a"),i.index=0,i._setupActiveTabLink(),i.options.swipeable?i._setupSwipeableTabs():i._setupNormalTabs(),i._setTabsAndTabWidth(),i._createIndicator(),i._setupEventHandlers(),i}return c(o,i),l(o,[{key:"destroy",value:function(){this._removeEventHandlers(),this._indicator.parentNode.removeChild(this._indicator),this.options.swipeable?this._teardownSwipeableTabs():this._teardownNormalTabs(),this.$el[0].M_Tabs=void 0}},{key:"_setupEventHandlers",value:function(){this._handleWindowResizeBound=this._handleWindowResize.bind(this),window.addEventListener("resize",this._handleWindowResizeBound),this._handleTabClickBound=this._handleTabClick.bind(this),this.el.addEventListener("click",this._handleTabClickBound)}},{key:"_removeEventHandlers",value:function(){window.removeEventListener("resize",this._handleWindowResizeBound),this.el.removeEventListener("click",this._handleTabClickBound)}},{key:"_handleWindowResize",value:function(){this._setTabsAndTabWidth(),0!==this.tabWidth&&0!==this.tabsWidth&&(this._indicator.style.left=this._calcLeftPos(this.$activeTabLink)+"px",this._indicator.style.right=this._calcRightPos(this.$activeTabLink)+"px")}},{key:"_handleTabClick",value:function(e){var n=this,i=t(e.target).closest("li.tab"),o=t(e.target).closest("a");if(o.length&&o.parent().hasClass("tab"))if(i.hasClass("disabled"))e.preventDefault();else if(!o.attr("target")){this.$activeTabLink.removeClass("active");var a=this.$content;this.$activeTabLink=o,this.$content=t(M.escapeHash(o[0].hash)),this.$tabLinks=this.$el.children("li.tab").children("a"),this.$activeTabLink.addClass("active");var r=this.index;this.index=Math.max(this.$tabLinks.index(o),0),this.options.swipeable?this._tabsCarousel&&this._tabsCarousel.set(this.index,(function(){"function"==typeof n.options.onShow&&n.options.onShow.call(n,n.$content[0])})):this.$content.length&&(this.$content[0].style.display="block",this.$content.addClass("active"),"function"==typeof this.options.onShow&&this.options.onShow.call(this,this.$content[0]),a.length&&!a.is(this.$content)&&(a[0].style.display="none",a.removeClass("active"))),this._setTabsAndTabWidth(),this._animateIndicator(r),e.preventDefault()}}},{key:"_createIndicator",value:function(){var t=this,e=document.createElement("li");e.classList.add("indicator"),this.el.appendChild(e),this._indicator=e,setTimeout((function(){t._indicator.style.left=t._calcLeftPos(t.$activeTabLink)+"px",t._indicator.style.right=t._calcRightPos(t.$activeTabLink)+"px"}),0)}},{key:"_setupActiveTabLink",value:function(){this.$activeTabLink=t(this.$tabLinks.filter('[href="'+location.hash+'"]')),0===this.$activeTabLink.length&&(this.$activeTabLink=this.$el.children("li.tab").children("a.active").first()),0===this.$activeTabLink.length&&(this.$activeTabLink=this.$el.children("li.tab").children("a").first()),this.$tabLinks.removeClass("active"),this.$activeTabLink[0].classList.add("active"),this.index=Math.max(this.$tabLinks.index(this.$activeTabLink),0),this.$activeTabLink.length&&(this.$content=t(M.escapeHash(this.$activeTabLink[0].hash)),this.$content.addClass("active"))}},{key:"_setupSwipeableTabs",value:function(){var e=this;window.innerWidth>this.options.responsiveThreshold&&(this.options.swipeable=!1);var n=t();this.$tabLinks.each((function(e){var i=t(M.escapeHash(e.hash));i.addClass("carousel-item"),n=n.add(i)}));var i=t('<div class="tabs-content carousel carousel-slider"></div>');n.first().before(i),i.append(n),n[0].style.display="";var o=this.$activeTabLink.closest(".tab").index();this._tabsCarousel=M.Carousel.init(i[0],{fullWidth:!0,noWrap:!0,onCycleTo:function(n){var i=e.index;e.index=t(n).index(),e.$activeTabLink.removeClass("active"),e.$activeTabLink=e.$tabLinks.eq(e.index),e.$activeTabLink.addClass("active"),e._animateIndicator(i),"function"==typeof e.options.onShow&&e.options.onShow.call(e,e.$content[0])}}),this._tabsCarousel.set(o)}},{key:"_teardownSwipeableTabs",value:function(){var t=this._tabsCarousel.$el;this._tabsCarousel.destroy(),t.after(t.children()),t.remove()}},{key:"_setupNormalTabs",value:function(){this.$tabLinks.not(this.$activeTabLink).each((function(e){if(e.hash){var n=t(M.escapeHash(e.hash));n.length&&(n[0].style.display="none")}}))}},{key:"_teardownNormalTabs",value:function(){this.$tabLinks.each((function(e){if(e.hash){var n=t(M.escapeHash(e.hash));n.length&&(n[0].style.display="")}}))}},{key:"_setTabsAndTabWidth",value:function(){this.tabsWidth=this.$el.width(),this.tabWidth=Math.max(this.tabsWidth,this.el.scrollWidth)/this.$tabLinks.length}},{key:"_calcRightPos",value:function(t){return Math.ceil(this.tabsWidth-t.position().left-t[0].getBoundingClientRect().width)}},{key:"_calcLeftPos",value:function(t){return Math.floor(t.position().left)}},{key:"updateTabIndicator",value:function(){this._setTabsAndTabWidth(),this._animateIndicator(this.index)}},{key:"_animateIndicator",value:function(t){var n=0,i=0;this.index-t>=0?n=90:i=90;var o={targets:this._indicator,left:{value:this._calcLeftPos(this.$activeTabLink),delay:n},right:{value:this._calcRightPos(this.$activeTabLink),delay:i},duration:this.options.duration,easing:"easeOutQuad"};e.remove(this._indicator),e(o)}},{key:"select",value:function(t){var e=this.$tabLinks.filter('[href="#'+t+'"]');e.length&&e.trigger("click")}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Tabs}},{key:"defaults",get:function(){return n}}]),o}(p);M.Tabs=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"tabs","M_Tabs")}(cash,M.anime),function(t,e){"use strict";var n={exitDelay:200,enterDelay:0,html:null,margin:5,inDuration:250,outDuration:200,position:"bottom",transitionMovement:10},i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_Tooltip=i,i.options=t.extend({},o.defaults,n),i.isOpen=!1,i.isHovered=!1,i.isFocused=!1,i._appendTooltipEl(),i._setupEventHandlers(),i}return c(o,i),l(o,[{key:"destroy",value:function(){t(this.tooltipEl).remove(),this._removeEventHandlers(),this.el.M_Tooltip=void 0}},{key:"_appendTooltipEl",value:function(){var t=document.createElement("div");t.classList.add("material-tooltip"),this.tooltipEl=t;var e=document.createElement("div");e.classList.add("tooltip-content"),e.innerHTML=this.options.html,t.appendChild(e),document.body.appendChild(t)}},{key:"_updateTooltipContent",value:function(){this.tooltipEl.querySelector(".tooltip-content").innerHTML=this.options.html}},{key:"_setupEventHandlers",value:function(){this._handleMouseEnterBound=this._handleMouseEnter.bind(this),this._handleMouseLeaveBound=this._handleMouseLeave.bind(this),this._handleFocusBound=this._handleFocus.bind(this),this._handleBlurBound=this._handleBlur.bind(this),this.el.addEventListener("mouseenter",this._handleMouseEnterBound),this.el.addEventListener("mouseleave",this._handleMouseLeaveBound),this.el.addEventListener("focus",this._handleFocusBound,!0),this.el.addEventListener("blur",this._handleBlurBound,!0)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("mouseenter",this._handleMouseEnterBound),this.el.removeEventListener("mouseleave",this._handleMouseLeaveBound),this.el.removeEventListener("focus",this._handleFocusBound,!0),this.el.removeEventListener("blur",this._handleBlurBound,!0)}},{key:"open",value:function(e){this.isOpen||(e=void 0===e||void 0,this.isOpen=!0,this.options=t.extend({},this.options,this._getAttributeOptions()),this._updateTooltipContent(),this._setEnterDelayTimeout(e))}},{key:"close",value:function(){this.isOpen&&(this.isHovered=!1,this.isFocused=!1,this.isOpen=!1,this._setExitDelayTimeout())}},{key:"_setExitDelayTimeout",value:function(){var t=this;clearTimeout(this._exitDelayTimeout),this._exitDelayTimeout=setTimeout((function(){t.isHovered||t.isFocused||t._animateOut()}),this.options.exitDelay)}},{key:"_setEnterDelayTimeout",value:function(t){var e=this;clearTimeout(this._enterDelayTimeout),this._enterDelayTimeout=setTimeout((function(){(e.isHovered||e.isFocused||t)&&e._animateIn()}),this.options.enterDelay)}},{key:"_positionTooltip",value:function(){var e,n=this.el,i=this.tooltipEl,o=n.offsetHeight,a=n.offsetWidth,r=i.offsetHeight,s=i.offsetWidth,l=this.options.margin,d=void 0,c=void 0;this.xMovement=0,this.yMovement=0,d=n.getBoundingClientRect().top+M.getDocumentScrollTop(),c=n.getBoundingClientRect().left+M.getDocumentScrollLeft(),"top"===this.options.position?(d+=-r-l,c+=a/2-s/2,this.yMovement=-this.options.transitionMovement):"right"===this.options.position?(d+=o/2-r/2,c+=a+l,this.xMovement=this.options.transitionMovement):"left"===this.options.position?(d+=o/2-r/2,c+=-s-l,this.xMovement=-this.options.transitionMovement):(d+=o+l,c+=a/2-s/2,this.yMovement=this.options.transitionMovement),e=this._repositionWithinScreen(c,d,s,r),t(i).css({top:e.y+"px",left:e.x+"px"})}},{key:"_repositionWithinScreen",value:function(t,e,n,i){var o=M.getDocumentScrollLeft(),a=M.getDocumentScrollTop(),r=t-o,s=e-a,l={left:r,top:s,width:n,height:i},d=this.options.margin+this.options.transitionMovement,c=M.checkWithinContainer(document.body,l,d);return c.left?r=d:c.right&&(r-=r+n-window.innerWidth),c.top?s=d:c.bottom&&(s-=s+i-window.innerHeight),{x:r+o,y:s+a}}},{key:"_animateIn",value:function(){this._positionTooltip(),this.tooltipEl.style.visibility="visible",e.remove(this.tooltipEl),e({targets:this.tooltipEl,opacity:1,translateX:this.xMovement,translateY:this.yMovement,duration:this.options.inDuration,easing:"easeOutCubic"})}},{key:"_animateOut",value:function(){e.remove(this.tooltipEl),e({targets:this.tooltipEl,opacity:0,translateX:0,translateY:0,duration:this.options.outDuration,easing:"easeOutCubic"})}},{key:"_handleMouseEnter",value:function(){this.isHovered=!0,this.isFocused=!1,this.open(!1)}},{key:"_handleMouseLeave",value:function(){this.isHovered=!1,this.isFocused=!1,this.close()}},{key:"_handleFocus",value:function(){M.tabPressed&&(this.isFocused=!0,this.open(!1))}},{key:"_handleBlur",value:function(){this.isFocused=!1,this.close()}},{key:"_getAttributeOptions",value:function(){var t={},e=this.el.getAttribute("data-tooltip"),n=this.el.getAttribute("data-position");return e&&(t.html=e),n&&(t.position=n),t}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Tooltip}},{key:"defaults",get:function(){return n}}]),o}(p);M.Tooltip=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"tooltip","M_Tooltip")}(cash,M.anime),function(t){"use strict";var e=e||{},n=document.querySelectorAll.bind(document);function i(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e+=n+":"+t[n]+";");return e}var o={duration:750,show:function(t,e){if(2===t.button)return!1;var n=e||this,a=document.createElement("div");a.className="waves-ripple",n.appendChild(a);var r,s,l,d,c,u=(d={top:0,left:0},c=(r=n)&&r.ownerDocument,s=c.documentElement,void 0!==r.getBoundingClientRect&&(d=r.getBoundingClientRect()),l=function(t){return null!==(e=t)&&e===e.window?t:9===t.nodeType&&t.defaultView;var e}(c),{top:d.top+l.pageYOffset-s.clientTop,left:d.left+l.pageXOffset-s.clientLeft}),p=t.pageY-u.top,h=t.pageX-u.left,f="scale("+n.clientWidth/100*10+")";"touches"in t&&(p=t.touches[0].pageY-u.top,h=t.touches[0].pageX-u.left),a.setAttribute("data-hold",Date.now()),a.setAttribute("data-scale",f),a.setAttribute("data-x",h),a.setAttribute("data-y",p);var m={top:p+"px",left:h+"px"};a.className=a.className+" waves-notransition",a.setAttribute("style",i(m)),a.className=a.className.replace("waves-notransition",""),m["-webkit-transform"]=f,m["-moz-transform"]=f,m["-ms-transform"]=f,m["-o-transform"]=f,m.transform=f,m.opacity="1",m["-webkit-transition-duration"]=o.duration+"ms",m["-moz-transition-duration"]=o.duration+"ms",m["-o-transition-duration"]=o.duration+"ms",m["transition-duration"]=o.duration+"ms",m["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",m["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",m["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",m["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",a.setAttribute("style",i(m))},hide:function(t){a.touchup(t);var e=this,n=(e.clientWidth,null),r=e.getElementsByClassName("waves-ripple");if(!(r.length>0))return!1;var s=(n=r[r.length-1]).getAttribute("data-x"),l=n.getAttribute("data-y"),d=n.getAttribute("data-scale"),c=350-(Date.now()-Number(n.getAttribute("data-hold")));c<0&&(c=0),setTimeout((function(){var t={top:l+"px",left:s+"px",opacity:"0","-webkit-transition-duration":o.duration+"ms","-moz-transition-duration":o.duration+"ms","-o-transition-duration":o.duration+"ms","transition-duration":o.duration+"ms","-webkit-transform":d,"-moz-transform":d,"-ms-transform":d,"-o-transform":d,transform:d};n.setAttribute("style",i(t)),setTimeout((function(){try{e.removeChild(n)}catch(t){return!1}}),o.duration)}),c)},wrapInput:function(t){for(var e=0;e<t.length;e++){var n=t[e];if("input"===n.tagName.toLowerCase()){var i=n.parentNode;if("i"===i.tagName.toLowerCase()&&-1!==i.className.indexOf("waves-effect"))continue;var o=document.createElement("i");o.className=n.className+" waves-input-wrapper";var a=n.getAttribute("style");a||(a=""),o.setAttribute("style",a),n.className="waves-button-input",n.removeAttribute("style"),i.replaceChild(o,n),o.appendChild(n)}}}},a={touches:0,allowEvent:function(t){var e=!0;return"touchstart"===t.type?a.touches+=1:"touchend"===t.type||"touchcancel"===t.type?setTimeout((function(){a.touches>0&&(a.touches-=1)}),500):"mousedown"===t.type&&a.touches>0&&(e=!1),e},touchup:function(t){a.allowEvent(t)}};function r(e){var n=function(t){if(!1===a.allowEvent(t))return null;for(var e=null,n=t.target||t.srcElement;null!==n.parentNode;){if(!(n instanceof SVGElement)&&-1!==n.className.indexOf("waves-effect")){e=n;break}n=n.parentNode}return e}(e);null!==n&&(o.show(e,n),"ontouchstart"in t&&(n.addEventListener("touchend",o.hide,!1),n.addEventListener("touchcancel",o.hide,!1)),n.addEventListener("mouseup",o.hide,!1),n.addEventListener("mouseleave",o.hide,!1),n.addEventListener("dragend",o.hide,!1))}e.displayEffect=function(e){"duration"in(e=e||{})&&(o.duration=e.duration),o.wrapInput(n(".waves-effect")),"ontouchstart"in t&&document.body.addEventListener("touchstart",r,!1),document.body.addEventListener("mousedown",r,!1)},e.attach=function(e){"input"===e.tagName.toLowerCase()&&(o.wrapInput([e]),e=e.parentNode),"ontouchstart"in t&&e.addEventListener("touchstart",r,!1),e.addEventListener("mousedown",r,!1)},t.Waves=e,document.addEventListener("DOMContentLoaded",(function(){e.displayEffect()}),!1)}(window),function(t,e){"use strict";var n={html:"",displayLength:4e3,inDuration:300,outDuration:375,classes:"",completeCallback:null,activationPercent:.8},i=function(){function i(e){u(this,i),this.options=t.extend({},i.defaults,e),this.message=this.options.html,this.panning=!1,this.timeRemaining=this.options.displayLength,0===i._toasts.length&&i._createContainer(),i._toasts.push(this);var n=this._createToast();n.M_Toast=this,this.el=n,this.$el=t(n),this._animateIn(),this._setTimer()}return l(i,[{key:"_createToast",value:function(){var e=document.createElement("div");return e.classList.add("toast"),this.options.classes.length&&t(e).addClass(this.options.classes),("object"==typeof HTMLElement?this.message instanceof HTMLElement:this.message&&"object"==typeof this.message&&null!==this.message&&1===this.message.nodeType&&"string"==typeof this.message.nodeName)?e.appendChild(this.message):this.message.jquery?t(e).append(this.message[0]):e.innerHTML=this.message,i._container.appendChild(e),e}},{key:"_animateIn",value:function(){e({targets:this.el,top:0,opacity:1,duration:this.options.inDuration,easing:"easeOutCubic"})}},{key:"_setTimer",value:function(){var t=this;this.timeRemaining!==1/0&&(this.counterInterval=setInterval((function(){t.panning||(t.timeRemaining-=20),t.timeRemaining<=0&&t.dismiss()}),20))}},{key:"dismiss",value:function(){var t=this;window.clearInterval(this.counterInterval);var n=this.el.offsetWidth*this.options.activationPercent;this.wasSwiped&&(this.el.style.transition="transform .05s, opacity .05s",this.el.style.transform="translateX("+n+"px)",this.el.style.opacity=0),e({targets:this.el,opacity:0,marginTop:-40,duration:this.options.outDuration,easing:"easeOutExpo",complete:function(){"function"==typeof t.options.completeCallback&&t.options.completeCallback(),t.$el.remove(),i._toasts.splice(i._toasts.indexOf(t),1),0===i._toasts.length&&i._removeContainer()}})}}],[{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Toast}},{key:"_createContainer",value:function(){var t=document.createElement("div");t.setAttribute("id","toast-container"),t.addEventListener("touchstart",i._onDragStart),t.addEventListener("touchmove",i._onDragMove),t.addEventListener("touchend",i._onDragEnd),t.addEventListener("mousedown",i._onDragStart),document.addEventListener("mousemove",i._onDragMove),document.addEventListener("mouseup",i._onDragEnd),document.body.appendChild(t),i._container=t}},{key:"_removeContainer",value:function(){document.removeEventListener("mousemove",i._onDragMove),document.removeEventListener("mouseup",i._onDragEnd),t(i._container).remove(),i._container=null}},{key:"_onDragStart",value:function(e){if(e.target&&t(e.target).closest(".toast").length){var n=t(e.target).closest(".toast")[0].M_Toast;n.panning=!0,i._draggedToast=n,n.el.classList.add("panning"),n.el.style.transition="",n.startingXPos=i._xPos(e),n.time=Date.now(),n.xPos=i._xPos(e)}}},{key:"_onDragMove",value:function(t){if(i._draggedToast){t.preventDefault();var e=i._draggedToast;e.deltaX=Math.abs(e.xPos-i._xPos(t)),e.xPos=i._xPos(t),e.velocityX=e.deltaX/(Date.now()-e.time),e.time=Date.now();var n=e.xPos-e.startingXPos,o=e.el.offsetWidth*e.options.activationPercent;e.el.style.transform="translateX("+n+"px)",e.el.style.opacity=1-Math.abs(n/o)}}},{key:"_onDragEnd",value:function(){if(i._draggedToast){var t=i._draggedToast;t.panning=!1,t.el.classList.remove("panning");var e=t.xPos-t.startingXPos,n=t.el.offsetWidth*t.options.activationPercent;Math.abs(e)>n||t.velocityX>1?(t.wasSwiped=!0,t.dismiss()):(t.el.style.transition="transform .2s, opacity .2s",t.el.style.transform="",t.el.style.opacity=""),i._draggedToast=null}}},{key:"_xPos",value:function(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}},{key:"dismissAll",value:function(){for(var t in i._toasts)i._toasts[t].dismiss()}},{key:"defaults",get:function(){return n}}]),i}();i._toasts=[],i._container=null,i._draggedToast=null,M.Toast=i,M.toast=function(t){return new i(t)}}(cash,M.anime),function(t,e){"use strict";var n={edge:"left",draggable:!0,inDuration:250,outDuration:200,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,preventScrolling:!0},i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_Sidenav=i,i.id=i.$el.attr("id"),i.options=t.extend({},o.defaults,n),i.isOpen=!1,i.isFixed=i.el.classList.contains("sidenav-fixed"),i.isDragged=!1,i.lastWindowWidth=window.innerWidth,i.lastWindowHeight=window.innerHeight,i._createOverlay(),i._createDragTarget(),i._setupEventHandlers(),i._setupClasses(),i._setupFixed(),o._sidenavs.push(i),i}return c(o,i),l(o,[{key:"destroy",value:function(){this._removeEventHandlers(),this._enableBodyScrolling(),this._overlay.parentNode.removeChild(this._overlay),this.dragTarget.parentNode.removeChild(this.dragTarget),this.el.M_Sidenav=void 0,this.el.style.transform="";var t=o._sidenavs.indexOf(this);t>=0&&o._sidenavs.splice(t,1)}},{key:"_createOverlay",value:function(){var t=document.createElement("div");this._closeBound=this.close.bind(this),t.classList.add("sidenav-overlay"),t.addEventListener("click",this._closeBound),document.body.appendChild(t),this._overlay=t}},{key:"_setupEventHandlers",value:function(){0===o._sidenavs.length&&document.body.addEventListener("click",this._handleTriggerClick),this._handleDragTargetDragBound=this._handleDragTargetDrag.bind(this),this._handleDragTargetReleaseBound=this._handleDragTargetRelease.bind(this),this._handleCloseDragBound=this._handleCloseDrag.bind(this),this._handleCloseReleaseBound=this._handleCloseRelease.bind(this),this._handleCloseTriggerClickBound=this._handleCloseTriggerClick.bind(this),this.dragTarget.addEventListener("touchmove",this._handleDragTargetDragBound),this.dragTarget.addEventListener("touchend",this._handleDragTargetReleaseBound),this._overlay.addEventListener("touchmove",this._handleCloseDragBound),this._overlay.addEventListener("touchend",this._handleCloseReleaseBound),this.el.addEventListener("touchmove",this._handleCloseDragBound),this.el.addEventListener("touchend",this._handleCloseReleaseBound),this.el.addEventListener("click",this._handleCloseTriggerClickBound),this.isFixed&&(this._handleWindowResizeBound=this._handleWindowResize.bind(this),window.addEventListener("resize",this._handleWindowResizeBound))}},{key:"_removeEventHandlers",value:function(){1===o._sidenavs.length&&document.body.removeEventListener("click",this._handleTriggerClick),this.dragTarget.removeEventListener("touchmove",this._handleDragTargetDragBound),this.dragTarget.removeEventListener("touchend",this._handleDragTargetReleaseBound),this._overlay.removeEventListener("touchmove",this._handleCloseDragBound),this._overlay.removeEventListener("touchend",this._handleCloseReleaseBound),this.el.removeEventListener("touchmove",this._handleCloseDragBound),this.el.removeEventListener("touchend",this._handleCloseReleaseBound),this.el.removeEventListener("click",this._handleCloseTriggerClickBound),this.isFixed&&window.removeEventListener("resize",this._handleWindowResizeBound)}},{key:"_handleTriggerClick",value:function(e){var n=t(e.target).closest(".sidenav-trigger");if(e.target&&n.length){var i=M.getIdFromTrigger(n[0]),o=document.getElementById(i).M_Sidenav;o&&o.open(n),e.preventDefault()}}},{key:"_startDrag",value:function(t){var n=t.targetTouches[0].clientX;this.isDragged=!0,this._startingXpos=n,this._xPos=this._startingXpos,this._time=Date.now(),this._width=this.el.getBoundingClientRect().width,this._overlay.style.display="block",this._initialScrollTop=this.isOpen?this.el.scrollTop:M.getDocumentScrollTop(),this._verticallyScrolling=!1,e.remove(this.el),e.remove(this._overlay)}},{key:"_dragMoveUpdate",value:function(t){var e=t.targetTouches[0].clientX,n=this.isOpen?this.el.scrollTop:M.getDocumentScrollTop();this.deltaX=Math.abs(this._xPos-e),this._xPos=e,this.velocityX=this.deltaX/(Date.now()-this._time),this._time=Date.now(),this._initialScrollTop!==n&&(this._verticallyScrolling=!0)}},{key:"_handleDragTargetDrag",value:function(t){if(this.options.draggable&&!this._isCurrentlyFixed()&&!this._verticallyScrolling){this.isDragged||this._startDrag(t),this._dragMoveUpdate(t);var e=this._xPos-this._startingXpos,n=e>0?"right":"left";e=Math.min(this._width,Math.abs(e)),this.options.edge===n&&(e=0);var i=e,o="translateX(-100%)";"right"===this.options.edge&&(o="translateX(100%)",i=-i),this.percentOpen=Math.min(1,e/this._width),this.el.style.transform=o+" translateX("+i+"px)",this._overlay.style.opacity=this.percentOpen}}},{key:"_handleDragTargetRelease",value:function(){this.isDragged&&(this.percentOpen>.2?this.open():this._animateOut(),this.isDragged=!1,this._verticallyScrolling=!1)}},{key:"_handleCloseDrag",value:function(t){if(this.isOpen){if(!this.options.draggable||this._isCurrentlyFixed()||this._verticallyScrolling)return;this.isDragged||this._startDrag(t),this._dragMoveUpdate(t);var e=this._xPos-this._startingXpos,n=e>0?"right":"left";e=Math.min(this._width,Math.abs(e)),this.options.edge!==n&&(e=0);var i=-e;"right"===this.options.edge&&(i=-i),this.percentOpen=Math.min(1,1-e/this._width),this.el.style.transform="translateX("+i+"px)",this._overlay.style.opacity=this.percentOpen}}},{key:"_handleCloseRelease",value:function(){this.isOpen&&this.isDragged&&(this.percentOpen>.8?this._animateIn():this.close(),this.isDragged=!1,this._verticallyScrolling=!1)}},{key:"_handleCloseTriggerClick",value:function(e){t(e.target).closest(".sidenav-close").length&&!this._isCurrentlyFixed()&&this.close()}},{key:"_handleWindowResize",value:function(){this.lastWindowWidth!==window.innerWidth&&(window.innerWidth>992?this.open():this.close()),this.lastWindowWidth=window.innerWidth,this.lastWindowHeight=window.innerHeight}},{key:"_setupClasses",value:function(){"right"===this.options.edge&&(this.el.classList.add("right-aligned"),this.dragTarget.classList.add("right-aligned"))}},{key:"_removeClasses",value:function(){this.el.classList.remove("right-aligned"),this.dragTarget.classList.remove("right-aligned")}},{key:"_setupFixed",value:function(){this._isCurrentlyFixed()&&this.open()}},{key:"_isCurrentlyFixed",value:function(){return this.isFixed&&window.innerWidth>992}},{key:"_createDragTarget",value:function(){var t=document.createElement("div");t.classList.add("drag-target"),document.body.appendChild(t),this.dragTarget=t}},{key:"_preventBodyScrolling",value:function(){document.body.style.overflow="hidden"}},{key:"_enableBodyScrolling",value:function(){document.body.style.overflow=""}},{key:"open",value:function(){!0!==this.isOpen&&(this.isOpen=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this._isCurrentlyFixed()?(e.remove(this.el),e({targets:this.el,translateX:0,duration:0,easing:"easeOutQuad"}),this._enableBodyScrolling(),this._overlay.style.display="none"):(this.options.preventScrolling&&this._preventBodyScrolling(),this.isDragged&&1==this.percentOpen||this._animateIn()))}},{key:"close",value:function(){if(!1!==this.isOpen)if(this.isOpen=!1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this._isCurrentlyFixed()){var t="left"===this.options.edge?"-105%":"105%";this.el.style.transform="translateX("+t+")"}else this._enableBodyScrolling(),this.isDragged&&0==this.percentOpen?this._overlay.style.display="none":this._animateOut()}},{key:"_animateIn",value:function(){this._animateSidenavIn(),this._animateOverlayIn()}},{key:"_animateSidenavIn",value:function(){var t=this,n="left"===this.options.edge?-1:1;this.isDragged&&(n="left"===this.options.edge?n+this.percentOpen:n-this.percentOpen),e.remove(this.el),e({targets:this.el,translateX:[100*n+"%",0],duration:this.options.inDuration,easing:"easeOutQuad",complete:function(){"function"==typeof t.options.onOpenEnd&&t.options.onOpenEnd.call(t,t.el)}})}},{key:"_animateOverlayIn",value:function(){var n=0;this.isDragged?n=this.percentOpen:t(this._overlay).css({display:"block"}),e.remove(this._overlay),e({targets:this._overlay,opacity:[n,1],duration:this.options.inDuration,easing:"easeOutQuad"})}},{key:"_animateOut",value:function(){this._animateSidenavOut(),this._animateOverlayOut()}},{key:"_animateSidenavOut",value:function(){var t=this,n="left"===this.options.edge?-1:1,i=0;this.isDragged&&(i="left"===this.options.edge?n+this.percentOpen:n-this.percentOpen),e.remove(this.el),e({targets:this.el,translateX:[100*i+"%",105*n+"%"],duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t,t.el)}})}},{key:"_animateOverlayOut",value:function(){var n=this;e.remove(this._overlay),e({targets:this._overlay,opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t(n._overlay).css("display","none")}})}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Sidenav}},{key:"defaults",get:function(){return n}}]),o}(p);i._sidenavs=[],M.Sidenav=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"sidenav","M_Sidenav")}(cash,M.anime),function(t,e){"use strict";var n={throttle:100,scrollOffset:200,activeClass:"active",getActiveElement:function(t){return'a[href="#'+t+'"]'}},i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_ScrollSpy=i,i.options=t.extend({},o.defaults,n),o._elements.push(i),o._count++,o._increment++,i.tickId=-1,i.id=o._increment,i._setupEventHandlers(),i._handleWindowScroll(),i}return c(o,i),l(o,[{key:"destroy",value:function(){o._elements.splice(o._elements.indexOf(this),1),o._elementsInView.splice(o._elementsInView.indexOf(this),1),o._visibleElements.splice(o._visibleElements.indexOf(this.$el),1),o._count--,this._removeEventHandlers(),t(this.options.getActiveElement(this.$el.attr("id"))).removeClass(this.options.activeClass),this.el.M_ScrollSpy=void 0}},{key:"_setupEventHandlers",value:function(){var t=M.throttle(this._handleWindowScroll,200);this._handleThrottledResizeBound=t.bind(this),this._handleWindowScrollBound=this._handleWindowScroll.bind(this),1===o._count&&(window.addEventListener("scroll",this._handleWindowScrollBound),window.addEventListener("resize",this._handleThrottledResizeBound),document.body.addEventListener("click",this._handleTriggerClick))}},{key:"_removeEventHandlers",value:function(){0===o._count&&(window.removeEventListener("scroll",this._handleWindowScrollBound),window.removeEventListener("resize",this._handleThrottledResizeBound),document.body.removeEventListener("click",this._handleTriggerClick))}},{key:"_handleTriggerClick",value:function(n){for(var i=t(n.target),a=o._elements.length-1;a>=0;a--){var r=o._elements[a];if(i.is('a[href="#'+r.$el.attr("id")+'"]')){n.preventDefault();var s=r.$el.offset().top+1;e({targets:[document.documentElement,document.body],scrollTop:s-r.options.scrollOffset,duration:400,easing:"easeOutCubic"});break}}}},{key:"_handleWindowScroll",value:function(){o._ticks++;for(var t=M.getDocumentScrollTop(),e=M.getDocumentScrollLeft(),n=e+window.innerWidth,i=t+window.innerHeight,a=o._findElements(t,n,i,e),r=0;r<a.length;r++){var s=a[r];s.tickId<0&&s._enter(),s.tickId=o._ticks}for(var l=0;l<o._elementsInView.length;l++){var d=o._elementsInView[l],c=d.tickId;c>=0&&c!==o._ticks&&(d._exit(),d.tickId=-1)}o._elementsInView=a}},{key:"_enter",value:function(){o._visibleElements=o._visibleElements.filter((function(t){return 0!=t.height()})),o._visibleElements[0]?(t(this.options.getActiveElement(o._visibleElements[0].attr("id"))).removeClass(this.options.activeClass),o._visibleElements[0][0].M_ScrollSpy&&this.id<o._visibleElements[0][0].M_ScrollSpy.id?o._visibleElements.unshift(this.$el):o._visibleElements.push(this.$el)):o._visibleElements.push(this.$el),t(this.options.getActiveElement(o._visibleElements[0].attr("id"))).addClass(this.options.activeClass)}},{key:"_exit",value:function(){var e=this;o._visibleElements=o._visibleElements.filter((function(t){return 0!=t.height()})),o._visibleElements[0]&&(t(this.options.getActiveElement(o._visibleElements[0].attr("id"))).removeClass(this.options.activeClass),o._visibleElements=o._visibleElements.filter((function(t){return t.attr("id")!=e.$el.attr("id")})),o._visibleElements[0]&&t(this.options.getActiveElement(o._visibleElements[0].attr("id"))).addClass(this.options.activeClass))}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_ScrollSpy}},{key:"_findElements",value:function(t,e,n,i){for(var a=[],r=0;r<o._elements.length;r++){var s=o._elements[r],l=t+s.options.scrollOffset||200;if(s.$el.height()>0){var d=s.$el.offset().top,c=s.$el.offset().left,u=c+s.$el.width(),p=d+s.$el.height();!(c>e||u<i||d>n||p<l)&&a.push(s)}}return a}},{key:"defaults",get:function(){return n}}]),o}(p);i._elements=[],i._elementsInView=[],i._visibleElements=[],i._count=0,i._increment=0,i._ticks=0,M.ScrollSpy=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"scrollSpy","M_ScrollSpy")}(cash,M.anime),function(t){"use strict";var e={data:{},limit:1/0,onAutocomplete:null,minLength:1,sortFunction:function(t,e,n){return t.indexOf(n)-e.indexOf(n)}},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.el.M_Autocomplete=o,o.options=t.extend({},i.defaults,n),o.isOpen=!1,o.count=0,o.activeIndex=-1,o.oldVal,o.$inputField=o.$el.closest(".input-field"),o.$active=t(),o._mousedown=!1,o._setupDropdown(),o._setupEventHandlers(),o}return c(i,n),l(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeDropdown(),this.el.M_Autocomplete=void 0}},{key:"_setupEventHandlers",value:function(){this._handleInputBlurBound=this._handleInputBlur.bind(this),this._handleInputKeyupAndFocusBound=this._handleInputKeyupAndFocus.bind(this),this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleContainerMousedownAndTouchstartBound=this._handleContainerMousedownAndTouchstart.bind(this),this._handleContainerMouseupAndTouchendBound=this._handleContainerMouseupAndTouchend.bind(this),this.el.addEventListener("blur",this._handleInputBlurBound),this.el.addEventListener("keyup",this._handleInputKeyupAndFocusBound),this.el.addEventListener("focus",this._handleInputKeyupAndFocusBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.el.addEventListener("click",this._handleInputClickBound),this.container.addEventListener("mousedown",this._handleContainerMousedownAndTouchstartBound),this.container.addEventListener("mouseup",this._handleContainerMouseupAndTouchendBound),void 0!==window.ontouchstart&&(this.container.addEventListener("touchstart",this._handleContainerMousedownAndTouchstartBound),this.container.addEventListener("touchend",this._handleContainerMouseupAndTouchendBound))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("blur",this._handleInputBlurBound),this.el.removeEventListener("keyup",this._handleInputKeyupAndFocusBound),this.el.removeEventListener("focus",this._handleInputKeyupAndFocusBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound),this.el.removeEventListener("click",this._handleInputClickBound),this.container.removeEventListener("mousedown",this._handleContainerMousedownAndTouchstartBound),this.container.removeEventListener("mouseup",this._handleContainerMouseupAndTouchendBound),void 0!==window.ontouchstart&&(this.container.removeEventListener("touchstart",this._handleContainerMousedownAndTouchstartBound),this.container.removeEventListener("touchend",this._handleContainerMouseupAndTouchendBound))}},{key:"_setupDropdown",value:function(){var e=this;this.container=document.createElement("ul"),this.container.id="autocomplete-options-"+M.guid(),t(this.container).addClass("autocomplete-content dropdown-content"),this.$inputField.append(this.container),this.el.setAttribute("data-target",this.container.id),this.dropdown=M.Dropdown.init(this.el,{autoFocus:!1,closeOnClick:!1,coverTrigger:!1,onItemClick:function(n){e.selectOption(t(n))}}),this.el.removeEventListener("click",this.dropdown._handleClickBound)}},{key:"_removeDropdown",value:function(){this.container.parentNode.removeChild(this.container)}},{key:"_handleInputBlur",value:function(){this._mousedown||(this.close(),this._resetAutocomplete())}},{key:"_handleInputKeyupAndFocus",value:function(t){"keyup"===t.type&&(i._keydown=!1),this.count=0;var e=this.el.value.toLowerCase();13!==t.keyCode&&38!==t.keyCode&&40!==t.keyCode&&(this.oldVal===e||!M.tabPressed&&"focus"===t.type||this.open(),this.oldVal=e)}},{key:"_handleInputKeydown",value:function(e){i._keydown=!0;var n=e.keyCode,o=void 0,a=t(this.container).children("li").length;n===M.keys.ENTER&&this.activeIndex>=0?(o=t(this.container).children("li").eq(this.activeIndex)).length&&(this.selectOption(o),e.preventDefault()):n!==M.keys.ARROW_UP&&n!==M.keys.ARROW_DOWN||(e.preventDefault(),n===M.keys.ARROW_UP&&this.activeIndex>0&&this.activeIndex--,n===M.keys.ARROW_DOWN&&this.activeIndex<a-1&&this.activeIndex++,this.$active.removeClass("active"),this.activeIndex>=0&&(this.$active=t(this.container).children("li").eq(this.activeIndex),this.$active.addClass("active")))}},{key:"_handleInputClick",value:function(t){this.open()}},{key:"_handleContainerMousedownAndTouchstart",value:function(t){this._mousedown=!0}},{key:"_handleContainerMouseupAndTouchend",value:function(t){this._mousedown=!1}},{key:"_highlight",value:function(t,e){var n=e.find("img"),i=e.text().toLowerCase().indexOf(""+t.toLowerCase()),o=i+t.length-1,a=e.text().slice(0,i),r=e.text().slice(i,o+1),s=e.text().slice(o+1);e.html("<span>"+a+"<span class='highlight'>"+r+"</span>"+s+"</span>"),n.length&&e.prepend(n)}},{key:"_resetCurrentElement",value:function(){this.activeIndex=-1,this.$active.removeClass("active")}},{key:"_resetAutocomplete",value:function(){t(this.container).empty(),this._resetCurrentElement(),this.oldVal=null,this.isOpen=!1,this._mousedown=!1}},{key:"selectOption",value:function(t){var e=t.text().trim();this.el.value=e,this.$el.trigger("change"),this._resetAutocomplete(),this.close(),"function"==typeof this.options.onAutocomplete&&this.options.onAutocomplete.call(this,e)}},{key:"_renderDropdown",value:function(e,n){var i=this;this._resetAutocomplete();var o=[];for(var a in e)if(e.hasOwnProperty(a)&&-1!==a.toLowerCase().indexOf(n)){if(this.count>=this.options.limit)break;var r={data:e[a],key:a};o.push(r),this.count++}if(this.options.sortFunction){o.sort((function(t,e){return i.options.sortFunction(t.key.toLowerCase(),e.key.toLowerCase(),n.toLowerCase())}))}for(var s=0;s<o.length;s++){var l=o[s],d=t("<li></li>");l.data?d.append('<img src="'+l.data+'" class="right circle"><span>'+l.key+"</span>"):d.append("<span>"+l.key+"</span>"),t(this.container).append(d),this._highlight(n,d)}}},{key:"open",value:function(){var t=this.el.value.toLowerCase();this._resetAutocomplete(),t.length>=this.options.minLength&&(this.isOpen=!0,this._renderDropdown(this.options.data,t)),this.dropdown.isOpen?this.dropdown.recalculateDimensions():this.dropdown.open()}},{key:"close",value:function(){this.dropdown.close()}},{key:"updateData",value:function(t){var e=this.el.value.toLowerCase();this.options.data=t,this.isOpen&&this._renderDropdown(t,e)}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Autocomplete}},{key:"defaults",get:function(){return e}}]),i}(p);n._keydown=!1,M.Autocomplete=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"autocomplete","M_Autocomplete")}(cash),function(t){M.updateTextFields=function(){t("input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea").each((function(e,n){var i=t(this);e.value.length>0||t(e).is(":focus")||e.autofocus||null!==i.attr("placeholder")?i.siblings("label").addClass("active"):e.validity?i.siblings("label").toggleClass("active",!0===e.validity.badInput):i.siblings("label").removeClass("active")}))},M.validate_field=function(t){var e=null!==t.attr("data-length"),n=parseInt(t.attr("data-length")),i=t[0].value.length;0!==i||!1!==t[0].validity.badInput||t.is(":required")?t.hasClass("validate")&&(t.is(":valid")&&e&&i<=n||t.is(":valid")&&!e?(t.removeClass("invalid"),t.addClass("valid")):(t.removeClass("valid"),t.addClass("invalid"))):t.hasClass("validate")&&(t.removeClass("valid"),t.removeClass("invalid"))},M.textareaAutoResize=function(e){if(e instanceof Element&&(e=t(e)),e.length){var n=t(".hiddendiv").first();n.length||(n=t('<div class="hiddendiv common"></div>'),t("body").append(n));var i=e.css("font-family"),o=e.css("font-size"),a=e.css("line-height"),r=e.css("padding-top"),s=e.css("padding-right"),l=e.css("padding-bottom"),d=e.css("padding-left");o&&n.css("font-size",o),i&&n.css("font-family",i),a&&n.css("line-height",a),r&&n.css("padding-top",r),s&&n.css("padding-right",s),l&&n.css("padding-bottom",l),d&&n.css("padding-left",d),e.data("original-height")||e.data("original-height",e.height()),"off"===e.attr("wrap")&&n.css("overflow-wrap","normal").css("white-space","pre"),n.text(e[0].value+"\n");var c=n.html().replace(/\n/g,"<br>");n.html(c),e[0].offsetWidth>0&&e[0].offsetHeight>0?n.css("width",e.width()+"px"):n.css("width",window.innerWidth/2+"px"),e.data("original-height")<=n.innerHeight()?e.css("height",n.innerHeight()+"px"):e[0].value.length<e.data("previous-length")&&e.css("height",e.data("original-height")+"px"),e.data("previous-length",e[0].value.length)}else console.error("No textarea element found")},t(document).ready((function(){var e="input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea";t(document).on("change",e,(function(){0===this.value.length&&null===t(this).attr("placeholder")||t(this).siblings("label").addClass("active"),M.validate_field(t(this))})),t(document).ready((function(){M.updateTextFields()})),t(document).on("reset",(function(n){var i=t(n.target);i.is("form")&&(i.find(e).removeClass("valid").removeClass("invalid"),i.find(e).each((function(e){this.value.length&&t(this).siblings("label").removeClass("active")})),setTimeout((function(){i.find("select").each((function(){this.M_FormSelect&&t(this).trigger("change")}))}),0))})),document.addEventListener("focus",(function(n){t(n.target).is(e)&&t(n.target).siblings("label, .prefix").addClass("active")}),!0),document.addEventListener("blur",(function(n){var i=t(n.target);if(i.is(e)){var o=".prefix";0===i[0].value.length&&!0!==i[0].validity.badInput&&null===i.attr("placeholder")&&(o+=", label"),i.siblings(o).removeClass("active"),M.validate_field(i)}}),!0);t(document).on("keyup","input[type=radio], input[type=checkbox]",(function(e){if(e.which===M.keys.TAB)return t(this).addClass("tabbed"),void t(this).one("blur",(function(e){t(this).removeClass("tabbed")}))}));t(".materialize-textarea").each((function(){var e=t(this);e.data("original-height",e.height()),e.data("previous-length",this.value.length),M.textareaAutoResize(e)})),t(document).on("keyup",".materialize-textarea",(function(){M.textareaAutoResize(t(this))})),t(document).on("keydown",".materialize-textarea",(function(){M.textareaAutoResize(t(this))})),t(document).on("change",'.file-field input[type="file"]',(function(){for(var e=t(this).closest(".file-field").find("input.file-path"),n=t(this)[0].files,i=[],o=0;o<n.length;o++)i.push(n[o].name);e[0].value=i.join(", "),e.trigger("change")}))}))}(cash),function(t,e){"use strict";var n={indicators:!0,height:400,duration:500,interval:6e3},i=function(i){function o(n,i){u(this,o);var a=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,n,i));return a.el.M_Slider=a,a.options=t.extend({},o.defaults,i),a.$slider=a.$el.find(".slides"),a.$slides=a.$slider.children("li"),a.activeIndex=a.$slides.filter((function(e){return t(e).hasClass("active")})).first().index(),-1!=a.activeIndex&&(a.$active=a.$slides.eq(a.activeIndex)),a._setSliderHeight(),a.$slides.find(".caption").each((function(t){a._animateCaptionIn(t,0)})),a.$slides.find("img").each((function(e){var n="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";t(e).attr("src")!==n&&(t(e).css("background-image",'url("'+t(e).attr("src")+'")'),t(e).attr("src",n))})),a._setupIndicators(),a.$active?a.$active.css("display","block"):(a.$slides.first().addClass("active"),e({targets:a.$slides.first()[0],opacity:1,duration:a.options.duration,easing:"easeOutQuad"}),a.activeIndex=0,a.$active=a.$slides.eq(a.activeIndex),a.options.indicators&&a.$indicators.eq(a.activeIndex).addClass("active")),a.$active.find("img").each((function(t){e({targets:a.$active.find(".caption")[0],opacity:1,translateX:0,translateY:0,duration:a.options.duration,easing:"easeOutQuad"})})),a._setupEventHandlers(),a.start(),a}return c(o,i),l(o,[{key:"destroy",value:function(){this.pause(),this._removeIndicators(),this._removeEventHandlers(),this.el.M_Slider=void 0}},{key:"_setupEventHandlers",value:function(){var t=this;this._handleIntervalBound=this._handleInterval.bind(this),this._handleIndicatorClickBound=this._handleIndicatorClick.bind(this),this.options.indicators&&this.$indicators.each((function(e){e.addEventListener("click",t._handleIndicatorClickBound)}))}},{key:"_removeEventHandlers",value:function(){var t=this;this.options.indicators&&this.$indicators.each((function(e){e.removeEventListener("click",t._handleIndicatorClickBound)}))}},{key:"_handleIndicatorClick",value:function(e){var n=t(e.target).index();this.set(n)}},{key:"_handleInterval",value:function(){var t=this.$slider.find(".active").index();this.$slides.length===t+1?t=0:t+=1,this.set(t)}},{key:"_animateCaptionIn",value:function(n,i){var o={targets:n,opacity:0,duration:i,easing:"easeOutQuad"};t(n).hasClass("center-align")?o.translateY=-100:t(n).hasClass("right-align")?o.translateX=100:t(n).hasClass("left-align")&&(o.translateX=-100),e(o)}},{key:"_setSliderHeight",value:function(){this.$el.hasClass("fullscreen")||(this.options.indicators?this.$el.css("height",this.options.height+40+"px"):this.$el.css("height",this.options.height+"px"),this.$slider.css("height",this.options.height+"px"))}},{key:"_setupIndicators",value:function(){var e=this;this.options.indicators&&(this.$indicators=t('<ul class="indicators"></ul>'),this.$slides.each((function(n,i){var o=t('<li class="indicator-item"></li>');e.$indicators.append(o[0])})),this.$el.append(this.$indicators[0]),this.$indicators=this.$indicators.children("li.indicator-item"))}},{key:"_removeIndicators",value:function(){this.$el.find("ul.indicators").remove()}},{key:"set",value:function(t){var n=this;if(t>=this.$slides.length?t=0:t<0&&(t=this.$slides.length-1),this.activeIndex!=t){this.$active=this.$slides.eq(this.activeIndex);var i=this.$active.find(".caption");this.$active.removeClass("active"),e({targets:this.$active[0],opacity:0,duration:this.options.duration,easing:"easeOutQuad",complete:function(){n.$slides.not(".active").each((function(t){e({targets:t,opacity:0,translateX:0,translateY:0,duration:0,easing:"easeOutQuad"})}))}}),this._animateCaptionIn(i[0],this.options.duration),this.options.indicators&&(this.$indicators.eq(this.activeIndex).removeClass("active"),this.$indicators.eq(t).addClass("active")),e({targets:this.$slides.eq(t)[0],opacity:1,duration:this.options.duration,easing:"easeOutQuad"}),e({targets:this.$slides.eq(t).find(".caption")[0],opacity:1,translateX:0,translateY:0,duration:this.options.duration,delay:this.options.duration,easing:"easeOutQuad"}),this.$slides.eq(t).addClass("active"),this.activeIndex=t,this.start()}}},{key:"pause",value:function(){clearInterval(this.interval)}},{key:"start",value:function(){clearInterval(this.interval),this.interval=setInterval(this._handleIntervalBound,this.options.duration+this.options.interval)}},{key:"next",value:function(){var t=this.activeIndex+1;t>=this.$slides.length?t=0:t<0&&(t=this.$slides.length-1),this.set(t)}},{key:"prev",value:function(){var t=this.activeIndex-1;t>=this.$slides.length?t=0:t<0&&(t=this.$slides.length-1),this.set(t)}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Slider}},{key:"defaults",get:function(){return n}}]),o}(p);M.Slider=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"slider","M_Slider")}(cash,M.anime),function(t,e){t(document).on("click",".card",(function(n){if(t(this).children(".card-reveal").length){var i=t(n.target).closest(".card");void 0===i.data("initialOverflow")&&i.data("initialOverflow",void 0===i.css("overflow")?"":i.css("overflow"));var o=t(this).find(".card-reveal");t(n.target).is(t(".card-reveal .card-title"))||t(n.target).is(t(".card-reveal .card-title i"))?e({targets:o[0],translateY:0,duration:225,easing:"easeInOutQuad",complete:function(e){var n=e.animatables[0].target;t(n).css({display:"none"}),i.css("overflow",i.data("initialOverflow"))}}):(t(n.target).is(t(".card .activator"))||t(n.target).is(t(".card .activator i")))&&(i.css("overflow","hidden"),o.css({display:"block"}),e({targets:o[0],translateY:"-100%",duration:300,easing:"easeInOutQuad"}))}}))}(cash,M.anime),function(t){"use strict";var e={data:[],placeholder:"",secondaryPlaceholder:"",autocompleteOptions:{},limit:1/0,onChipAdd:null,onChipSelect:null,onChipDelete:null},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.el.M_Chips=o,o.options=t.extend({},i.defaults,n),o.$el.addClass("chips input-field"),o.chipsData=[],o.$chips=t(),o._setupInput(),o.hasAutocomplete=Object.keys(o.options.autocompleteOptions).length>0,o.$input.attr("id")||o.$input.attr("id",M.guid()),o.options.data.length&&(o.chipsData=o.options.data,o._renderChips(o.chipsData)),o.hasAutocomplete&&o._setupAutocomplete(),o._setPlaceholder(),o._setupLabel(),o._setupEventHandlers(),o}return c(i,n),l(i,[{key:"getData",value:function(){return this.chipsData}},{key:"destroy",value:function(){this._removeEventHandlers(),this.$chips.remove(),this.el.M_Chips=void 0}},{key:"_setupEventHandlers",value:function(){this._handleChipClickBound=this._handleChipClick.bind(this),this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputFocusBound=this._handleInputFocus.bind(this),this._handleInputBlurBound=this._handleInputBlur.bind(this),this.el.addEventListener("click",this._handleChipClickBound),document.addEventListener("keydown",i._handleChipsKeydown),document.addEventListener("keyup",i._handleChipsKeyup),this.el.addEventListener("blur",i._handleChipsBlur,!0),this.$input[0].addEventListener("focus",this._handleInputFocusBound),this.$input[0].addEventListener("blur",this._handleInputBlurBound),this.$input[0].addEventListener("keydown",this._handleInputKeydownBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleChipClickBound),document.removeEventListener("keydown",i._handleChipsKeydown),document.removeEventListener("keyup",i._handleChipsKeyup),this.el.removeEventListener("blur",i._handleChipsBlur,!0),this.$input[0].removeEventListener("focus",this._handleInputFocusBound),this.$input[0].removeEventListener("blur",this._handleInputBlurBound),this.$input[0].removeEventListener("keydown",this._handleInputKeydownBound)}},{key:"_handleChipClick",value:function(e){var n=t(e.target).closest(".chip"),i=t(e.target).is(".close");if(n.length){var o=n.index();i?(this.deleteChip(o),this.$input[0].focus()):this.selectChip(o)}else this.$input[0].focus()}},{key:"_handleInputFocus",value:function(){this.$el.addClass("focus")}},{key:"_handleInputBlur",value:function(){this.$el.removeClass("focus")}},{key:"_handleInputKeydown",value:function(t){if(i._keydown=!0,13===t.keyCode){if(this.hasAutocomplete&&this.autocomplete&&this.autocomplete.isOpen)return;t.preventDefault(),this.addChip({tag:this.$input[0].value}),this.$input[0].value=""}else 8!==t.keyCode&&37!==t.keyCode||""!==this.$input[0].value||!this.chipsData.length||(t.preventDefault(),this.selectChip(this.chipsData.length-1))}},{key:"_renderChip",value:function(e){if(e.tag){var n=document.createElement("div"),i=document.createElement("i");if(n.classList.add("chip"),n.textContent=e.tag,n.setAttribute("tabindex",0),t(i).addClass("material-icons close"),i.textContent="close",e.image){var o=document.createElement("img");o.setAttribute("src",e.image),n.insertBefore(o,n.firstChild)}return n.appendChild(i),n}}},{key:"_renderChips",value:function(){this.$chips.remove();for(var t=0;t<this.chipsData.length;t++){var e=this._renderChip(this.chipsData[t]);this.$el.append(e),this.$chips.add(e)}this.$el.append(this.$input[0])}},{key:"_setupAutocomplete",value:function(){var t=this;this.options.autocompleteOptions.onAutocomplete=function(e){t.addChip({tag:e}),t.$input[0].value="",t.$input[0].focus()},this.autocomplete=M.Autocomplete.init(this.$input[0],this.options.autocompleteOptions)}},{key:"_setupInput",value:function(){this.$input=this.$el.find("input"),this.$input.length||(this.$input=t("<input></input>"),this.$el.append(this.$input)),this.$input.addClass("input")}},{key:"_setupLabel",value:function(){this.$label=this.$el.find("label"),this.$label.length&&this.$label.setAttribute("for",this.$input.attr("id"))}},{key:"_setPlaceholder",value:function(){void 0!==this.chipsData&&!this.chipsData.length&&this.options.placeholder?t(this.$input).prop("placeholder",this.options.placeholder):(void 0===this.chipsData||this.chipsData.length)&&this.options.secondaryPlaceholder&&t(this.$input).prop("placeholder",this.options.secondaryPlaceholder)}},{key:"_isValid",value:function(t){if(t.hasOwnProperty("tag")&&""!==t.tag){for(var e=!1,n=0;n<this.chipsData.length;n++)if(this.chipsData[n].tag===t.tag){e=!0;break}return!e}return!1}},{key:"addChip",value:function(e){if(this._isValid(e)&&!(this.chipsData.length>=this.options.limit)){var n=this._renderChip(e);this.$chips.add(n),this.chipsData.push(e),t(this.$input).before(n),this._setPlaceholder(),"function"==typeof this.options.onChipAdd&&this.options.onChipAdd.call(this,this.$el,n)}}},{key:"deleteChip",value:function(e){var n=this.$chips.eq(e);this.$chips.eq(e).remove(),this.$chips=this.$chips.filter((function(e){return t(e).index()>=0})),this.chipsData.splice(e,1),this._setPlaceholder(),"function"==typeof this.options.onChipDelete&&this.options.onChipDelete.call(this,this.$el,n[0])}},{key:"selectChip",value:function(t){var e=this.$chips.eq(t);this._selectedChip=e,e[0].focus(),"function"==typeof this.options.onChipSelect&&this.options.onChipSelect.call(this,this.$el,e[0])}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Chips}},{key:"_handleChipsKeydown",value:function(e){i._keydown=!0;var n=t(e.target).closest(".chips"),o=e.target&&n.length;if(!t(e.target).is("input, textarea")&&o){var a=n[0].M_Chips;if(8===e.keyCode||46===e.keyCode){e.preventDefault();var r=a.chipsData.length;if(a._selectedChip){var s=a._selectedChip.index();a.deleteChip(s),a._selectedChip=null,r=Math.max(s-1,0)}a.chipsData.length&&a.selectChip(r)}else if(37===e.keyCode){if(a._selectedChip){var l=a._selectedChip.index()-1;if(l<0)return;a.selectChip(l)}}else if(39===e.keyCode&&a._selectedChip){var d=a._selectedChip.index()+1;d>=a.chipsData.length?a.$input[0].focus():a.selectChip(d)}}}},{key:"_handleChipsKeyup",value:function(t){i._keydown=!1}},{key:"_handleChipsBlur",value:function(e){i._keydown||(t(e.target).closest(".chips")[0].M_Chips._selectedChip=null)}},{key:"defaults",get:function(){return e}}]),i}(p);n._keydown=!1,M.Chips=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"chips","M_Chips"),t(document).ready((function(){t(document.body).on("click",".chip .close",(function(){var e=t(this).closest(".chips");e.length&&e[0].M_Chips||t(this).closest(".chip").remove()}))}))}(cash),function(t){"use strict";var e={top:0,bottom:1/0,offset:0,onPositionChange:null},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.el.M_Pushpin=o,o.options=t.extend({},i.defaults,n),o.originalOffset=o.el.offsetTop,i._pushpins.push(o),o._setupEventHandlers(),o._updatePosition(),o}return c(i,n),l(i,[{key:"destroy",value:function(){this.el.style.top=null,this._removePinClasses(),this._removeEventHandlers();var t=i._pushpins.indexOf(this);i._pushpins.splice(t,1)}},{key:"_setupEventHandlers",value:function(){document.addEventListener("scroll",i._updateElements)}},{key:"_removeEventHandlers",value:function(){document.removeEventListener("scroll",i._updateElements)}},{key:"_updatePosition",value:function(){var t=M.getDocumentScrollTop()+this.options.offset;this.options.top<=t&&this.options.bottom>=t&&!this.el.classList.contains("pinned")&&(this._removePinClasses(),this.el.style.top=this.options.offset+"px",this.el.classList.add("pinned"),"function"==typeof this.options.onPositionChange&&this.options.onPositionChange.call(this,"pinned")),t<this.options.top&&!this.el.classList.contains("pin-top")&&(this._removePinClasses(),this.el.style.top=0,this.el.classList.add("pin-top"),"function"==typeof this.options.onPositionChange&&this.options.onPositionChange.call(this,"pin-top")),t>this.options.bottom&&!this.el.classList.contains("pin-bottom")&&(this._removePinClasses(),this.el.classList.add("pin-bottom"),this.el.style.top=this.options.bottom-this.originalOffset+"px","function"==typeof this.options.onPositionChange&&this.options.onPositionChange.call(this,"pin-bottom"))}},{key:"_removePinClasses",value:function(){this.el.classList.remove("pin-top"),this.el.classList.remove("pinned"),this.el.classList.remove("pin-bottom")}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Pushpin}},{key:"_updateElements",value:function(){for(var t in i._pushpins){i._pushpins[t]._updatePosition()}}},{key:"defaults",get:function(){return e}}]),i}(p);n._pushpins=[],M.Pushpin=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"pushpin","M_Pushpin")}(cash),function(t,e){"use strict";var n={direction:"top",hoverEnabled:!0,toolbarEnabled:!1};t.fn.reverse=[].reverse;var i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_FloatingActionButton=i,i.options=t.extend({},o.defaults,n),i.isOpen=!1,i.$anchor=i.$el.children("a").first(),i.$menu=i.$el.children("ul").first(),i.$floatingBtns=i.$el.find("ul .btn-floating"),i.$floatingBtnsReverse=i.$el.find("ul .btn-floating").reverse(),i.offsetY=0,i.offsetX=0,i.$el.addClass("direction-"+i.options.direction),"top"===i.options.direction?i.offsetY=40:"right"===i.options.direction?i.offsetX=-40:"bottom"===i.options.direction?i.offsetY=-40:i.offsetX=40,i._setupEventHandlers(),i}return c(o,i),l(o,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_FloatingActionButton=void 0}},{key:"_setupEventHandlers",value:function(){this._handleFABClickBound=this._handleFABClick.bind(this),this._handleOpenBound=this.open.bind(this),this._handleCloseBound=this.close.bind(this),this.options.hoverEnabled&&!this.options.toolbarEnabled?(this.el.addEventListener("mouseenter",this._handleOpenBound),this.el.addEventListener("mouseleave",this._handleCloseBound)):this.el.addEventListener("click",this._handleFABClickBound)}},{key:"_removeEventHandlers",value:function(){this.options.hoverEnabled&&!this.options.toolbarEnabled?(this.el.removeEventListener("mouseenter",this._handleOpenBound),this.el.removeEventListener("mouseleave",this._handleCloseBound)):this.el.removeEventListener("click",this._handleFABClickBound)}},{key:"_handleFABClick",value:function(){this.isOpen?this.close():this.open()}},{key:"_handleDocumentClick",value:function(e){t(e.target).closest(this.$menu).length||this.close()}},{key:"open",value:function(){this.isOpen||(this.options.toolbarEnabled?this._animateInToolbar():this._animateInFAB(),this.isOpen=!0)}},{key:"close",value:function(){this.isOpen&&(this.options.toolbarEnabled?(window.removeEventListener("scroll",this._handleCloseBound,!0),document.body.removeEventListener("click",this._handleDocumentClickBound,!0),this._animateOutToolbar()):this._animateOutFAB(),this.isOpen=!1)}},{key:"_animateInFAB",value:function(){var t=this;this.$el.addClass("active");var n=0;this.$floatingBtnsReverse.each((function(i){e({targets:i,opacity:1,scale:[.4,1],translateY:[t.offsetY,0],translateX:[t.offsetX,0],duration:275,delay:n,easing:"easeInOutQuad"}),n+=40}))}},{key:"_animateOutFAB",value:function(){var t=this;this.$floatingBtnsReverse.each((function(n){e.remove(n),e({targets:n,opacity:0,scale:.4,translateY:t.offsetY,translateX:t.offsetX,duration:175,easing:"easeOutQuad",complete:function(){t.$el.removeClass("active")}})}))}},{key:"_animateInToolbar",value:function(){var e,n=this,i=window.innerWidth,o=window.innerHeight,a=this.el.getBoundingClientRect(),r=t('<div class="fab-backdrop"></div>'),s=this.$anchor.css("background-color");this.$anchor.append(r),this.offsetX=a.left-i/2+a.width/2,this.offsetY=o-a.bottom,e=i/r[0].clientWidth,this.btnBottom=a.bottom,this.btnLeft=a.left,this.btnWidth=a.width,this.$el.addClass("active"),this.$el.css({"text-align":"center",width:"100%",bottom:0,left:0,transform:"translateX("+this.offsetX+"px)",transition:"none"}),this.$anchor.css({transform:"translateY("+-this.offsetY+"px)",transition:"none"}),r.css({"background-color":s}),setTimeout((function(){n.$el.css({transform:"",transition:"transform .2s cubic-bezier(0.550, 0.085, 0.680, 0.530), background-color 0s linear .2s"}),n.$anchor.css({overflow:"visible",transform:"",transition:"transform .2s"}),setTimeout((function(){n.$el.css({overflow:"hidden","background-color":s}),r.css({transform:"scale("+e+")",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"}),n.$menu.children("li").children("a").css({opacity:1}),n._handleDocumentClickBound=n._handleDocumentClick.bind(n),window.addEventListener("scroll",n._handleCloseBound,!0),document.body.addEventListener("click",n._handleDocumentClickBound,!0)}),100)}),0)}},{key:"_animateOutToolbar",value:function(){var t=this,e=window.innerWidth,n=window.innerHeight,i=this.$el.find(".fab-backdrop"),o=this.$anchor.css("background-color");this.offsetX=this.btnLeft-e/2+this.btnWidth/2,this.offsetY=n-this.btnBottom,this.$el.removeClass("active"),this.$el.css({"background-color":"transparent",transition:"none"}),this.$anchor.css({transition:"none"}),i.css({transform:"scale(0)","background-color":o}),this.$menu.children("li").children("a").css({opacity:""}),setTimeout((function(){i.remove(),t.$el.css({"text-align":"",width:"",bottom:"",left:"",overflow:"","background-color":"",transform:"translate3d("+-t.offsetX+"px,0,0)"}),t.$anchor.css({overflow:"",transform:"translate3d(0,"+t.offsetY+"px,0)"}),setTimeout((function(){t.$el.css({transform:"translate3d(0,0,0)",transition:"transform .2s"}),t.$anchor.css({transform:"translate3d(0,0,0)",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"})}),20)}),200)}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_FloatingActionButton}},{key:"defaults",get:function(){return n}}]),o}(p);M.FloatingActionButton=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"floatingActionButton","M_FloatingActionButton")}(cash,M.anime),function(t){"use strict";var e={autoClose:!1,format:"mmm dd, yyyy",parse:null,defaultDate:null,setDefaultDate:!1,disableWeekends:!1,disableDayFn:null,firstDay:0,minDate:null,maxDate:null,yearRange:10,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,container:null,showClearBtn:!1,i18n:{cancel:"Cancel",clear:"Clear",done:"Ok",previousMonth:"‹",nextMonth:"›",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysAbbrev:["S","M","T","W","T","F","S"]},events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));o.el.M_Datepicker=o,o.options=t.extend({},i.defaults,n),n&&n.hasOwnProperty("i18n")&&"object"==typeof n.i18n&&(o.options.i18n=t.extend({},i.defaults.i18n,n.i18n)),o.options.minDate&&o.options.minDate.setHours(0,0,0,0),o.options.maxDate&&o.options.maxDate.setHours(0,0,0,0),o.id=M.guid(),o._setupVariables(),o._insertHTMLIntoDOM(),o._setupModal(),o._setupEventHandlers(),o.options.defaultDate||(o.options.defaultDate=new Date(Date.parse(o.el.value)));var a=o.options.defaultDate;return i._isDate(a)?o.options.setDefaultDate?(o.setDate(a,!0),o.setInputValue()):o.gotoDate(a):o.gotoDate(new Date),o.isOpen=!1,o}return c(i,n),l(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.modal.destroy(),t(this.modalEl).remove(),this.destroySelects(),this.el.M_Datepicker=void 0}},{key:"destroySelects",value:function(){var t=this.calendarEl.querySelector(".orig-select-year");t&&M.FormSelect.getInstance(t).destroy();var e=this.calendarEl.querySelector(".orig-select-month");e&&M.FormSelect.getInstance(e).destroy()}},{key:"_insertHTMLIntoDOM",value:function(){this.options.showClearBtn&&(t(this.clearBtn).css({visibility:""}),this.clearBtn.innerHTML=this.options.i18n.clear),this.doneBtn.innerHTML=this.options.i18n.done,this.cancelBtn.innerHTML=this.options.i18n.cancel,this.options.container?this.$modalEl.appendTo(this.options.container):this.$modalEl.insertBefore(this.el)}},{key:"_setupModal",value:function(){var t=this;this.modalEl.id="modal-"+this.id,this.modal=M.Modal.init(this.modalEl,{onCloseEnd:function(){t.isOpen=!1}})}},{key:"toString",value:function(t){var e=this;return t=t||this.options.format,i._isDate(this.date)?t.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g).map((function(t){return e.formats[t]?e.formats[t]():t})).join(""):""}},{key:"setDate",value:function(t,e){if(!t)return this.date=null,this._renderDateDisplay(),this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),i._isDate(t)){var n=this.options.minDate,o=this.options.maxDate;i._isDate(n)&&t<n?t=n:i._isDate(o)&&t>o&&(t=o),this.date=new Date(t.getTime()),this._renderDateDisplay(),i._setToStartOfDay(this.date),this.gotoDate(this.date),e||"function"!=typeof this.options.onSelect||this.options.onSelect.call(this,this.date)}}},{key:"setInputValue",value:function(){this.el.value=this.toString(),this.$el.trigger("change",{firedBy:this})}},{key:"_renderDateDisplay",value:function(){var t=i._isDate(this.date)?this.date:new Date,e=this.options.i18n,n=e.weekdaysShort[t.getDay()],o=e.monthsShort[t.getMonth()],a=t.getDate();this.yearTextEl.innerHTML=t.getFullYear(),this.dateTextEl.innerHTML=n+", "+o+" "+a}},{key:"gotoDate",value:function(t){var e=!0;if(i._isDate(t)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),o=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),a=t.getTime();o.setMonth(o.getMonth()+1),o.setDate(o.getDate()-1),e=a<n.getTime()||o.getTime()<a}e&&(this.calendars=[{month:t.getMonth(),year:t.getFullYear()}]),this.adjustCalendars()}}},{key:"adjustCalendars",value:function(){this.calendars[0]=this.adjustCalendar(this.calendars[0]),this.draw()}},{key:"adjustCalendar",value:function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),t.month>11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t}},{key:"nextMonth",value:function(){this.calendars[0].month++,this.adjustCalendars()}},{key:"prevMonth",value:function(){this.calendars[0].month--,this.adjustCalendars()}},{key:"render",value:function(t,e,n){var o=this.options,a=new Date,r=i._getDaysInMonth(t,e),s=new Date(t,e,1).getDay(),l=[],d=[];i._setToStartOfDay(a),o.firstDay>0&&(s-=o.firstDay)<0&&(s+=7);for(var c=0===e?11:e-1,u=11===e?0:e+1,p=0===e?t-1:t,h=11===e?t+1:t,f=i._getDaysInMonth(p,c),m=r+s,g=m;g>7;)g-=7;m+=7-g;for(var b=!1,v=0,y=0;v<m;v++){var x=new Date(t,e,v-s+1),w=!!i._isDate(this.date)&&i._compareDates(x,this.date),k=i._compareDates(x,a),_=-1!==o.events.indexOf(x.toDateString()),C=v<s||v>=r+s,E=v-s+1,M=e,T=t,L=o.startRange&&i._compareDates(o.startRange,x),O=o.endRange&&i._compareDates(o.endRange,x),D=o.startRange&&o.endRange&&o.startRange<x&&x<o.endRange;C&&(v<s?(E=f+E,M=c,T=p):(E-=r,M=u,T=h));var B={day:E,month:M,year:T,hasEvent:_,isSelected:w,isToday:k,isDisabled:o.minDate&&x<o.minDate||o.maxDate&&x>o.maxDate||o.disableWeekends&&i._isWeekend(x)||o.disableDayFn&&o.disableDayFn(x),isEmpty:C,isStartRange:L,isEndRange:O,isInRange:D,showDaysInNextAndPreviousMonths:o.showDaysInNextAndPreviousMonths};d.push(this.renderDay(B)),7==++y&&(l.push(this.renderRow(d,o.isRTL,b)),d=[],y=0,b=!1)}return this.renderTable(o,l,n)}},{key:"renderDay",value:function(t){var e=[],n="false";if(t.isEmpty){if(!t.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';e.push("is-outside-current-month"),e.push("is-selection-disabled")}return t.isDisabled&&e.push("is-disabled"),t.isToday&&e.push("is-today"),t.isSelected&&(e.push("is-selected"),n="true"),t.hasEvent&&e.push("has-event"),t.isInRange&&e.push("is-inrange"),t.isStartRange&&e.push("is-startrange"),t.isEndRange&&e.push("is-endrange"),'<td data-day="'+t.day+'" class="'+e.join(" ")+'" aria-selected="'+n+'"><button class="datepicker-day-button" type="button" data-year="'+t.year+'" data-month="'+t.month+'" data-day="'+t.day+'">'+t.day+"</button></td>"}},{key:"renderRow",value:function(t,e,n){return'<tr class="datepicker-row'+(n?" is-selected":"")+'">'+(e?t.reverse():t).join("")+"</tr>"}},{key:"renderTable",value:function(t,e,n){return'<div class="datepicker-table-wrapper"><table cellpadding="0" cellspacing="0" class="datepicker-table" role="grid" aria-labelledby="'+n+'">'+this.renderHead(t)+this.renderBody(e)+"</table></div>"}},{key:"renderHead",value:function(t){var e=void 0,n=[];for(e=0;e<7;e++)n.push('<th scope="col"><abbr title="'+this.renderDayName(t,e)+'">'+this.renderDayName(t,e,!0)+"</abbr></th>");return"<thead><tr>"+(t.isRTL?n.reverse():n).join("")+"</tr></thead>"}},{key:"renderBody",value:function(t){return"<tbody>"+t.join("")+"</tbody>"}},{key:"renderTitle",value:function(e,n,i,o,a,r){var s,l,d=void 0,c=void 0,u=void 0,p=this.options,h=i===p.minYear,f=i===p.maxYear,m='<div id="'+r+'" class="datepicker-controls" role="heading" aria-live="assertive">',g=!0,b=!0;for(u=[],d=0;d<12;d++)u.push('<option value="'+(i===a?d-n:12+d-n)+'"'+(d===o?' selected="selected"':"")+(h&&d<p.minMonth||f&&d>p.maxMonth?'disabled="disabled"':"")+">"+p.i18n.months[d]+"</option>");for(s='<select class="datepicker-select orig-select-month" tabindex="-1">'+u.join("")+"</select>",t.isArray(p.yearRange)?(d=p.yearRange[0],c=p.yearRange[1]+1):(d=i-p.yearRange,c=1+i+p.yearRange),u=[];d<c&&d<=p.maxYear;d++)d>=p.minYear&&u.push('<option value="'+d+'" '+(d===i?'selected="selected"':"")+">"+d+"</option>");l='<select class="datepicker-select orig-select-year" tabindex="-1">'+u.join("")+"</select>";m+='<button class="month-prev'+(g?"":" is-disabled")+'" type="button"><svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/><path d="M0-.5h24v24H0z" fill="none"/></svg></button>',m+='<div class="selects-container">',p.showMonthAfterYear?m+=l+s:m+=s+l,m+="</div>",h&&(0===o||p.minMonth>=o)&&(g=!1),f&&(11===o||p.maxMonth<=o)&&(b=!1);return(m+='<button class="month-next'+(b?"":" is-disabled")+'" type="button"><svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/><path d="M0-.25h24v24H0z" fill="none"/></svg></button>')+"</div>"}},{key:"draw",value:function(t){if(this.isOpen||t){var e,n=this.options,i=n.minYear,o=n.maxYear,a=n.minMonth,r=n.maxMonth,s="";this._y<=i&&(this._y=i,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=o&&(this._y=o,!isNaN(r)&&this._m>r&&(this._m=r)),e="datepicker-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var l=0;l<1;l++)this._renderDateDisplay(),s+=this.renderTitle(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year,e)+this.render(this.calendars[l].year,this.calendars[l].month,e);this.destroySelects(),this.calendarEl.innerHTML=s;var d=this.calendarEl.querySelector(".orig-select-year"),c=this.calendarEl.querySelector(".orig-select-month");M.FormSelect.init(d,{classes:"select-year",dropdownOptions:{container:document.body,constrainWidth:!1}}),M.FormSelect.init(c,{classes:"select-month",dropdownOptions:{container:document.body,constrainWidth:!1}}),d.addEventListener("change",this._handleYearChange.bind(this)),c.addEventListener("change",this._handleMonthChange.bind(this)),"function"==typeof this.options.onDraw&&this.options.onDraw(this)}}},{key:"_setupEventHandlers",value:function(){this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleInputChangeBound=this._handleInputChange.bind(this),this._handleCalendarClickBound=this._handleCalendarClick.bind(this),this._finishSelectionBound=this._finishSelection.bind(this),this._handleMonthChange=this._handleMonthChange.bind(this),this._closeBound=this.close.bind(this),this.el.addEventListener("click",this._handleInputClickBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.el.addEventListener("change",this._handleInputChangeBound),this.calendarEl.addEventListener("click",this._handleCalendarClickBound),this.doneBtn.addEventListener("click",this._finishSelectionBound),this.cancelBtn.addEventListener("click",this._closeBound),this.options.showClearBtn&&(this._handleClearClickBound=this._handleClearClick.bind(this),this.clearBtn.addEventListener("click",this._handleClearClickBound))}},{key:"_setupVariables",value:function(){var e=this;this.$modalEl=t(i._template),this.modalEl=this.$modalEl[0],this.calendarEl=this.modalEl.querySelector(".datepicker-calendar"),this.yearTextEl=this.modalEl.querySelector(".year-text"),this.dateTextEl=this.modalEl.querySelector(".date-text"),this.options.showClearBtn&&(this.clearBtn=this.modalEl.querySelector(".datepicker-clear")),this.doneBtn=this.modalEl.querySelector(".datepicker-done"),this.cancelBtn=this.modalEl.querySelector(".datepicker-cancel"),this.formats={d:function(){return e.date.getDate()},dd:function(){var t=e.date.getDate();return(t<10?"0":"")+t},ddd:function(){return e.options.i18n.weekdaysShort[e.date.getDay()]},dddd:function(){return e.options.i18n.weekdays[e.date.getDay()]},m:function(){return e.date.getMonth()+1},mm:function(){var t=e.date.getMonth()+1;return(t<10?"0":"")+t},mmm:function(){return e.options.i18n.monthsShort[e.date.getMonth()]},mmmm:function(){return e.options.i18n.months[e.date.getMonth()]},yy:function(){return(""+e.date.getFullYear()).slice(2)},yyyy:function(){return e.date.getFullYear()}}}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleInputClickBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound),this.el.removeEventListener("change",this._handleInputChangeBound),this.calendarEl.removeEventListener("click",this._handleCalendarClickBound)}},{key:"_handleInputClick",value:function(){this.open()}},{key:"_handleInputKeydown",value:function(t){t.which===M.keys.ENTER&&(t.preventDefault(),this.open())}},{key:"_handleCalendarClick",value:function(e){if(this.isOpen){var n=t(e.target);n.hasClass("is-disabled")||(!n.hasClass("datepicker-day-button")||n.hasClass("is-empty")||n.parent().hasClass("is-disabled")?n.closest(".month-prev").length?this.prevMonth():n.closest(".month-next").length&&this.nextMonth():(this.setDate(new Date(e.target.getAttribute("data-year"),e.target.getAttribute("data-month"),e.target.getAttribute("data-day"))),this.options.autoClose&&this._finishSelection()))}}},{key:"_handleClearClick",value:function(){this.date=null,this.setInputValue(),this.close()}},{key:"_handleMonthChange",value:function(t){this.gotoMonth(t.target.value)}},{key:"_handleYearChange",value:function(t){this.gotoYear(t.target.value)}},{key:"gotoMonth",value:function(t){isNaN(t)||(this.calendars[0].month=parseInt(t,10),this.adjustCalendars())}},{key:"gotoYear",value:function(t){isNaN(t)||(this.calendars[0].year=parseInt(t,10),this.adjustCalendars())}},{key:"_handleInputChange",value:function(t){var e=void 0;t.firedBy!==this&&(e=this.options.parse?this.options.parse(this.el.value,this.options.format):new Date(Date.parse(this.el.value)),i._isDate(e)&&this.setDate(e))}},{key:"renderDayName",value:function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysAbbrev[e]:t.i18n.weekdays[e]}},{key:"_finishSelection",value:function(){this.setInputValue(),this.close()}},{key:"open",value:function(){if(!this.isOpen)return this.isOpen=!0,"function"==typeof this.options.onOpen&&this.options.onOpen.call(this),this.draw(),this.modal.open(),this}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,"function"==typeof this.options.onClose&&this.options.onClose.call(this),this.modal.close(),this}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"_isDate",value:function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())}},{key:"_isWeekend",value:function(t){var e=t.getDay();return 0===e||6===e}},{key:"_setToStartOfDay",value:function(t){i._isDate(t)&&t.setHours(0,0,0,0)}},{key:"_getDaysInMonth",value:function(t,e){return[31,i._isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]}},{key:"_isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"_compareDates",value:function(t,e){return t.getTime()===e.getTime()}},{key:"_setToStartOfDay",value:function(t){i._isDate(t)&&t.setHours(0,0,0,0)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Datepicker}},{key:"defaults",get:function(){return e}}]),i}(p);n._template=['<div class= "modal datepicker-modal">','<div class="modal-content datepicker-container">','<div class="datepicker-date-display">','<span class="year-text"></span>','<span class="date-text"></span>',"</div>",'<div class="datepicker-calendar-container">','<div class="datepicker-calendar"></div>','<div class="datepicker-footer">','<button class="btn-flat datepicker-clear waves-effect" style="visibility: hidden;" type="button"></button>','<div class="confirmation-btns">','<button class="btn-flat datepicker-cancel waves-effect" type="button"></button>','<button class="btn-flat datepicker-done waves-effect" type="button"></button>',"</div>","</div>","</div>","</div>","</div>"].join(""),M.Datepicker=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"datepicker","M_Datepicker")}(cash),function(t){"use strict";var e={dialRadius:135,outerRadius:105,innerRadius:70,tickRadius:20,duration:350,container:null,defaultTime:"now",fromNow:0,showClearBtn:!1,i18n:{cancel:"Cancel",clear:"Clear",done:"Ok"},autoClose:!1,twelveHour:!0,vibrate:!0,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,onSelect:null},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.el.M_Timepicker=o,o.options=t.extend({},i.defaults,n),o.id=M.guid(),o._insertHTMLIntoDOM(),o._setupModal(),o._setupVariables(),o._setupEventHandlers(),o._clockSetup(),o._pickerSetup(),o}return c(i,n),l(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.modal.destroy(),t(this.modalEl).remove(),this.el.M_Timepicker=void 0}},{key:"_setupEventHandlers",value:function(){this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleClockClickStartBound=this._handleClockClickStart.bind(this),this._handleDocumentClickMoveBound=this._handleDocumentClickMove.bind(this),this._handleDocumentClickEndBound=this._handleDocumentClickEnd.bind(this),this.el.addEventListener("click",this._handleInputClickBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.plate.addEventListener("mousedown",this._handleClockClickStartBound),this.plate.addEventListener("touchstart",this._handleClockClickStartBound),t(this.spanHours).on("click",this.showView.bind(this,"hours")),t(this.spanMinutes).on("click",this.showView.bind(this,"minutes"))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleInputClickBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound)}},{key:"_handleInputClick",value:function(){this.open()}},{key:"_handleInputKeydown",value:function(t){t.which===M.keys.ENTER&&(t.preventDefault(),this.open())}},{key:"_handleClockClickStart",value:function(t){t.preventDefault();var e=this.plate.getBoundingClientRect(),n=e.left,o=e.top;this.x0=n+this.options.dialRadius,this.y0=o+this.options.dialRadius,this.moved=!1;var a=i._Pos(t);this.dx=a.x-this.x0,this.dy=a.y-this.y0,this.setHand(this.dx,this.dy,!1),document.addEventListener("mousemove",this._handleDocumentClickMoveBound),document.addEventListener("touchmove",this._handleDocumentClickMoveBound),document.addEventListener("mouseup",this._handleDocumentClickEndBound),document.addEventListener("touchend",this._handleDocumentClickEndBound)}},{key:"_handleDocumentClickMove",value:function(t){t.preventDefault();var e=i._Pos(t),n=e.x-this.x0,o=e.y-this.y0;this.moved=!0,this.setHand(n,o,!1,!0)}},{key:"_handleDocumentClickEnd",value:function(e){var n=this;e.preventDefault(),document.removeEventListener("mouseup",this._handleDocumentClickEndBound),document.removeEventListener("touchend",this._handleDocumentClickEndBound);var o=i._Pos(e),a=o.x-this.x0,r=o.y-this.y0;this.moved&&a===this.dx&&r===this.dy&&this.setHand(a,r),"hours"===this.currentView?this.showView("minutes",this.options.duration/2):this.options.autoClose&&(t(this.minutesView).addClass("timepicker-dial-out"),setTimeout((function(){n.done()}),this.options.duration/2)),"function"==typeof this.options.onSelect&&this.options.onSelect.call(this,this.hours,this.minutes),document.removeEventListener("mousemove",this._handleDocumentClickMoveBound),document.removeEventListener("touchmove",this._handleDocumentClickMoveBound)}},{key:"_insertHTMLIntoDOM",value:function(){this.$modalEl=t(i._template),this.modalEl=this.$modalEl[0],this.modalEl.id="modal-"+this.id;var e=document.querySelector(this.options.container);this.options.container&&e?this.$modalEl.appendTo(e):this.$modalEl.insertBefore(this.el)}},{key:"_setupModal",value:function(){var t=this;this.modal=M.Modal.init(this.modalEl,{onOpenStart:this.options.onOpenStart,onOpenEnd:this.options.onOpenEnd,onCloseStart:this.options.onCloseStart,onCloseEnd:function(){"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t),t.isOpen=!1}})}},{key:"_setupVariables",value:function(){this.currentView="hours",this.vibrate=navigator.vibrate?"vibrate":navigator.webkitVibrate?"webkitVibrate":null,this._canvas=this.modalEl.querySelector(".timepicker-canvas"),this.plate=this.modalEl.querySelector(".timepicker-plate"),this.hoursView=this.modalEl.querySelector(".timepicker-hours"),this.minutesView=this.modalEl.querySelector(".timepicker-minutes"),this.spanHours=this.modalEl.querySelector(".timepicker-span-hours"),this.spanMinutes=this.modalEl.querySelector(".timepicker-span-minutes"),this.spanAmPm=this.modalEl.querySelector(".timepicker-span-am-pm"),this.footer=this.modalEl.querySelector(".timepicker-footer"),this.amOrPm="PM"}},{key:"_pickerSetup",value:function(){var e=t('<button class="btn-flat timepicker-clear waves-effect" style="visibility: hidden;" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.clear+"</button>").appendTo(this.footer).on("click",this.clear.bind(this));this.options.showClearBtn&&e.css({visibility:""});var n=t('<div class="confirmation-btns"></div>');t('<button class="btn-flat timepicker-close waves-effect" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.cancel+"</button>").appendTo(n).on("click",this.close.bind(this)),t('<button class="btn-flat timepicker-close waves-effect" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.done+"</button>").appendTo(n).on("click",this.done.bind(this)),n.appendTo(this.footer)}},{key:"_clockSetup",value:function(){this.options.twelveHour&&(this.$amBtn=t('<div class="am-btn">AM</div>'),this.$pmBtn=t('<div class="pm-btn">PM</div>'),this.$amBtn.on("click",this._handleAmPmClick.bind(this)).appendTo(this.spanAmPm),this.$pmBtn.on("click",this._handleAmPmClick.bind(this)).appendTo(this.spanAmPm)),this._buildHoursView(),this._buildMinutesView(),this._buildSVGClock()}},{key:"_buildSVGClock",value:function(){var t=this.options.dialRadius,e=this.options.tickRadius,n=2*t,o=i._createSVGEl("svg");o.setAttribute("class","timepicker-svg"),o.setAttribute("width",n),o.setAttribute("height",n);var a=i._createSVGEl("g");a.setAttribute("transform","translate("+t+","+t+")");var r=i._createSVGEl("circle");r.setAttribute("class","timepicker-canvas-bearing"),r.setAttribute("cx",0),r.setAttribute("cy",0),r.setAttribute("r",4);var s=i._createSVGEl("line");s.setAttribute("x1",0),s.setAttribute("y1",0);var l=i._createSVGEl("circle");l.setAttribute("class","timepicker-canvas-bg"),l.setAttribute("r",e),a.appendChild(s),a.appendChild(l),a.appendChild(r),o.appendChild(a),this._canvas.appendChild(o),this.hand=s,this.bg=l,this.bearing=r,this.g=a}},{key:"_buildHoursView",value:function(){var e=t('<div class="timepicker-tick"></div>');if(this.options.twelveHour)for(var n=1;n<13;n+=1){var i=e.clone(),o=n/6*Math.PI,a=this.options.outerRadius;i.css({left:this.options.dialRadius+Math.sin(o)*a-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(o)*a-this.options.tickRadius+"px"}),i.html(0===n?"00":n),this.hoursView.appendChild(i[0])}else for(var r=0;r<24;r+=1){var s=e.clone(),l=r/6*Math.PI,d=r>0&&r<13?this.options.innerRadius:this.options.outerRadius;s.css({left:this.options.dialRadius+Math.sin(l)*d-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(l)*d-this.options.tickRadius+"px"}),s.html(0===r?"00":r),this.hoursView.appendChild(s[0])}}},{key:"_buildMinutesView",value:function(){for(var e=t('<div class="timepicker-tick"></div>'),n=0;n<60;n+=5){var o=e.clone(),a=n/30*Math.PI;o.css({left:this.options.dialRadius+Math.sin(a)*this.options.outerRadius-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(a)*this.options.outerRadius-this.options.tickRadius+"px"}),o.html(i._addLeadingZero(n)),this.minutesView.appendChild(o[0])}}},{key:"_handleAmPmClick",value:function(e){var n=t(e.target);this.amOrPm=n.hasClass("am-btn")?"AM":"PM",this._updateAmPmView()}},{key:"_updateAmPmView",value:function(){this.options.twelveHour&&(this.$amBtn.toggleClass("text-primary","AM"===this.amOrPm),this.$pmBtn.toggleClass("text-primary","PM"===this.amOrPm))}},{key:"_updateTimeFromInput",value:function(){var t=((this.el.value||this.options.defaultTime||"")+"").split(":");if(this.options.twelveHour&&void 0!==t[1]&&(t[1].toUpperCase().indexOf("AM")>0?this.amOrPm="AM":this.amOrPm="PM",t[1]=t[1].replace("AM","").replace("PM","")),"now"===t[0]){var e=new Date(+new Date+this.options.fromNow);t=[e.getHours(),e.getMinutes()],this.options.twelveHour&&(this.amOrPm=t[0]>=12&&t[0]<24?"PM":"AM")}this.hours=+t[0]||0,this.minutes=+t[1]||0,this.spanHours.innerHTML=this.hours,this.spanMinutes.innerHTML=i._addLeadingZero(this.minutes),this._updateAmPmView()}},{key:"showView",value:function(e,n){"minutes"===e&&t(this.hoursView).css("visibility");var i="hours"===e,o=i?this.hoursView:this.minutesView,a=i?this.minutesView:this.hoursView;this.currentView=e,t(this.spanHours).toggleClass("text-primary",i),t(this.spanMinutes).toggleClass("text-primary",!i),a.classList.add("timepicker-dial-out"),t(o).css("visibility","visible").removeClass("timepicker-dial-out"),this.resetClock(n),clearTimeout(this.toggleViewTimer),this.toggleViewTimer=setTimeout((function(){t(a).css("visibility","hidden")}),this.options.duration)}},{key:"resetClock",value:function(e){var n=this.currentView,i=this[n],o="hours"===n,a=i*(Math.PI/(o?6:30)),r=o&&i>0&&i<13?this.options.innerRadius:this.options.outerRadius,s=Math.sin(a)*r,l=-Math.cos(a)*r,d=this;e?(t(this.canvas).addClass("timepicker-canvas-out"),setTimeout((function(){t(d.canvas).removeClass("timepicker-canvas-out"),d.setHand(s,l)}),e)):this.setHand(s,l)}},{key:"setHand",value:function(t,e,n){var o=this,a=Math.atan2(t,-e),r="hours"===this.currentView,s=Math.PI/(r||n?6:30),l=Math.sqrt(t*t+e*e),d=r&&l<(this.options.outerRadius+this.options.innerRadius)/2,c=d?this.options.innerRadius:this.options.outerRadius;this.options.twelveHour&&(c=this.options.outerRadius),a<0&&(a=2*Math.PI+a);var u=Math.round(a/s);a=u*s,this.options.twelveHour?r?0===u&&(u=12):(n&&(u*=5),60===u&&(u=0)):r?(12===u&&(u=0),u=d?0===u?12:u:0===u?0:u+12):(n&&(u*=5),60===u&&(u=0)),this[this.currentView]!==u&&this.vibrate&&this.options.vibrate&&(this.vibrateTimer||(navigator[this.vibrate](10),this.vibrateTimer=setTimeout((function(){o.vibrateTimer=null}),100))),this[this.currentView]=u,r?this.spanHours.innerHTML=u:this.spanMinutes.innerHTML=i._addLeadingZero(u);var p=Math.sin(a)*(c-this.options.tickRadius),h=-Math.cos(a)*(c-this.options.tickRadius),f=Math.sin(a)*c,m=-Math.cos(a)*c;this.hand.setAttribute("x2",p),this.hand.setAttribute("y2",h),this.bg.setAttribute("cx",f),this.bg.setAttribute("cy",m)}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,this._updateTimeFromInput(),this.showView("hours"),this.modal.open())}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.modal.close())}},{key:"done",value:function(t,e){var n=this.el.value,o=e?"":i._addLeadingZero(this.hours)+":"+i._addLeadingZero(this.minutes);this.time=o,!e&&this.options.twelveHour&&(o=o+" "+this.amOrPm),this.el.value=o,o!==n&&this.$el.trigger("change"),this.close(),this.el.focus()}},{key:"clear",value:function(){this.done(null,!0)}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"_addLeadingZero",value:function(t){return(t<10?"0":"")+t}},{key:"_createSVGEl",value:function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}},{key:"_Pos",value:function(t){return t.targetTouches&&t.targetTouches.length>=1?{x:t.targetTouches[0].clientX,y:t.targetTouches[0].clientY}:{x:t.clientX,y:t.clientY}}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Timepicker}},{key:"defaults",get:function(){return e}}]),i}(p);n._template=['<div class= "modal timepicker-modal">','<div class="modal-content timepicker-container">','<div class="timepicker-digital-display">','<div class="timepicker-text-container">','<div class="timepicker-display-column">','<span class="timepicker-span-hours text-primary"></span>',":",'<span class="timepicker-span-minutes"></span>',"</div>",'<div class="timepicker-display-column timepicker-display-am-pm">','<div class="timepicker-span-am-pm"></div>',"</div>","</div>","</div>",'<div class="timepicker-analog-display">','<div class="timepicker-plate">','<div class="timepicker-canvas"></div>','<div class="timepicker-dial timepicker-hours"></div>','<div class="timepicker-dial timepicker-minutes timepicker-dial-out"></div>',"</div>",'<div class="timepicker-footer"></div>',"</div>","</div>","</div>"].join(""),M.Timepicker=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"timepicker","M_Timepicker")}(cash),function(t){"use strict";var e={},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.el.M_CharacterCounter=o,o.options=t.extend({},i.defaults,n),o.isInvalid=!1,o.isValidLength=!1,o._setupCounter(),o._setupEventHandlers(),o}return c(i,n),l(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.CharacterCounter=void 0,this._removeCounter()}},{key:"_setupEventHandlers",value:function(){this._handleUpdateCounterBound=this.updateCounter.bind(this),this.el.addEventListener("focus",this._handleUpdateCounterBound,!0),this.el.addEventListener("input",this._handleUpdateCounterBound,!0)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("focus",this._handleUpdateCounterBound,!0),this.el.removeEventListener("input",this._handleUpdateCounterBound,!0)}},{key:"_setupCounter",value:function(){this.counterEl=document.createElement("span"),t(this.counterEl).addClass("character-counter").css({float:"right","font-size":"12px",height:1}),this.$el.parent().append(this.counterEl)}},{key:"_removeCounter",value:function(){t(this.counterEl).remove()}},{key:"updateCounter",value:function(){var e=+this.$el.attr("data-length"),n=this.el.value.length;this.isValidLength=n<=e;var i=n;e&&(i+="/"+e,this._validateInput()),t(this.counterEl).html(i)}},{key:"_validateInput",value:function(){this.isValidLength&&this.isInvalid?(this.isInvalid=!1,this.$el.removeClass("invalid")):this.isValidLength||this.isInvalid||(this.isInvalid=!0,this.$el.removeClass("valid"),this.$el.addClass("invalid"))}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_CharacterCounter}},{key:"defaults",get:function(){return e}}]),i}(p);M.CharacterCounter=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"characterCounter","M_CharacterCounter")}(cash),function(t){"use strict";var e={duration:200,dist:-100,shift:0,padding:0,numVisible:5,fullWidth:!1,indicators:!1,noWrap:!1,onCycleTo:null},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.el.M_Carousel=o,o.options=t.extend({},i.defaults,n),o.hasMultipleSlides=o.$el.find(".carousel-item").length>1,o.showIndicators=o.options.indicators&&o.hasMultipleSlides,o.noWrap=o.options.noWrap||!o.hasMultipleSlides,o.pressed=!1,o.dragged=!1,o.offset=o.target=0,o.images=[],o.itemWidth=o.$el.find(".carousel-item").first().innerWidth(),o.itemHeight=o.$el.find(".carousel-item").first().innerHeight(),o.dim=2*o.itemWidth+o.options.padding||1,o._autoScrollBound=o._autoScroll.bind(o),o._trackBound=o._track.bind(o),o.options.fullWidth&&(o.options.dist=0,o._setCarouselHeight(),o.showIndicators&&o.$el.find(".carousel-fixed-item").addClass("with-indicators")),o.$indicators=t('<ul class="indicators"></ul>'),o.$el.find(".carousel-item").each((function(e,n){if(o.images.push(e),o.showIndicators){var i=t('<li class="indicator-item"></li>');0===n&&i[0].classList.add("active"),o.$indicators.append(i)}})),o.showIndicators&&o.$el.append(o.$indicators),o.count=o.images.length,o.options.numVisible=Math.min(o.count,o.options.numVisible),o.xform="transform",["webkit","Moz","O","ms"].every((function(t){var e=t+"Transform";return void 0===document.body.style[e]||(o.xform=e,!1)})),o._setupEventHandlers(),o._scroll(o.offset),o}return c(i,n),l(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Carousel=void 0}},{key:"_setupEventHandlers",value:function(){var t=this;this._handleCarouselTapBound=this._handleCarouselTap.bind(this),this._handleCarouselDragBound=this._handleCarouselDrag.bind(this),this._handleCarouselReleaseBound=this._handleCarouselRelease.bind(this),this._handleCarouselClickBound=this._handleCarouselClick.bind(this),void 0!==window.ontouchstart&&(this.el.addEventListener("touchstart",this._handleCarouselTapBound),this.el.addEventListener("touchmove",this._handleCarouselDragBound),this.el.addEventListener("touchend",this._handleCarouselReleaseBound)),this.el.addEventListener("mousedown",this._handleCarouselTapBound),this.el.addEventListener("mousemove",this._handleCarouselDragBound),this.el.addEventListener("mouseup",this._handleCarouselReleaseBound),this.el.addEventListener("mouseleave",this._handleCarouselReleaseBound),this.el.addEventListener("click",this._handleCarouselClickBound),this.showIndicators&&this.$indicators&&(this._handleIndicatorClickBound=this._handleIndicatorClick.bind(this),this.$indicators.find(".indicator-item").each((function(e,n){e.addEventListener("click",t._handleIndicatorClickBound)})));var e=M.throttle(this._handleResize,200);this._handleThrottledResizeBound=e.bind(this),window.addEventListener("resize",this._handleThrottledResizeBound)}},{key:"_removeEventHandlers",value:function(){var t=this;void 0!==window.ontouchstart&&(this.el.removeEventListener("touchstart",this._handleCarouselTapBound),this.el.removeEventListener("touchmove",this._handleCarouselDragBound),this.el.removeEventListener("touchend",this._handleCarouselReleaseBound)),this.el.removeEventListener("mousedown",this._handleCarouselTapBound),this.el.removeEventListener("mousemove",this._handleCarouselDragBound),this.el.removeEventListener("mouseup",this._handleCarouselReleaseBound),this.el.removeEventListener("mouseleave",this._handleCarouselReleaseBound),this.el.removeEventListener("click",this._handleCarouselClickBound),this.showIndicators&&this.$indicators&&this.$indicators.find(".indicator-item").each((function(e,n){e.removeEventListener("click",t._handleIndicatorClickBound)})),window.removeEventListener("resize",this._handleThrottledResizeBound)}},{key:"_handleCarouselTap",value:function(e){"mousedown"===e.type&&t(e.target).is("img")&&e.preventDefault(),this.pressed=!0,this.dragged=!1,this.verticalDragged=!1,this.reference=this._xpos(e),this.referenceY=this._ypos(e),this.velocity=this.amplitude=0,this.frame=this.offset,this.timestamp=Date.now(),clearInterval(this.ticker),this.ticker=setInterval(this._trackBound,100)}},{key:"_handleCarouselDrag",value:function(t){var e=void 0,n=void 0,i=void 0;if(this.pressed)if(e=this._xpos(t),n=this._ypos(t),i=this.reference-e,Math.abs(this.referenceY-n)<30&&!this.verticalDragged)(i>2||i<-2)&&(this.dragged=!0,this.reference=e,this._scroll(this.offset+i));else{if(this.dragged)return t.preventDefault(),t.stopPropagation(),!1;this.verticalDragged=!0}if(this.dragged)return t.preventDefault(),t.stopPropagation(),!1}},{key:"_handleCarouselRelease",value:function(t){if(this.pressed)return this.pressed=!1,clearInterval(this.ticker),this.target=this.offset,(this.velocity>10||this.velocity<-10)&&(this.amplitude=.9*this.velocity,this.target=this.offset+this.amplitude),this.target=Math.round(this.target/this.dim)*this.dim,this.noWrap&&(this.target>=this.dim*(this.count-1)?this.target=this.dim*(this.count-1):this.target<0&&(this.target=0)),this.amplitude=this.target-this.offset,this.timestamp=Date.now(),requestAnimationFrame(this._autoScrollBound),this.dragged&&(t.preventDefault(),t.stopPropagation()),!1}},{key:"_handleCarouselClick",value:function(e){if(this.dragged)return e.preventDefault(),e.stopPropagation(),!1;if(!this.options.fullWidth){var n=t(e.target).closest(".carousel-item").index();0!==this._wrap(this.center)-n&&(e.preventDefault(),e.stopPropagation()),this._cycleTo(n)}}},{key:"_handleIndicatorClick",value:function(e){e.stopPropagation();var n=t(e.target).closest(".indicator-item");n.length&&this._cycleTo(n.index())}},{key:"_handleResize",value:function(t){this.options.fullWidth?(this.itemWidth=this.$el.find(".carousel-item").first().innerWidth(),this.imageHeight=this.$el.find(".carousel-item.active").height(),this.dim=2*this.itemWidth+this.options.padding,this.offset=2*this.center*this.itemWidth,this.target=this.offset,this._setCarouselHeight(!0)):this._scroll()}},{key:"_setCarouselHeight",value:function(t){var e=this,n=this.$el.find(".carousel-item.active").length?this.$el.find(".carousel-item.active").first():this.$el.find(".carousel-item").first(),i=n.find("img").first();if(i.length)if(i[0].complete){var o=i.height();if(o>0)this.$el.css("height",o+"px");else{var a=i[0].naturalWidth,r=i[0].naturalHeight,s=this.$el.width()/a*r;this.$el.css("height",s+"px")}}else i.one("load",(function(t,n){e.$el.css("height",t.offsetHeight+"px")}));else if(!t){var l=n.height();this.$el.css("height",l+"px")}}},{key:"_xpos",value:function(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}},{key:"_ypos",value:function(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}},{key:"_wrap",value:function(t){return t>=this.count?t%this.count:t<0?this._wrap(this.count+t%this.count):t}},{key:"_track",value:function(){var t,e,n,i;e=(t=Date.now())-this.timestamp,this.timestamp=t,n=this.offset-this.frame,this.frame=this.offset,i=1e3*n/(1+e),this.velocity=.8*i+.2*this.velocity}},{key:"_autoScroll",value:function(){var t=void 0,e=void 0;this.amplitude&&(t=Date.now()-this.timestamp,(e=this.amplitude*Math.exp(-t/this.options.duration))>2||e<-2?(this._scroll(this.target-e),requestAnimationFrame(this._autoScrollBound)):this._scroll(this.target))}},{key:"_scroll",value:function(e){var n=this;this.$el.hasClass("scrolling")||this.el.classList.add("scrolling"),null!=this.scrollingTimeout&&window.clearTimeout(this.scrollingTimeout),this.scrollingTimeout=window.setTimeout((function(){n.$el.removeClass("scrolling")}),this.options.duration);var i,o,a,r,s=void 0,l=void 0,d=void 0,c=void 0,u=void 0,p=void 0,h=this.center,f=1/this.options.numVisible;if(this.offset="number"==typeof e?e:this.offset,this.center=Math.floor((this.offset+this.dim/2)/this.dim),r=-(a=(o=this.offset-this.center*this.dim)<0?1:-1)*o*2/this.dim,i=this.count>>1,this.options.fullWidth?(d="translateX(0)",p=1):(d="translateX("+(this.el.clientWidth-this.itemWidth)/2+"px) ",d+="translateY("+(this.el.clientHeight-this.itemHeight)/2+"px)",p=1-f*r),this.showIndicators){var m=this.center%this.count,g=this.$indicators.find(".indicator-item.active");g.index()!==m&&(g.removeClass("active"),this.$indicators.find(".indicator-item").eq(m)[0].classList.add("active"))}if(!this.noWrap||this.center>=0&&this.center<this.count){l=this.images[this._wrap(this.center)],t(l).hasClass("active")||(this.$el.find(".carousel-item").removeClass("active"),l.classList.add("active"));var b=d+" translateX("+-o/2+"px) translateX("+a*this.options.shift*r*s+"px) translateZ("+this.options.dist*r+"px)";this._updateItemStyle(l,p,0,b)}for(s=1;s<=i;++s){if(this.options.fullWidth?(c=this.options.dist,u=s===i&&o<0?1-r:1):(c=this.options.dist*(2*s+r*a),u=1-f*(2*s+r*a)),!this.noWrap||this.center+s<this.count){l=this.images[this._wrap(this.center+s)];var v=d+" translateX("+(this.options.shift+(this.dim*s-o)/2)+"px) translateZ("+c+"px)";this._updateItemStyle(l,u,-s,v)}if(this.options.fullWidth?(c=this.options.dist,u=s===i&&o>0?1-r:1):(c=this.options.dist*(2*s-r*a),u=1-f*(2*s-r*a)),!this.noWrap||this.center-s>=0){l=this.images[this._wrap(this.center-s)];var y=d+" translateX("+(-this.options.shift+(-this.dim*s-o)/2)+"px) translateZ("+c+"px)";this._updateItemStyle(l,u,-s,y)}}if(!this.noWrap||this.center>=0&&this.center<this.count){l=this.images[this._wrap(this.center)];var x=d+" translateX("+-o/2+"px) translateX("+a*this.options.shift*r+"px) translateZ("+this.options.dist*r+"px)";this._updateItemStyle(l,p,0,x)}var w=this.$el.find(".carousel-item").eq(this._wrap(this.center));h!==this.center&&"function"==typeof this.options.onCycleTo&&this.options.onCycleTo.call(this,w[0],this.dragged),"function"==typeof this.oneTimeCallback&&(this.oneTimeCallback.call(this,w[0],this.dragged),this.oneTimeCallback=null)}},{key:"_updateItemStyle",value:function(t,e,n,i){t.style[this.xform]=i,t.style.zIndex=n,t.style.opacity=e,t.style.visibility="visible"}},{key:"_cycleTo",value:function(t,e){var n=this.center%this.count-t;this.noWrap||(n<0?Math.abs(n+this.count)<Math.abs(n)&&(n+=this.count):n>0&&Math.abs(n-this.count)<n&&(n-=this.count)),this.target=this.dim*Math.round(this.offset/this.dim),n<0?this.target+=this.dim*Math.abs(n):n>0&&(this.target-=this.dim*n),"function"==typeof e&&(this.oneTimeCallback=e),this.offset!==this.target&&(this.amplitude=this.target-this.offset,this.timestamp=Date.now(),requestAnimationFrame(this._autoScrollBound))}},{key:"next",value:function(t){(void 0===t||isNaN(t))&&(t=1);var e=this.center+t;if(e>=this.count||e<0){if(this.noWrap)return;e=this._wrap(e)}this._cycleTo(e)}},{key:"prev",value:function(t){(void 0===t||isNaN(t))&&(t=1);var e=this.center-t;if(e>=this.count||e<0){if(this.noWrap)return;e=this._wrap(e)}this._cycleTo(e)}},{key:"set",value:function(t,e){if((void 0===t||isNaN(t))&&(t=0),t>this.count||t<0){if(this.noWrap)return;t=this._wrap(t)}this._cycleTo(t,e)}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Carousel}},{key:"defaults",get:function(){return e}}]),i}(p);M.Carousel=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"carousel","M_Carousel")}(cash),function(t){"use strict";var e={onOpen:void 0,onClose:void 0},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.el.M_TapTarget=o,o.options=t.extend({},i.defaults,n),o.isOpen=!1,o.$origin=t("#"+o.$el.attr("data-target")),o._setup(),o._calculatePositioning(),o._setupEventHandlers(),o}return c(i,n),l(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.TapTarget=void 0}},{key:"_setupEventHandlers",value:function(){this._handleDocumentClickBound=this._handleDocumentClick.bind(this),this._handleTargetClickBound=this._handleTargetClick.bind(this),this._handleOriginClickBound=this._handleOriginClick.bind(this),this.el.addEventListener("click",this._handleTargetClickBound),this.originEl.addEventListener("click",this._handleOriginClickBound);var t=M.throttle(this._handleResize,200);this._handleThrottledResizeBound=t.bind(this),window.addEventListener("resize",this._handleThrottledResizeBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleTargetClickBound),this.originEl.removeEventListener("click",this._handleOriginClickBound),window.removeEventListener("resize",this._handleThrottledResizeBound)}},{key:"_handleTargetClick",value:function(t){this.open()}},{key:"_handleOriginClick",value:function(t){this.close()}},{key:"_handleResize",value:function(t){this._calculatePositioning()}},{key:"_handleDocumentClick",value:function(e){t(e.target).closest(".tap-target-wrapper").length||(this.close(),e.preventDefault(),e.stopPropagation())}},{key:"_setup",value:function(){this.wrapper=this.$el.parent()[0],this.waveEl=t(this.wrapper).find(".tap-target-wave")[0],this.originEl=t(this.wrapper).find(".tap-target-origin")[0],this.contentEl=this.$el.find(".tap-target-content")[0],t(this.wrapper).hasClass(".tap-target-wrapper")||(this.wrapper=document.createElement("div"),this.wrapper.classList.add("tap-target-wrapper"),this.$el.before(t(this.wrapper)),this.wrapper.append(this.el)),this.contentEl||(this.contentEl=document.createElement("div"),this.contentEl.classList.add("tap-target-content"),this.$el.append(this.contentEl)),this.waveEl||(this.waveEl=document.createElement("div"),this.waveEl.classList.add("tap-target-wave"),this.originEl||(this.originEl=this.$origin.clone(!0,!0),this.originEl.addClass("tap-target-origin"),this.originEl.removeAttr("id"),this.originEl.removeAttr("style"),this.originEl=this.originEl[0],this.waveEl.append(this.originEl)),this.wrapper.append(this.waveEl))}},{key:"_calculatePositioning",value:function(){var e="fixed"===this.$origin.css("position");if(!e)for(var n=this.$origin.parents(),i=0;i<n.length&&!(e="fixed"==t(n[i]).css("position"));i++);var o=this.$origin.outerWidth(),a=this.$origin.outerHeight(),r=e?this.$origin.offset().top-M.getDocumentScrollTop():this.$origin.offset().top,s=e?this.$origin.offset().left-M.getDocumentScrollLeft():this.$origin.offset().left,l=window.innerWidth,d=window.innerHeight,c=l/2,u=d/2,p=s<=c,h=s>c,f=r<=u,m=r>u,g=s>=.25*l&&s<=.75*l,b=this.$el.outerWidth(),v=this.$el.outerHeight(),y=r+a/2-v/2,x=s+o/2-b/2,w=e?"fixed":"absolute",k=g?b:b/2+o,_=v/2,C=f?v/2:0,E=p&&!g?b/2-o:0,T=o,L=m?"bottom":"top",O=2*o,D=O,B=v/2-D/2,S=b/2-O/2,z={};z.top=f?y+"px":"",z.right=h?l-x-b+"px":"",z.bottom=m?d-y-v+"px":"",z.left=p?x+"px":"",z.position=w,t(this.wrapper).css(z),t(this.contentEl).css({width:k+"px",height:_+"px",top:C+"px",right:"0px",bottom:"0px",left:E+"px",padding:T+"px",verticalAlign:L}),t(this.waveEl).css({top:B+"px",left:S+"px",width:O+"px",height:D+"px"})}},{key:"open",value:function(){this.isOpen||("function"==typeof this.options.onOpen&&this.options.onOpen.call(this,this.$origin[0]),this.isOpen=!0,this.wrapper.classList.add("open"),document.body.addEventListener("click",this._handleDocumentClickBound,!0),document.body.addEventListener("touchend",this._handleDocumentClickBound))}},{key:"close",value:function(){this.isOpen&&("function"==typeof this.options.onClose&&this.options.onClose.call(this,this.$origin[0]),this.isOpen=!1,this.wrapper.classList.remove("open"),document.body.removeEventListener("click",this._handleDocumentClickBound,!0),document.body.removeEventListener("touchend",this._handleDocumentClickBound))}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_TapTarget}},{key:"defaults",get:function(){return e}}]),i}(p);M.TapTarget=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"tapTarget","M_TapTarget")}(cash),function(t){"use strict";var e={classes:"",dropdownOptions:{}},n=function(n){function i(e,n){u(this,i);var o=d(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,e,n));return o.$el.hasClass("browser-default")?d(o):(o.el.M_FormSelect=o,o.options=t.extend({},i.defaults,n),o.isMultiple=o.$el.prop("multiple"),o.el.tabIndex=-1,o._keysSelected={},o._valueDict={},o._setupDropdown(),o._setupEventHandlers(),o)}return c(i,n),l(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeDropdown(),this.el.M_FormSelect=void 0}},{key:"_setupEventHandlers",value:function(){var e=this;this._handleSelectChangeBound=this._handleSelectChange.bind(this),this._handleOptionClickBound=this._handleOptionClick.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),t(this.dropdownOptions).find("li:not(.optgroup)").each((function(t){t.addEventListener("click",e._handleOptionClickBound)})),this.el.addEventListener("change",this._handleSelectChangeBound),this.input.addEventListener("click",this._handleInputClickBound)}},{key:"_removeEventHandlers",value:function(){var e=this;t(this.dropdownOptions).find("li:not(.optgroup)").each((function(t){t.removeEventListener("click",e._handleOptionClickBound)})),this.el.removeEventListener("change",this._handleSelectChangeBound),this.input.removeEventListener("click",this._handleInputClickBound)}},{key:"_handleSelectChange",value:function(t){this._setValueToInput()}},{key:"_handleOptionClick",value:function(e){e.preventDefault();var n=t(e.target).closest("li")[0],i=n.id;if(!t(n).hasClass("disabled")&&!t(n).hasClass("optgroup")&&i.length){var o=!0;if(this.isMultiple){var a=t(this.dropdownOptions).find("li.disabled.selected");a.length&&(a.removeClass("selected"),a.find('input[type="checkbox"]').prop("checked",!1),this._toggleEntryFromArray(a[0].id)),o=this._toggleEntryFromArray(i)}else t(this.dropdownOptions).find("li").removeClass("selected"),t(n).toggleClass("selected",o);t(this._valueDict[i].el).prop("selected")!==o&&(t(this._valueDict[i].el).prop("selected",o),this.$el.trigger("change"))}e.stopPropagation()}},{key:"_handleInputClick",value:function(){this.dropdown&&this.dropdown.isOpen&&(this._setValueToInput(),this._setSelectedStates())}},{key:"_setupDropdown",value:function(){var e=this;this.wrapper=document.createElement("div"),t(this.wrapper).addClass("select-wrapper "+this.options.classes),this.$el.before(t(this.wrapper)),this.wrapper.appendChild(this.el),this.el.disabled&&this.wrapper.classList.add("disabled"),this.$selectOptions=this.$el.children("option, optgroup"),this.dropdownOptions=document.createElement("ul"),this.dropdownOptions.id="select-options-"+M.guid(),t(this.dropdownOptions).addClass("dropdown-content select-dropdown "+(this.isMultiple?"multiple-select-dropdown":"")),this.$selectOptions.length&&this.$selectOptions.each((function(n){if(t(n).is("option")){var i=void 0;i=e.isMultiple?e._appendOptionWithIcon(e.$el,n,"multiple"):e._appendOptionWithIcon(e.$el,n),e._addOptionToValueDict(n,i)}else if(t(n).is("optgroup")){var o=t(n).children("option");t(e.dropdownOptions).append(t('<li class="optgroup"><span>'+n.getAttribute("label")+"</span></li>")[0]),o.each((function(t){var n=e._appendOptionWithIcon(e.$el,t,"optgroup-option");e._addOptionToValueDict(t,n)}))}})),this.$el.after(this.dropdownOptions),this.input=document.createElement("input"),t(this.input).addClass("select-dropdown dropdown-trigger"),this.input.setAttribute("type","text"),this.input.setAttribute("readonly","true"),this.input.setAttribute("data-target",this.dropdownOptions.id),this.el.disabled&&t(this.input).prop("disabled","true"),this.$el.before(this.input),this._setValueToInput();var n=t('<svg class="caret" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');if(this.$el.before(n[0]),!this.el.disabled){var i=t.extend({},this.options.dropdownOptions);i.onOpenEnd=function(n){var i=t(e.dropdownOptions).find(".selected").first();if(i.length&&(M.keyDown=!0,e.dropdown.focusedIndex=i.index(),e.dropdown._focusFocusedItem(),M.keyDown=!1,e.dropdown.isScrollable)){var o=i[0].getBoundingClientRect().top-e.dropdownOptions.getBoundingClientRect().top;o-=e.dropdownOptions.clientHeight/2,e.dropdownOptions.scrollTop=o}},this.isMultiple&&(i.closeOnClick=!1),this.dropdown=M.Dropdown.init(this.input,i)}this._setSelectedStates()}},{key:"_addOptionToValueDict",value:function(t,e){var n=Object.keys(this._valueDict).length,i=this.dropdownOptions.id+n,o={};e.id=i,o.el=t,o.optionEl=e,this._valueDict[i]=o}},{key:"_removeDropdown",value:function(){t(this.wrapper).find(".caret").remove(),t(this.input).remove(),t(this.dropdownOptions).remove(),t(this.wrapper).before(this.$el),t(this.wrapper).remove()}},{key:"_appendOptionWithIcon",value:function(e,n,i){var o=n.disabled?"disabled ":"",a="optgroup-option"===i?"optgroup-option ":"",r=this.isMultiple?'<label><input type="checkbox"'+o+'"/><span>'+n.innerHTML+"</span></label>":n.innerHTML,s=t("<li></li>"),l=t("<span></span>");l.html(r),s.addClass(o+" "+a),s.append(l);var d=n.getAttribute("data-icon");if(d){var c=t('<img alt="" src="'+d+'">');s.prepend(c)}return t(this.dropdownOptions).append(s[0]),s[0]}},{key:"_toggleEntryFromArray",value:function(e){var n=!this._keysSelected.hasOwnProperty(e),i=t(this._valueDict[e].optionEl);return n?this._keysSelected[e]=!0:delete this._keysSelected[e],i.toggleClass("selected",n),i.find('input[type="checkbox"]').prop("checked",n),i.prop("selected",n),n}},{key:"_setValueToInput",value:function(){var e=[];if(this.$el.find("option").each((function(n){if(t(n).prop("selected")){var i=t(n).text();e.push(i)}})),!e.length){var n=this.$el.find("option:disabled").eq(0);n.length&&""===n[0].value&&e.push(n.text())}this.input.value=e.join(", ")}},{key:"_setSelectedStates",value:function(){for(var e in this._keysSelected={},this._valueDict){var n=this._valueDict[e],i=t(n.el).prop("selected");t(n.optionEl).find('input[type="checkbox"]').prop("checked",i),i?(this._activateOption(t(this.dropdownOptions),t(n.optionEl)),this._keysSelected[e]=!0):t(n.optionEl).removeClass("selected")}}},{key:"_activateOption",value:function(e,n){n&&(this.isMultiple||e.find("li.selected").removeClass("selected"),t(n).addClass("selected"))}},{key:"getSelectedValues",value:function(){var t=[];for(var e in this._keysSelected)t.push(this._valueDict[e].el.value);return t}}],[{key:"init",value:function(t,e){return s(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_FormSelect}},{key:"defaults",get:function(){return e}}]),i}(p);M.FormSelect=n,M.jQueryLoaded&&M.initializeJqueryWrapper(n,"formSelect","M_FormSelect")}(cash),function(t,e){"use strict";var n={},i=function(i){function o(e,n){u(this,o);var i=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,e,n));return i.el.M_Range=i,i.options=t.extend({},o.defaults,n),i._mousedown=!1,i._setupThumb(),i._setupEventHandlers(),i}return c(o,i),l(o,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeThumb(),this.el.M_Range=void 0}},{key:"_setupEventHandlers",value:function(){this._handleRangeChangeBound=this._handleRangeChange.bind(this),this._handleRangeMousedownTouchstartBound=this._handleRangeMousedownTouchstart.bind(this),this._handleRangeInputMousemoveTouchmoveBound=this._handleRangeInputMousemoveTouchmove.bind(this),this._handleRangeMouseupTouchendBound=this._handleRangeMouseupTouchend.bind(this),this._handleRangeBlurMouseoutTouchleaveBound=this._handleRangeBlurMouseoutTouchleave.bind(this),this.el.addEventListener("change",this._handleRangeChangeBound),this.el.addEventListener("mousedown",this._handleRangeMousedownTouchstartBound),this.el.addEventListener("touchstart",this._handleRangeMousedownTouchstartBound),this.el.addEventListener("input",this._handleRangeInputMousemoveTouchmoveBound),this.el.addEventListener("mousemove",this._handleRangeInputMousemoveTouchmoveBound),this.el.addEventListener("touchmove",this._handleRangeInputMousemoveTouchmoveBound),this.el.addEventListener("mouseup",this._handleRangeMouseupTouchendBound),this.el.addEventListener("touchend",this._handleRangeMouseupTouchendBound),this.el.addEventListener("blur",this._handleRangeBlurMouseoutTouchleaveBound),this.el.addEventListener("mouseout",this._handleRangeBlurMouseoutTouchleaveBound),this.el.addEventListener("touchleave",this._handleRangeBlurMouseoutTouchleaveBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("change",this._handleRangeChangeBound),this.el.removeEventListener("mousedown",this._handleRangeMousedownTouchstartBound),this.el.removeEventListener("touchstart",this._handleRangeMousedownTouchstartBound),this.el.removeEventListener("input",this._handleRangeInputMousemoveTouchmoveBound),this.el.removeEventListener("mousemove",this._handleRangeInputMousemoveTouchmoveBound),this.el.removeEventListener("touchmove",this._handleRangeInputMousemoveTouchmoveBound),this.el.removeEventListener("mouseup",this._handleRangeMouseupTouchendBound),this.el.removeEventListener("touchend",this._handleRangeMouseupTouchendBound),this.el.removeEventListener("blur",this._handleRangeBlurMouseoutTouchleaveBound),this.el.removeEventListener("mouseout",this._handleRangeBlurMouseoutTouchleaveBound),this.el.removeEventListener("touchleave",this._handleRangeBlurMouseoutTouchleaveBound)}},{key:"_handleRangeChange",value:function(){t(this.value).html(this.$el.val()),t(this.thumb).hasClass("active")||this._showRangeBubble();var e=this._calcRangeOffset();t(this.thumb).addClass("active").css("left",e+"px")}},{key:"_handleRangeMousedownTouchstart",value:function(e){if(t(this.value).html(this.$el.val()),this._mousedown=!0,this.$el.addClass("active"),t(this.thumb).hasClass("active")||this._showRangeBubble(),"input"!==e.type){var n=this._calcRangeOffset();t(this.thumb).addClass("active").css("left",n+"px")}}},{key:"_handleRangeInputMousemoveTouchmove",value:function(){if(this._mousedown){t(this.thumb).hasClass("active")||this._showRangeBubble();var e=this._calcRangeOffset();t(this.thumb).addClass("active").css("left",e+"px"),t(this.value).html(this.$el.val())}}},{key:"_handleRangeMouseupTouchend",value:function(){this._mousedown=!1,this.$el.removeClass("active")}},{key:"_handleRangeBlurMouseoutTouchleave",value:function(){if(!this._mousedown){var n=7+parseInt(this.$el.css("padding-left"))+"px";t(this.thumb).hasClass("active")&&(e.remove(this.thumb),e({targets:this.thumb,height:0,width:0,top:10,easing:"easeOutQuad",marginLeft:n,duration:100})),t(this.thumb).removeClass("active")}}},{key:"_setupThumb",value:function(){this.thumb=document.createElement("span"),this.value=document.createElement("span"),t(this.thumb).addClass("thumb"),t(this.value).addClass("value"),t(this.thumb).append(this.value),this.$el.after(this.thumb)}},{key:"_removeThumb",value:function(){t(this.thumb).remove()}},{key:"_showRangeBubble",value:function(){var n=-7+parseInt(t(this.thumb).parent().css("padding-left"))+"px";e.remove(this.thumb),e({targets:this.thumb,height:30,width:30,top:-30,marginLeft:n,duration:300,easing:"easeOutQuint"})}},{key:"_calcRangeOffset",value:function(){var t=this.$el.width()-15,e=parseFloat(this.$el.attr("max"))||100,n=parseFloat(this.$el.attr("min"))||0;return(parseFloat(this.$el.val())-n)/(e-n)*t}}],[{key:"init",value:function(t,e){return s(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Range}},{key:"defaults",get:function(){return n}}]),o}(p);M.Range=i,M.jQueryLoaded&&M.initializeJqueryWrapper(i,"range","M_Range"),i.init(t("input[type=range]"))}(cash,M.anime)}).call(this,n(0),n(0),n(0),n(2))},function(t,e,n){var i=n(7);t.exports="string"==typeof i?i:i.toString()},function(t,e,n){(e=n(4)(!1)).push([t.i,'/*!\r\n * Materialize v1.0.0 (http://materializecss.com)\r\n * Copyright 2014-2017 Materialize\r\n * MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)\r\n */\r\n.materialize-red {\n background-color: #e51c23 !important;\n}\n\n.materialize-red-text {\n color: #e51c23 !important;\n}\n\n.materialize-red.lighten-5 {\n background-color: #fdeaeb !important;\n}\n\n.materialize-red-text.text-lighten-5 {\n color: #fdeaeb !important;\n}\n\n.materialize-red.lighten-4 {\n background-color: #f8c1c3 !important;\n}\n\n.materialize-red-text.text-lighten-4 {\n color: #f8c1c3 !important;\n}\n\n.materialize-red.lighten-3 {\n background-color: #f3989b !important;\n}\n\n.materialize-red-text.text-lighten-3 {\n color: #f3989b !important;\n}\n\n.materialize-red.lighten-2 {\n background-color: #ee6e73 !important;\n}\n\n.materialize-red-text.text-lighten-2 {\n color: #ee6e73 !important;\n}\n\n.materialize-red.lighten-1 {\n background-color: #ea454b !important;\n}\n\n.materialize-red-text.text-lighten-1 {\n color: #ea454b !important;\n}\n\n.materialize-red.darken-1 {\n background-color: #d0181e !important;\n}\n\n.materialize-red-text.text-darken-1 {\n color: #d0181e !important;\n}\n\n.materialize-red.darken-2 {\n background-color: #b9151b !important;\n}\n\n.materialize-red-text.text-darken-2 {\n color: #b9151b !important;\n}\n\n.materialize-red.darken-3 {\n background-color: #a21318 !important;\n}\n\n.materialize-red-text.text-darken-3 {\n color: #a21318 !important;\n}\n\n.materialize-red.darken-4 {\n background-color: #8b1014 !important;\n}\n\n.materialize-red-text.text-darken-4 {\n color: #8b1014 !important;\n}\n\n.red {\n background-color: #F44336 !important;\n}\n\n.red-text {\n color: #F44336 !important;\n}\n\n.red.lighten-5 {\n background-color: #FFEBEE !important;\n}\n\n.red-text.text-lighten-5 {\n color: #FFEBEE !important;\n}\n\n.red.lighten-4 {\n background-color: #FFCDD2 !important;\n}\n\n.red-text.text-lighten-4 {\n color: #FFCDD2 !important;\n}\n\n.red.lighten-3 {\n background-color: #EF9A9A !important;\n}\n\n.red-text.text-lighten-3 {\n color: #EF9A9A !important;\n}\n\n.red.lighten-2 {\n background-color: #E57373 !important;\n}\n\n.red-text.text-lighten-2 {\n color: #E57373 !important;\n}\n\n.red.lighten-1 {\n background-color: #EF5350 !important;\n}\n\n.red-text.text-lighten-1 {\n color: #EF5350 !important;\n}\n\n.red.darken-1 {\n background-color: #E53935 !important;\n}\n\n.red-text.text-darken-1 {\n color: #E53935 !important;\n}\n\n.red.darken-2 {\n background-color: #D32F2F !important;\n}\n\n.red-text.text-darken-2 {\n color: #D32F2F !important;\n}\n\n.red.darken-3 {\n background-color: #C62828 !important;\n}\n\n.red-text.text-darken-3 {\n color: #C62828 !important;\n}\n\n.red.darken-4 {\n background-color: #B71C1C !important;\n}\n\n.red-text.text-darken-4 {\n color: #B71C1C !important;\n}\n\n.red.accent-1 {\n background-color: #FF8A80 !important;\n}\n\n.red-text.text-accent-1 {\n color: #FF8A80 !important;\n}\n\n.red.accent-2 {\n background-color: #FF5252 !important;\n}\n\n.red-text.text-accent-2 {\n color: #FF5252 !important;\n}\n\n.red.accent-3 {\n background-color: #FF1744 !important;\n}\n\n.red-text.text-accent-3 {\n color: #FF1744 !important;\n}\n\n.red.accent-4 {\n background-color: #D50000 !important;\n}\n\n.red-text.text-accent-4 {\n color: #D50000 !important;\n}\n\n.pink {\n background-color: #e91e63 !important;\n}\n\n.pink-text {\n color: #e91e63 !important;\n}\n\n.pink.lighten-5 {\n background-color: #fce4ec !important;\n}\n\n.pink-text.text-lighten-5 {\n color: #fce4ec !important;\n}\n\n.pink.lighten-4 {\n background-color: #f8bbd0 !important;\n}\n\n.pink-text.text-lighten-4 {\n color: #f8bbd0 !important;\n}\n\n.pink.lighten-3 {\n background-color: #f48fb1 !important;\n}\n\n.pink-text.text-lighten-3 {\n color: #f48fb1 !important;\n}\n\n.pink.lighten-2 {\n background-color: #f06292 !important;\n}\n\n.pink-text.text-lighten-2 {\n color: #f06292 !important;\n}\n\n.pink.lighten-1 {\n background-color: #ec407a !important;\n}\n\n.pink-text.text-lighten-1 {\n color: #ec407a !important;\n}\n\n.pink.darken-1 {\n background-color: #d81b60 !important;\n}\n\n.pink-text.text-darken-1 {\n color: #d81b60 !important;\n}\n\n.pink.darken-2 {\n background-color: #c2185b !important;\n}\n\n.pink-text.text-darken-2 {\n color: #c2185b !important;\n}\n\n.pink.darken-3 {\n background-color: #ad1457 !important;\n}\n\n.pink-text.text-darken-3 {\n color: #ad1457 !important;\n}\n\n.pink.darken-4 {\n background-color: #880e4f !important;\n}\n\n.pink-text.text-darken-4 {\n color: #880e4f !important;\n}\n\n.pink.accent-1 {\n background-color: #ff80ab !important;\n}\n\n.pink-text.text-accent-1 {\n color: #ff80ab !important;\n}\n\n.pink.accent-2 {\n background-color: #ff4081 !important;\n}\n\n.pink-text.text-accent-2 {\n color: #ff4081 !important;\n}\n\n.pink.accent-3 {\n background-color: #f50057 !important;\n}\n\n.pink-text.text-accent-3 {\n color: #f50057 !important;\n}\n\n.pink.accent-4 {\n background-color: #c51162 !important;\n}\n\n.pink-text.text-accent-4 {\n color: #c51162 !important;\n}\n\n.purple {\n background-color: #9c27b0 !important;\n}\n\n.purple-text {\n color: #9c27b0 !important;\n}\n\n.purple.lighten-5 {\n background-color: #f3e5f5 !important;\n}\n\n.purple-text.text-lighten-5 {\n color: #f3e5f5 !important;\n}\n\n.purple.lighten-4 {\n background-color: #e1bee7 !important;\n}\n\n.purple-text.text-lighten-4 {\n color: #e1bee7 !important;\n}\n\n.purple.lighten-3 {\n background-color: #ce93d8 !important;\n}\n\n.purple-text.text-lighten-3 {\n color: #ce93d8 !important;\n}\n\n.purple.lighten-2 {\n background-color: #ba68c8 !important;\n}\n\n.purple-text.text-lighten-2 {\n color: #ba68c8 !important;\n}\n\n.purple.lighten-1 {\n background-color: #ab47bc !important;\n}\n\n.purple-text.text-lighten-1 {\n color: #ab47bc !important;\n}\n\n.purple.darken-1 {\n background-color: #8e24aa !important;\n}\n\n.purple-text.text-darken-1 {\n color: #8e24aa !important;\n}\n\n.purple.darken-2 {\n background-color: #7b1fa2 !important;\n}\n\n.purple-text.text-darken-2 {\n color: #7b1fa2 !important;\n}\n\n.purple.darken-3 {\n background-color: #6a1b9a !important;\n}\n\n.purple-text.text-darken-3 {\n color: #6a1b9a !important;\n}\n\n.purple.darken-4 {\n background-color: #4a148c !important;\n}\n\n.purple-text.text-darken-4 {\n color: #4a148c !important;\n}\n\n.purple.accent-1 {\n background-color: #ea80fc !important;\n}\n\n.purple-text.text-accent-1 {\n color: #ea80fc !important;\n}\n\n.purple.accent-2 {\n background-color: #e040fb !important;\n}\n\n.purple-text.text-accent-2 {\n color: #e040fb !important;\n}\n\n.purple.accent-3 {\n background-color: #d500f9 !important;\n}\n\n.purple-text.text-accent-3 {\n color: #d500f9 !important;\n}\n\n.purple.accent-4 {\n background-color: #aa00ff !important;\n}\n\n.purple-text.text-accent-4 {\n color: #aa00ff !important;\n}\n\n.deep-purple {\n background-color: #673ab7 !important;\n}\n\n.deep-purple-text {\n color: #673ab7 !important;\n}\n\n.deep-purple.lighten-5 {\n background-color: #ede7f6 !important;\n}\n\n.deep-purple-text.text-lighten-5 {\n color: #ede7f6 !important;\n}\n\n.deep-purple.lighten-4 {\n background-color: #d1c4e9 !important;\n}\n\n.deep-purple-text.text-lighten-4 {\n color: #d1c4e9 !important;\n}\n\n.deep-purple.lighten-3 {\n background-color: #b39ddb !important;\n}\n\n.deep-purple-text.text-lighten-3 {\n color: #b39ddb !important;\n}\n\n.deep-purple.lighten-2 {\n background-color: #9575cd !important;\n}\n\n.deep-purple-text.text-lighten-2 {\n color: #9575cd !important;\n}\n\n.deep-purple.lighten-1 {\n background-color: #7e57c2 !important;\n}\n\n.deep-purple-text.text-lighten-1 {\n color: #7e57c2 !important;\n}\n\n.deep-purple.darken-1 {\n background-color: #5e35b1 !important;\n}\n\n.deep-purple-text.text-darken-1 {\n color: #5e35b1 !important;\n}\n\n.deep-purple.darken-2 {\n background-color: #512da8 !important;\n}\n\n.deep-purple-text.text-darken-2 {\n color: #512da8 !important;\n}\n\n.deep-purple.darken-3 {\n background-color: #4527a0 !important;\n}\n\n.deep-purple-text.text-darken-3 {\n color: #4527a0 !important;\n}\n\n.deep-purple.darken-4 {\n background-color: #311b92 !important;\n}\n\n.deep-purple-text.text-darken-4 {\n color: #311b92 !important;\n}\n\n.deep-purple.accent-1 {\n background-color: #b388ff !important;\n}\n\n.deep-purple-text.text-accent-1 {\n color: #b388ff !important;\n}\n\n.deep-purple.accent-2 {\n background-color: #7c4dff !important;\n}\n\n.deep-purple-text.text-accent-2 {\n color: #7c4dff !important;\n}\n\n.deep-purple.accent-3 {\n background-color: #651fff !important;\n}\n\n.deep-purple-text.text-accent-3 {\n color: #651fff !important;\n}\n\n.deep-purple.accent-4 {\n background-color: #6200ea !important;\n}\n\n.deep-purple-text.text-accent-4 {\n color: #6200ea !important;\n}\n\n.indigo {\n background-color: #3f51b5 !important;\n}\n\n.indigo-text {\n color: #3f51b5 !important;\n}\n\n.indigo.lighten-5 {\n background-color: #e8eaf6 !important;\n}\n\n.indigo-text.text-lighten-5 {\n color: #e8eaf6 !important;\n}\n\n.indigo.lighten-4 {\n background-color: #c5cae9 !important;\n}\n\n.indigo-text.text-lighten-4 {\n color: #c5cae9 !important;\n}\n\n.indigo.lighten-3 {\n background-color: #9fa8da !important;\n}\n\n.indigo-text.text-lighten-3 {\n color: #9fa8da !important;\n}\n\n.indigo.lighten-2 {\n background-color: #7986cb !important;\n}\n\n.indigo-text.text-lighten-2 {\n color: #7986cb !important;\n}\n\n.indigo.lighten-1 {\n background-color: #5c6bc0 !important;\n}\n\n.indigo-text.text-lighten-1 {\n color: #5c6bc0 !important;\n}\n\n.indigo.darken-1 {\n background-color: #3949ab !important;\n}\n\n.indigo-text.text-darken-1 {\n color: #3949ab !important;\n}\n\n.indigo.darken-2 {\n background-color: #303f9f !important;\n}\n\n.indigo-text.text-darken-2 {\n color: #303f9f !important;\n}\n\n.indigo.darken-3 {\n background-color: #283593 !important;\n}\n\n.indigo-text.text-darken-3 {\n color: #283593 !important;\n}\n\n.indigo.darken-4 {\n background-color: #1a237e !important;\n}\n\n.indigo-text.text-darken-4 {\n color: #1a237e !important;\n}\n\n.indigo.accent-1 {\n background-color: #8c9eff !important;\n}\n\n.indigo-text.text-accent-1 {\n color: #8c9eff !important;\n}\n\n.indigo.accent-2 {\n background-color: #536dfe !important;\n}\n\n.indigo-text.text-accent-2 {\n color: #536dfe !important;\n}\n\n.indigo.accent-3 {\n background-color: #3d5afe !important;\n}\n\n.indigo-text.text-accent-3 {\n color: #3d5afe !important;\n}\n\n.indigo.accent-4 {\n background-color: #304ffe !important;\n}\n\n.indigo-text.text-accent-4 {\n color: #304ffe !important;\n}\n\n.blue {\n background-color: #2196F3 !important;\n}\n\n.blue-text {\n color: #2196F3 !important;\n}\n\n.blue.lighten-5 {\n background-color: #E3F2FD !important;\n}\n\n.blue-text.text-lighten-5 {\n color: #E3F2FD !important;\n}\n\n.blue.lighten-4 {\n background-color: #BBDEFB !important;\n}\n\n.blue-text.text-lighten-4 {\n color: #BBDEFB !important;\n}\n\n.blue.lighten-3 {\n background-color: #90CAF9 !important;\n}\n\n.blue-text.text-lighten-3 {\n color: #90CAF9 !important;\n}\n\n.blue.lighten-2 {\n background-color: #64B5F6 !important;\n}\n\n.blue-text.text-lighten-2 {\n color: #64B5F6 !important;\n}\n\n.blue.lighten-1 {\n background-color: #42A5F5 !important;\n}\n\n.blue-text.text-lighten-1 {\n color: #42A5F5 !important;\n}\n\n.blue.darken-1 {\n background-color: #1E88E5 !important;\n}\n\n.blue-text.text-darken-1 {\n color: #1E88E5 !important;\n}\n\n.blue.darken-2 {\n background-color: #1976D2 !important;\n}\n\n.blue-text.text-darken-2 {\n color: #1976D2 !important;\n}\n\n.blue.darken-3 {\n background-color: #1565C0 !important;\n}\n\n.blue-text.text-darken-3 {\n color: #1565C0 !important;\n}\n\n.blue.darken-4 {\n background-color: #0D47A1 !important;\n}\n\n.blue-text.text-darken-4 {\n color: #0D47A1 !important;\n}\n\n.blue.accent-1 {\n background-color: #82B1FF !important;\n}\n\n.blue-text.text-accent-1 {\n color: #82B1FF !important;\n}\n\n.blue.accent-2 {\n background-color: #448AFF !important;\n}\n\n.blue-text.text-accent-2 {\n color: #448AFF !important;\n}\n\n.blue.accent-3 {\n background-color: #2979FF !important;\n}\n\n.blue-text.text-accent-3 {\n color: #2979FF !important;\n}\n\n.blue.accent-4 {\n background-color: #2962FF !important;\n}\n\n.blue-text.text-accent-4 {\n color: #2962FF !important;\n}\n\n.light-blue {\n background-color: #03a9f4 !important;\n}\n\n.light-blue-text {\n color: #03a9f4 !important;\n}\n\n.light-blue.lighten-5 {\n background-color: #e1f5fe !important;\n}\n\n.light-blue-text.text-lighten-5 {\n color: #e1f5fe !important;\n}\n\n.light-blue.lighten-4 {\n background-color: #b3e5fc !important;\n}\n\n.light-blue-text.text-lighten-4 {\n color: #b3e5fc !important;\n}\n\n.light-blue.lighten-3 {\n background-color: #81d4fa !important;\n}\n\n.light-blue-text.text-lighten-3 {\n color: #81d4fa !important;\n}\n\n.light-blue.lighten-2 {\n background-color: #4fc3f7 !important;\n}\n\n.light-blue-text.text-lighten-2 {\n color: #4fc3f7 !important;\n}\n\n.light-blue.lighten-1 {\n background-color: #29b6f6 !important;\n}\n\n.light-blue-text.text-lighten-1 {\n color: #29b6f6 !important;\n}\n\n.light-blue.darken-1 {\n background-color: #039be5 !important;\n}\n\n.light-blue-text.text-darken-1 {\n color: #039be5 !important;\n}\n\n.light-blue.darken-2 {\n background-color: #0288d1 !important;\n}\n\n.light-blue-text.text-darken-2 {\n color: #0288d1 !important;\n}\n\n.light-blue.darken-3 {\n background-color: #0277bd !important;\n}\n\n.light-blue-text.text-darken-3 {\n color: #0277bd !important;\n}\n\n.light-blue.darken-4 {\n background-color: #01579b !important;\n}\n\n.light-blue-text.text-darken-4 {\n color: #01579b !important;\n}\n\n.light-blue.accent-1 {\n background-color: #80d8ff !important;\n}\n\n.light-blue-text.text-accent-1 {\n color: #80d8ff !important;\n}\n\n.light-blue.accent-2 {\n background-color: #40c4ff !important;\n}\n\n.light-blue-text.text-accent-2 {\n color: #40c4ff !important;\n}\n\n.light-blue.accent-3 {\n background-color: #00b0ff !important;\n}\n\n.light-blue-text.text-accent-3 {\n color: #00b0ff !important;\n}\n\n.light-blue.accent-4 {\n background-color: #0091ea !important;\n}\n\n.light-blue-text.text-accent-4 {\n color: #0091ea !important;\n}\n\n.cyan {\n background-color: #00bcd4 !important;\n}\n\n.cyan-text {\n color: #00bcd4 !important;\n}\n\n.cyan.lighten-5 {\n background-color: #e0f7fa !important;\n}\n\n.cyan-text.text-lighten-5 {\n color: #e0f7fa !important;\n}\n\n.cyan.lighten-4 {\n background-color: #b2ebf2 !important;\n}\n\n.cyan-text.text-lighten-4 {\n color: #b2ebf2 !important;\n}\n\n.cyan.lighten-3 {\n background-color: #80deea !important;\n}\n\n.cyan-text.text-lighten-3 {\n color: #80deea !important;\n}\n\n.cyan.lighten-2 {\n background-color: #4dd0e1 !important;\n}\n\n.cyan-text.text-lighten-2 {\n color: #4dd0e1 !important;\n}\n\n.cyan.lighten-1 {\n background-color: #26c6da !important;\n}\n\n.cyan-text.text-lighten-1 {\n color: #26c6da !important;\n}\n\n.cyan.darken-1 {\n background-color: #00acc1 !important;\n}\n\n.cyan-text.text-darken-1 {\n color: #00acc1 !important;\n}\n\n.cyan.darken-2 {\n background-color: #0097a7 !important;\n}\n\n.cyan-text.text-darken-2 {\n color: #0097a7 !important;\n}\n\n.cyan.darken-3 {\n background-color: #00838f !important;\n}\n\n.cyan-text.text-darken-3 {\n color: #00838f !important;\n}\n\n.cyan.darken-4 {\n background-color: #006064 !important;\n}\n\n.cyan-text.text-darken-4 {\n color: #006064 !important;\n}\n\n.cyan.accent-1 {\n background-color: #84ffff !important;\n}\n\n.cyan-text.text-accent-1 {\n color: #84ffff !important;\n}\n\n.cyan.accent-2 {\n background-color: #18ffff !important;\n}\n\n.cyan-text.text-accent-2 {\n color: #18ffff !important;\n}\n\n.cyan.accent-3 {\n background-color: #00e5ff !important;\n}\n\n.cyan-text.text-accent-3 {\n color: #00e5ff !important;\n}\n\n.cyan.accent-4 {\n background-color: #00b8d4 !important;\n}\n\n.cyan-text.text-accent-4 {\n color: #00b8d4 !important;\n}\n\n.teal {\n background-color: #009688 !important;\n}\n\n.teal-text {\n color: #009688 !important;\n}\n\n.teal.lighten-5 {\n background-color: #e0f2f1 !important;\n}\n\n.teal-text.text-lighten-5 {\n color: #e0f2f1 !important;\n}\n\n.teal.lighten-4 {\n background-color: #b2dfdb !important;\n}\n\n.teal-text.text-lighten-4 {\n color: #b2dfdb !important;\n}\n\n.teal.lighten-3 {\n background-color: #80cbc4 !important;\n}\n\n.teal-text.text-lighten-3 {\n color: #80cbc4 !important;\n}\n\n.teal.lighten-2 {\n background-color: #4db6ac !important;\n}\n\n.teal-text.text-lighten-2 {\n color: #4db6ac !important;\n}\n\n.teal.lighten-1 {\n background-color: #26a69a !important;\n}\n\n.teal-text.text-lighten-1 {\n color: #26a69a !important;\n}\n\n.teal.darken-1 {\n background-color: #00897b !important;\n}\n\n.teal-text.text-darken-1 {\n color: #00897b !important;\n}\n\n.teal.darken-2 {\n background-color: #00796b !important;\n}\n\n.teal-text.text-darken-2 {\n color: #00796b !important;\n}\n\n.teal.darken-3 {\n background-color: #00695c !important;\n}\n\n.teal-text.text-darken-3 {\n color: #00695c !important;\n}\n\n.teal.darken-4 {\n background-color: #004d40 !important;\n}\n\n.teal-text.text-darken-4 {\n color: #004d40 !important;\n}\n\n.teal.accent-1 {\n background-color: #a7ffeb !important;\n}\n\n.teal-text.text-accent-1 {\n color: #a7ffeb !important;\n}\n\n.teal.accent-2 {\n background-color: #64ffda !important;\n}\n\n.teal-text.text-accent-2 {\n color: #64ffda !important;\n}\n\n.teal.accent-3 {\n background-color: #1de9b6 !important;\n}\n\n.teal-text.text-accent-3 {\n color: #1de9b6 !important;\n}\n\n.teal.accent-4 {\n background-color: #00bfa5 !important;\n}\n\n.teal-text.text-accent-4 {\n color: #00bfa5 !important;\n}\n\n.green {\n background-color: #4CAF50 !important;\n}\n\n.green-text {\n color: #4CAF50 !important;\n}\n\n.green.lighten-5 {\n background-color: #E8F5E9 !important;\n}\n\n.green-text.text-lighten-5 {\n color: #E8F5E9 !important;\n}\n\n.green.lighten-4 {\n background-color: #C8E6C9 !important;\n}\n\n.green-text.text-lighten-4 {\n color: #C8E6C9 !important;\n}\n\n.green.lighten-3 {\n background-color: #A5D6A7 !important;\n}\n\n.green-text.text-lighten-3 {\n color: #A5D6A7 !important;\n}\n\n.green.lighten-2 {\n background-color: #81C784 !important;\n}\n\n.green-text.text-lighten-2 {\n color: #81C784 !important;\n}\n\n.green.lighten-1 {\n background-color: #66BB6A !important;\n}\n\n.green-text.text-lighten-1 {\n color: #66BB6A !important;\n}\n\n.green.darken-1 {\n background-color: #43A047 !important;\n}\n\n.green-text.text-darken-1 {\n color: #43A047 !important;\n}\n\n.green.darken-2 {\n background-color: #388E3C !important;\n}\n\n.green-text.text-darken-2 {\n color: #388E3C !important;\n}\n\n.green.darken-3 {\n background-color: #2E7D32 !important;\n}\n\n.green-text.text-darken-3 {\n color: #2E7D32 !important;\n}\n\n.green.darken-4 {\n background-color: #1B5E20 !important;\n}\n\n.green-text.text-darken-4 {\n color: #1B5E20 !important;\n}\n\n.green.accent-1 {\n background-color: #B9F6CA !important;\n}\n\n.green-text.text-accent-1 {\n color: #B9F6CA !important;\n}\n\n.green.accent-2 {\n background-color: #69F0AE !important;\n}\n\n.green-text.text-accent-2 {\n color: #69F0AE !important;\n}\n\n.green.accent-3 {\n background-color: #00E676 !important;\n}\n\n.green-text.text-accent-3 {\n color: #00E676 !important;\n}\n\n.green.accent-4 {\n background-color: #00C853 !important;\n}\n\n.green-text.text-accent-4 {\n color: #00C853 !important;\n}\n\n.light-green {\n background-color: #8bc34a !important;\n}\n\n.light-green-text {\n color: #8bc34a !important;\n}\n\n.light-green.lighten-5 {\n background-color: #f1f8e9 !important;\n}\n\n.light-green-text.text-lighten-5 {\n color: #f1f8e9 !important;\n}\n\n.light-green.lighten-4 {\n background-color: #dcedc8 !important;\n}\n\n.light-green-text.text-lighten-4 {\n color: #dcedc8 !important;\n}\n\n.light-green.lighten-3 {\n background-color: #c5e1a5 !important;\n}\n\n.light-green-text.text-lighten-3 {\n color: #c5e1a5 !important;\n}\n\n.light-green.lighten-2 {\n background-color: #aed581 !important;\n}\n\n.light-green-text.text-lighten-2 {\n color: #aed581 !important;\n}\n\n.light-green.lighten-1 {\n background-color: #9ccc65 !important;\n}\n\n.light-green-text.text-lighten-1 {\n color: #9ccc65 !important;\n}\n\n.light-green.darken-1 {\n background-color: #7cb342 !important;\n}\n\n.light-green-text.text-darken-1 {\n color: #7cb342 !important;\n}\n\n.light-green.darken-2 {\n background-color: #689f38 !important;\n}\n\n.light-green-text.text-darken-2 {\n color: #689f38 !important;\n}\n\n.light-green.darken-3 {\n background-color: #558b2f !important;\n}\n\n.light-green-text.text-darken-3 {\n color: #558b2f !important;\n}\n\n.light-green.darken-4 {\n background-color: #33691e !important;\n}\n\n.light-green-text.text-darken-4 {\n color: #33691e !important;\n}\n\n.light-green.accent-1 {\n background-color: #ccff90 !important;\n}\n\n.light-green-text.text-accent-1 {\n color: #ccff90 !important;\n}\n\n.light-green.accent-2 {\n background-color: #b2ff59 !important;\n}\n\n.light-green-text.text-accent-2 {\n color: #b2ff59 !important;\n}\n\n.light-green.accent-3 {\n background-color: #76ff03 !important;\n}\n\n.light-green-text.text-accent-3 {\n color: #76ff03 !important;\n}\n\n.light-green.accent-4 {\n background-color: #64dd17 !important;\n}\n\n.light-green-text.text-accent-4 {\n color: #64dd17 !important;\n}\n\n.lime {\n background-color: #cddc39 !important;\n}\n\n.lime-text {\n color: #cddc39 !important;\n}\n\n.lime.lighten-5 {\n background-color: #f9fbe7 !important;\n}\n\n.lime-text.text-lighten-5 {\n color: #f9fbe7 !important;\n}\n\n.lime.lighten-4 {\n background-color: #f0f4c3 !important;\n}\n\n.lime-text.text-lighten-4 {\n color: #f0f4c3 !important;\n}\n\n.lime.lighten-3 {\n background-color: #e6ee9c !important;\n}\n\n.lime-text.text-lighten-3 {\n color: #e6ee9c !important;\n}\n\n.lime.lighten-2 {\n background-color: #dce775 !important;\n}\n\n.lime-text.text-lighten-2 {\n color: #dce775 !important;\n}\n\n.lime.lighten-1 {\n background-color: #d4e157 !important;\n}\n\n.lime-text.text-lighten-1 {\n color: #d4e157 !important;\n}\n\n.lime.darken-1 {\n background-color: #c0ca33 !important;\n}\n\n.lime-text.text-darken-1 {\n color: #c0ca33 !important;\n}\n\n.lime.darken-2 {\n background-color: #afb42b !important;\n}\n\n.lime-text.text-darken-2 {\n color: #afb42b !important;\n}\n\n.lime.darken-3 {\n background-color: #9e9d24 !important;\n}\n\n.lime-text.text-darken-3 {\n color: #9e9d24 !important;\n}\n\n.lime.darken-4 {\n background-color: #827717 !important;\n}\n\n.lime-text.text-darken-4 {\n color: #827717 !important;\n}\n\n.lime.accent-1 {\n background-color: #f4ff81 !important;\n}\n\n.lime-text.text-accent-1 {\n color: #f4ff81 !important;\n}\n\n.lime.accent-2 {\n background-color: #eeff41 !important;\n}\n\n.lime-text.text-accent-2 {\n color: #eeff41 !important;\n}\n\n.lime.accent-3 {\n background-color: #c6ff00 !important;\n}\n\n.lime-text.text-accent-3 {\n color: #c6ff00 !important;\n}\n\n.lime.accent-4 {\n background-color: #aeea00 !important;\n}\n\n.lime-text.text-accent-4 {\n color: #aeea00 !important;\n}\n\n.yellow {\n background-color: #ffeb3b !important;\n}\n\n.yellow-text {\n color: #ffeb3b !important;\n}\n\n.yellow.lighten-5 {\n background-color: #fffde7 !important;\n}\n\n.yellow-text.text-lighten-5 {\n color: #fffde7 !important;\n}\n\n.yellow.lighten-4 {\n background-color: #fff9c4 !important;\n}\n\n.yellow-text.text-lighten-4 {\n color: #fff9c4 !important;\n}\n\n.yellow.lighten-3 {\n background-color: #fff59d !important;\n}\n\n.yellow-text.text-lighten-3 {\n color: #fff59d !important;\n}\n\n.yellow.lighten-2 {\n background-color: #fff176 !important;\n}\n\n.yellow-text.text-lighten-2 {\n color: #fff176 !important;\n}\n\n.yellow.lighten-1 {\n background-color: #ffee58 !important;\n}\n\n.yellow-text.text-lighten-1 {\n color: #ffee58 !important;\n}\n\n.yellow.darken-1 {\n background-color: #fdd835 !important;\n}\n\n.yellow-text.text-darken-1 {\n color: #fdd835 !important;\n}\n\n.yellow.darken-2 {\n background-color: #fbc02d !important;\n}\n\n.yellow-text.text-darken-2 {\n color: #fbc02d !important;\n}\n\n.yellow.darken-3 {\n background-color: #f9a825 !important;\n}\n\n.yellow-text.text-darken-3 {\n color: #f9a825 !important;\n}\n\n.yellow.darken-4 {\n background-color: #f57f17 !important;\n}\n\n.yellow-text.text-darken-4 {\n color: #f57f17 !important;\n}\n\n.yellow.accent-1 {\n background-color: #ffff8d !important;\n}\n\n.yellow-text.text-accent-1 {\n color: #ffff8d !important;\n}\n\n.yellow.accent-2 {\n background-color: #ffff00 !important;\n}\n\n.yellow-text.text-accent-2 {\n color: #ffff00 !important;\n}\n\n.yellow.accent-3 {\n background-color: #ffea00 !important;\n}\n\n.yellow-text.text-accent-3 {\n color: #ffea00 !important;\n}\n\n.yellow.accent-4 {\n background-color: #ffd600 !important;\n}\n\n.yellow-text.text-accent-4 {\n color: #ffd600 !important;\n}\n\n.amber {\n background-color: #ffc107 !important;\n}\n\n.amber-text {\n color: #ffc107 !important;\n}\n\n.amber.lighten-5 {\n background-color: #fff8e1 !important;\n}\n\n.amber-text.text-lighten-5 {\n color: #fff8e1 !important;\n}\n\n.amber.lighten-4 {\n background-color: #ffecb3 !important;\n}\n\n.amber-text.text-lighten-4 {\n color: #ffecb3 !important;\n}\n\n.amber.lighten-3 {\n background-color: #ffe082 !important;\n}\n\n.amber-text.text-lighten-3 {\n color: #ffe082 !important;\n}\n\n.amber.lighten-2 {\n background-color: #ffd54f !important;\n}\n\n.amber-text.text-lighten-2 {\n color: #ffd54f !important;\n}\n\n.amber.lighten-1 {\n background-color: #ffca28 !important;\n}\n\n.amber-text.text-lighten-1 {\n color: #ffca28 !important;\n}\n\n.amber.darken-1 {\n background-color: #ffb300 !important;\n}\n\n.amber-text.text-darken-1 {\n color: #ffb300 !important;\n}\n\n.amber.darken-2 {\n background-color: #ffa000 !important;\n}\n\n.amber-text.text-darken-2 {\n color: #ffa000 !important;\n}\n\n.amber.darken-3 {\n background-color: #ff8f00 !important;\n}\n\n.amber-text.text-darken-3 {\n color: #ff8f00 !important;\n}\n\n.amber.darken-4 {\n background-color: #ff6f00 !important;\n}\n\n.amber-text.text-darken-4 {\n color: #ff6f00 !important;\n}\n\n.amber.accent-1 {\n background-color: #ffe57f !important;\n}\n\n.amber-text.text-accent-1 {\n color: #ffe57f !important;\n}\n\n.amber.accent-2 {\n background-color: #ffd740 !important;\n}\n\n.amber-text.text-accent-2 {\n color: #ffd740 !important;\n}\n\n.amber.accent-3 {\n background-color: #ffc400 !important;\n}\n\n.amber-text.text-accent-3 {\n color: #ffc400 !important;\n}\n\n.amber.accent-4 {\n background-color: #ffab00 !important;\n}\n\n.amber-text.text-accent-4 {\n color: #ffab00 !important;\n}\n\n.orange {\n background-color: #ff9800 !important;\n}\n\n.orange-text {\n color: #ff9800 !important;\n}\n\n.orange.lighten-5 {\n background-color: #fff3e0 !important;\n}\n\n.orange-text.text-lighten-5 {\n color: #fff3e0 !important;\n}\n\n.orange.lighten-4 {\n background-color: #ffe0b2 !important;\n}\n\n.orange-text.text-lighten-4 {\n color: #ffe0b2 !important;\n}\n\n.orange.lighten-3 {\n background-color: #ffcc80 !important;\n}\n\n.orange-text.text-lighten-3 {\n color: #ffcc80 !important;\n}\n\n.orange.lighten-2 {\n background-color: #ffb74d !important;\n}\n\n.orange-text.text-lighten-2 {\n color: #ffb74d !important;\n}\n\n.orange.lighten-1 {\n background-color: #ffa726 !important;\n}\n\n.orange-text.text-lighten-1 {\n color: #ffa726 !important;\n}\n\n.orange.darken-1 {\n background-color: #fb8c00 !important;\n}\n\n.orange-text.text-darken-1 {\n color: #fb8c00 !important;\n}\n\n.orange.darken-2 {\n background-color: #f57c00 !important;\n}\n\n.orange-text.text-darken-2 {\n color: #f57c00 !important;\n}\n\n.orange.darken-3 {\n background-color: #ef6c00 !important;\n}\n\n.orange-text.text-darken-3 {\n color: #ef6c00 !important;\n}\n\n.orange.darken-4 {\n background-color: #e65100 !important;\n}\n\n.orange-text.text-darken-4 {\n color: #e65100 !important;\n}\n\n.orange.accent-1 {\n background-color: #ffd180 !important;\n}\n\n.orange-text.text-accent-1 {\n color: #ffd180 !important;\n}\n\n.orange.accent-2 {\n background-color: #ffab40 !important;\n}\n\n.orange-text.text-accent-2 {\n color: #ffab40 !important;\n}\n\n.orange.accent-3 {\n background-color: #ff9100 !important;\n}\n\n.orange-text.text-accent-3 {\n color: #ff9100 !important;\n}\n\n.orange.accent-4 {\n background-color: #ff6d00 !important;\n}\n\n.orange-text.text-accent-4 {\n color: #ff6d00 !important;\n}\n\n.deep-orange {\n background-color: #ff5722 !important;\n}\n\n.deep-orange-text {\n color: #ff5722 !important;\n}\n\n.deep-orange.lighten-5 {\n background-color: #fbe9e7 !important;\n}\n\n.deep-orange-text.text-lighten-5 {\n color: #fbe9e7 !important;\n}\n\n.deep-orange.lighten-4 {\n background-color: #ffccbc !important;\n}\n\n.deep-orange-text.text-lighten-4 {\n color: #ffccbc !important;\n}\n\n.deep-orange.lighten-3 {\n background-color: #ffab91 !important;\n}\n\n.deep-orange-text.text-lighten-3 {\n color: #ffab91 !important;\n}\n\n.deep-orange.lighten-2 {\n background-color: #ff8a65 !important;\n}\n\n.deep-orange-text.text-lighten-2 {\n color: #ff8a65 !important;\n}\n\n.deep-orange.lighten-1 {\n background-color: #ff7043 !important;\n}\n\n.deep-orange-text.text-lighten-1 {\n color: #ff7043 !important;\n}\n\n.deep-orange.darken-1 {\n background-color: #f4511e !important;\n}\n\n.deep-orange-text.text-darken-1 {\n color: #f4511e !important;\n}\n\n.deep-orange.darken-2 {\n background-color: #e64a19 !important;\n}\n\n.deep-orange-text.text-darken-2 {\n color: #e64a19 !important;\n}\n\n.deep-orange.darken-3 {\n background-color: #d84315 !important;\n}\n\n.deep-orange-text.text-darken-3 {\n color: #d84315 !important;\n}\n\n.deep-orange.darken-4 {\n background-color: #bf360c !important;\n}\n\n.deep-orange-text.text-darken-4 {\n color: #bf360c !important;\n}\n\n.deep-orange.accent-1 {\n background-color: #ff9e80 !important;\n}\n\n.deep-orange-text.text-accent-1 {\n color: #ff9e80 !important;\n}\n\n.deep-orange.accent-2 {\n background-color: #ff6e40 !important;\n}\n\n.deep-orange-text.text-accent-2 {\n color: #ff6e40 !important;\n}\n\n.deep-orange.accent-3 {\n background-color: #ff3d00 !important;\n}\n\n.deep-orange-text.text-accent-3 {\n color: #ff3d00 !important;\n}\n\n.deep-orange.accent-4 {\n background-color: #dd2c00 !important;\n}\n\n.deep-orange-text.text-accent-4 {\n color: #dd2c00 !important;\n}\n\n.brown {\n background-color: #795548 !important;\n}\n\n.brown-text {\n color: #795548 !important;\n}\n\n.brown.lighten-5 {\n background-color: #efebe9 !important;\n}\n\n.brown-text.text-lighten-5 {\n color: #efebe9 !important;\n}\n\n.brown.lighten-4 {\n background-color: #d7ccc8 !important;\n}\n\n.brown-text.text-lighten-4 {\n color: #d7ccc8 !important;\n}\n\n.brown.lighten-3 {\n background-color: #bcaaa4 !important;\n}\n\n.brown-text.text-lighten-3 {\n color: #bcaaa4 !important;\n}\n\n.brown.lighten-2 {\n background-color: #a1887f !important;\n}\n\n.brown-text.text-lighten-2 {\n color: #a1887f !important;\n}\n\n.brown.lighten-1 {\n background-color: #8d6e63 !important;\n}\n\n.brown-text.text-lighten-1 {\n color: #8d6e63 !important;\n}\n\n.brown.darken-1 {\n background-color: #6d4c41 !important;\n}\n\n.brown-text.text-darken-1 {\n color: #6d4c41 !important;\n}\n\n.brown.darken-2 {\n background-color: #5d4037 !important;\n}\n\n.brown-text.text-darken-2 {\n color: #5d4037 !important;\n}\n\n.brown.darken-3 {\n background-color: #4e342e !important;\n}\n\n.brown-text.text-darken-3 {\n color: #4e342e !important;\n}\n\n.brown.darken-4 {\n background-color: #3e2723 !important;\n}\n\n.brown-text.text-darken-4 {\n color: #3e2723 !important;\n}\n\n.blue-grey {\n background-color: #607d8b !important;\n}\n\n.blue-grey-text {\n color: #607d8b !important;\n}\n\n.blue-grey.lighten-5 {\n background-color: #eceff1 !important;\n}\n\n.blue-grey-text.text-lighten-5 {\n color: #eceff1 !important;\n}\n\n.blue-grey.lighten-4 {\n background-color: #cfd8dc !important;\n}\n\n.blue-grey-text.text-lighten-4 {\n color: #cfd8dc !important;\n}\n\n.blue-grey.lighten-3 {\n background-color: #b0bec5 !important;\n}\n\n.blue-grey-text.text-lighten-3 {\n color: #b0bec5 !important;\n}\n\n.blue-grey.lighten-2 {\n background-color: #90a4ae !important;\n}\n\n.blue-grey-text.text-lighten-2 {\n color: #90a4ae !important;\n}\n\n.blue-grey.lighten-1 {\n background-color: #78909c !important;\n}\n\n.blue-grey-text.text-lighten-1 {\n color: #78909c !important;\n}\n\n.blue-grey.darken-1 {\n background-color: #546e7a !important;\n}\n\n.blue-grey-text.text-darken-1 {\n color: #546e7a !important;\n}\n\n.blue-grey.darken-2 {\n background-color: #455a64 !important;\n}\n\n.blue-grey-text.text-darken-2 {\n color: #455a64 !important;\n}\n\n.blue-grey.darken-3 {\n background-color: #37474f !important;\n}\n\n.blue-grey-text.text-darken-3 {\n color: #37474f !important;\n}\n\n.blue-grey.darken-4 {\n background-color: #263238 !important;\n}\n\n.blue-grey-text.text-darken-4 {\n color: #263238 !important;\n}\n\n.grey {\n background-color: #9e9e9e !important;\n}\n\n.grey-text {\n color: #9e9e9e !important;\n}\n\n.grey.lighten-5 {\n background-color: #fafafa !important;\n}\n\n.grey-text.text-lighten-5 {\n color: #fafafa !important;\n}\n\n.grey.lighten-4 {\n background-color: #f5f5f5 !important;\n}\n\n.grey-text.text-lighten-4 {\n color: #f5f5f5 !important;\n}\n\n.grey.lighten-3 {\n background-color: #eeeeee !important;\n}\n\n.grey-text.text-lighten-3 {\n color: #eeeeee !important;\n}\n\n.grey.lighten-2 {\n background-color: #e0e0e0 !important;\n}\n\n.grey-text.text-lighten-2 {\n color: #e0e0e0 !important;\n}\n\n.grey.lighten-1 {\n background-color: #bdbdbd !important;\n}\n\n.grey-text.text-lighten-1 {\n color: #bdbdbd !important;\n}\n\n.grey.darken-1 {\n background-color: #757575 !important;\n}\n\n.grey-text.text-darken-1 {\n color: #757575 !important;\n}\n\n.grey.darken-2 {\n background-color: #616161 !important;\n}\n\n.grey-text.text-darken-2 {\n color: #616161 !important;\n}\n\n.grey.darken-3 {\n background-color: #424242 !important;\n}\n\n.grey-text.text-darken-3 {\n color: #424242 !important;\n}\n\n.grey.darken-4 {\n background-color: #212121 !important;\n}\n\n.grey-text.text-darken-4 {\n color: #212121 !important;\n}\n\n.black {\n background-color: #000000 !important;\n}\n\n.black-text {\n color: #000000 !important;\n}\n\n.white {\n background-color: #FFFFFF !important;\n}\n\n.white-text {\n color: #FFFFFF !important;\n}\n\n.transparent {\n background-color: transparent !important;\n}\n\n.transparent-text {\n color: transparent !important;\n}\n\n/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */\n/* Document\n ========================================================================== */\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in\n * IE on Windows Phone and in iOS.\n */\nhtml {\n line-height: 1.15;\n /* 1 */\n -ms-text-size-adjust: 100%;\n /* 2 */\n -webkit-text-size-adjust: 100%;\n /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n/**\n * Remove the margin in all browsers (opinionated).\n */\nbody {\n margin: 0;\n}\n\n/**\n * Add the correct display in IE 9-.\n */\narticle,\naside,\nfooter,\nheader,\nnav,\nsection {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n/**\n * Add the correct display in IE 9-.\n * 1. Add the correct display in IE.\n */\nfigcaption,\nfigure,\nmain {\n /* 1 */\n display: block;\n}\n\n/**\n * Add the correct margin in IE 8.\n */\nfigure {\n margin: 1em 40px;\n}\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\nhr {\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n /* 1 */\n height: 0;\n /* 1 */\n overflow: visible;\n /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\npre {\n font-family: monospace, monospace;\n /* 1 */\n font-size: 1em;\n /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n/**\n * 1. Remove the gray background on active links in IE 10.\n * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.\n */\na {\n background-color: transparent;\n /* 1 */\n -webkit-text-decoration-skip: objects;\n /* 2 */\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57- and Firefox 39-.\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\nabbr[title] {\n border-bottom: none;\n /* 1 */\n text-decoration: underline;\n /* 2 */\n -webkit-text-decoration: underline dotted;\n -moz-text-decoration: underline dotted;\n text-decoration: underline dotted;\n /* 2 */\n}\n\n/**\n * Prevent the duplicate application of `bolder` by the next rule in Safari 6.\n */\nb,\nstrong {\n font-weight: inherit;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace;\n /* 1 */\n font-size: 1em;\n /* 2 */\n}\n\n/**\n * Add the correct font style in Android 4.3-.\n */\ndfn {\n font-style: italic;\n}\n\n/**\n * Add the correct background and color in IE 9-.\n */\nmark {\n background-color: #ff0;\n color: #000;\n}\n\n/**\n * Add the correct font size in all browsers.\n */\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n/**\n * Add the correct display in IE 9-.\n */\naudio,\nvideo {\n display: inline-block;\n}\n\n/**\n * Add the correct display in iOS 4-7.\n */\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n\n/**\n * Remove the border on images inside links in IE 10-.\n */\nimg {\n border-style: none;\n}\n\n/**\n * Hide the overflow in IE.\n */\nsvg:not(:root) {\n overflow: hidden;\n}\n\n/* Forms\n ========================================================================== */\n/**\n * 1. Change the font styles in all browsers (opinionated).\n * 2. Remove the margin in Firefox and Safari.\n */\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: sans-serif;\n /* 1 */\n font-size: 100%;\n /* 1 */\n line-height: 1.15;\n /* 1 */\n margin: 0;\n /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n\n/**\n * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`\n * controls in Android 4.\n * 2. Correct the inability to style clickable types in iOS and Safari.\n */\nbutton,\nhtml [type="button"],\n[type="reset"],\n[type="submit"] {\n -webkit-appearance: button;\n /* 2 */\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\nbutton::-moz-focus-inner,\n[type="button"]::-moz-focus-inner,\n[type="reset"]::-moz-focus-inner,\n[type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\nbutton:-moz-focusring,\n[type="button"]:-moz-focusring,\n[type="reset"]:-moz-focusring,\n[type="submit"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\nlegend {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n /* 1 */\n color: inherit;\n /* 2 */\n display: table;\n /* 1 */\n max-width: 100%;\n /* 1 */\n padding: 0;\n /* 3 */\n white-space: normal;\n /* 1 */\n}\n\n/**\n * 1. Add the correct display in IE 9-.\n * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\nprogress {\n display: inline-block;\n /* 1 */\n vertical-align: baseline;\n /* 2 */\n}\n\n/**\n * Remove the default vertical scrollbar in IE.\n */\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10-.\n * 2. Remove the padding in IE 10-.\n */\n[type="checkbox"],\n[type="radio"] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n /* 1 */\n padding: 0;\n /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n[type="number"]::-webkit-inner-spin-button,\n[type="number"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n[type="search"] {\n -webkit-appearance: textfield;\n /* 1 */\n outline-offset: -2px;\n /* 2 */\n}\n\n/**\n * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.\n */\n[type="search"]::-webkit-search-cancel-button,\n[type="search"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n::-webkit-file-upload-button {\n -webkit-appearance: button;\n /* 1 */\n font: inherit;\n /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n/*\n * Add the correct display in IE 9-.\n * 1. Add the correct display in Edge, IE, and Firefox.\n */\ndetails,\nmenu {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\nsummary {\n display: list-item;\n}\n\n/* Scripting\n ========================================================================== */\n/**\n * Add the correct display in IE 9-.\n */\ncanvas {\n display: inline-block;\n}\n\n/**\n * Add the correct display in IE.\n */\ntemplate {\n display: none;\n}\n\n/* Hidden\n ========================================================================== */\n/**\n * Add the correct display in IE 10-.\n */\n[hidden] {\n display: none;\n}\n\nhtml {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n*, *:before, *:after {\n -webkit-box-sizing: inherit;\n box-sizing: inherit;\n}\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n}\n\nul:not(.browser-default) {\n padding-left: 0;\n list-style-type: none;\n}\n\nul:not(.browser-default) > li {\n list-style-type: none;\n}\n\na {\n color: #039be5;\n text-decoration: none;\n -webkit-tap-highlight-color: transparent;\n}\n\n.valign-wrapper {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.clearfix {\n clear: both;\n}\n\n.z-depth-0 {\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n}\n\n/* 2dp elevation modified*/\n.z-depth-1, nav, .card-panel, .card, .toast, .btn, .btn-large, .btn-small, .btn-floating, .dropdown-content, .collapsible, .sidenav {\n -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);\n}\n\n.z-depth-1-half, .btn:hover, .btn-large:hover, .btn-small:hover, .btn-floating:hover {\n -webkit-box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.14), 0 1px 7px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -1px rgba(0, 0, 0, 0.2);\n box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.14), 0 1px 7px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -1px rgba(0, 0, 0, 0.2);\n}\n\n/* 6dp elevation modified*/\n.z-depth-2 {\n -webkit-box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3);\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3);\n}\n\n/* 12dp elevation modified*/\n.z-depth-3 {\n -webkit-box-shadow: 0 8px 17px 2px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.2);\n box-shadow: 0 8px 17px 2px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.2);\n}\n\n/* 16dp elevation */\n.z-depth-4 {\n -webkit-box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -7px rgba(0, 0, 0, 0.2);\n box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -7px rgba(0, 0, 0, 0.2);\n}\n\n/* 24dp elevation */\n.z-depth-5, .modal {\n -webkit-box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.2);\n box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.2);\n}\n\n.hoverable {\n -webkit-transition: -webkit-box-shadow .25s;\n transition: -webkit-box-shadow .25s;\n transition: box-shadow .25s;\n transition: box-shadow .25s, -webkit-box-shadow .25s;\n}\n\n.hoverable:hover {\n -webkit-box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n}\n\n.divider {\n height: 1px;\n overflow: hidden;\n background-color: #e0e0e0;\n}\n\nblockquote {\n margin: 20px 0;\n padding-left: 1.5rem;\n border-left: 5px solid #ee6e73;\n}\n\ni {\n line-height: inherit;\n}\n\ni.left {\n float: left;\n margin-right: 15px;\n}\n\ni.right {\n float: right;\n margin-left: 15px;\n}\n\ni.tiny {\n font-size: 1rem;\n}\n\ni.small {\n font-size: 2rem;\n}\n\ni.medium {\n font-size: 4rem;\n}\n\ni.large {\n font-size: 6rem;\n}\n\nimg.responsive-img,\nvideo.responsive-video {\n max-width: 100%;\n height: auto;\n}\n\n.pagination li {\n display: inline-block;\n border-radius: 2px;\n text-align: center;\n vertical-align: top;\n height: 30px;\n}\n\n.pagination li a {\n color: #444;\n display: inline-block;\n font-size: 1.2rem;\n padding: 0 10px;\n line-height: 30px;\n}\n\n.pagination li.active a {\n color: #fff;\n}\n\n.pagination li.active {\n background-color: #ee6e73;\n}\n\n.pagination li.disabled a {\n cursor: default;\n color: #999;\n}\n\n.pagination li i {\n font-size: 2rem;\n}\n\n.pagination li.pages ul li {\n display: inline-block;\n float: none;\n}\n\n@media only screen and (max-width: 992px) {\n .pagination {\n width: 100%;\n }\n .pagination li.prev,\n .pagination li.next {\n width: 10%;\n }\n .pagination li.pages {\n width: 80%;\n overflow: hidden;\n white-space: nowrap;\n }\n}\n\n.breadcrumb {\n font-size: 18px;\n color: rgba(255, 255, 255, 0.7);\n}\n\n.breadcrumb i,\n.breadcrumb [class^="mdi-"], .breadcrumb [class*="mdi-"],\n.breadcrumb i.material-icons {\n display: inline-block;\n float: left;\n font-size: 24px;\n}\n\n.breadcrumb:before {\n content: \'\\E5CC\';\n color: rgba(255, 255, 255, 0.7);\n vertical-align: top;\n display: inline-block;\n font-family: \'Material Icons\';\n font-weight: normal;\n font-style: normal;\n font-size: 25px;\n margin: 0 10px 0 8px;\n -webkit-font-smoothing: antialiased;\n}\n\n.breadcrumb:first-child:before {\n display: none;\n}\n\n.breadcrumb:last-child {\n color: #fff;\n}\n\n.parallax-container {\n position: relative;\n overflow: hidden;\n height: 500px;\n}\n\n.parallax-container .parallax {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: -1;\n}\n\n.parallax-container .parallax img {\n opacity: 0;\n position: absolute;\n left: 50%;\n bottom: 0;\n min-width: 100%;\n min-height: 100%;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n}\n\n.pin-top, .pin-bottom {\n position: relative;\n}\n\n.pinned {\n position: fixed !important;\n}\n\n/*********************\n Transition Classes\n**********************/\nul.staggered-list li {\n opacity: 0;\n}\n\n.fade-in {\n opacity: 0;\n -webkit-transform-origin: 0 50%;\n transform-origin: 0 50%;\n}\n\n/*********************\n Media Query Classes\n**********************/\n@media only screen and (max-width: 600px) {\n .hide-on-small-only, .hide-on-small-and-down {\n display: none !important;\n }\n}\n\n@media only screen and (max-width: 992px) {\n .hide-on-med-and-down {\n display: none !important;\n }\n}\n\n@media only screen and (min-width: 601px) {\n .hide-on-med-and-up {\n display: none !important;\n }\n}\n\n@media only screen and (min-width: 600px) and (max-width: 992px) {\n .hide-on-med-only {\n display: none !important;\n }\n}\n\n@media only screen and (min-width: 993px) {\n .hide-on-large-only {\n display: none !important;\n }\n}\n\n@media only screen and (min-width: 1201px) {\n .hide-on-extra-large-only {\n display: none !important;\n }\n}\n\n@media only screen and (min-width: 1201px) {\n .show-on-extra-large {\n display: block !important;\n }\n}\n\n@media only screen and (min-width: 993px) {\n .show-on-large {\n display: block !important;\n }\n}\n\n@media only screen and (min-width: 600px) and (max-width: 992px) {\n .show-on-medium {\n display: block !important;\n }\n}\n\n@media only screen and (max-width: 600px) {\n .show-on-small {\n display: block !important;\n }\n}\n\n@media only screen and (min-width: 601px) {\n .show-on-medium-and-up {\n display: block !important;\n }\n}\n\n@media only screen and (max-width: 992px) {\n .show-on-medium-and-down {\n display: block !important;\n }\n}\n\n@media only screen and (max-width: 600px) {\n .center-on-small-only {\n text-align: center;\n }\n}\n\n.page-footer {\n padding-top: 20px;\n color: #fff;\n background-color: #ee6e73;\n}\n\n.page-footer .footer-copyright {\n overflow: hidden;\n min-height: 50px;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n -ms-flex-pack: justify;\n justify-content: space-between;\n padding: 10px 0px;\n color: rgba(255, 255, 255, 0.8);\n background-color: rgba(51, 51, 51, 0.08);\n}\n\ntable, th, td {\n border: none;\n}\n\ntable {\n width: 100%;\n display: table;\n border-collapse: collapse;\n border-spacing: 0;\n}\n\ntable.striped tr {\n border-bottom: none;\n}\n\ntable.striped > tbody > tr:nth-child(odd) {\n background-color: rgba(242, 242, 242, 0.5);\n}\n\ntable.striped > tbody > tr > td {\n border-radius: 0;\n}\n\ntable.highlight > tbody > tr {\n -webkit-transition: background-color .25s ease;\n transition: background-color .25s ease;\n}\n\ntable.highlight > tbody > tr:hover {\n background-color: rgba(242, 242, 242, 0.5);\n}\n\ntable.centered thead tr th, table.centered tbody tr td {\n text-align: center;\n}\n\ntr {\n border-bottom: 1px solid rgba(0, 0, 0, 0.12);\n}\n\ntd, th {\n padding: 15px 5px;\n display: table-cell;\n text-align: left;\n vertical-align: middle;\n border-radius: 2px;\n}\n\n@media only screen and (max-width: 992px) {\n table.responsive-table {\n width: 100%;\n border-collapse: collapse;\n border-spacing: 0;\n display: block;\n position: relative;\n /* sort out borders */\n }\n table.responsive-table td:empty:before {\n content: \'\\00a0\';\n }\n table.responsive-table th,\n table.responsive-table td {\n margin: 0;\n vertical-align: top;\n }\n table.responsive-table th {\n text-align: left;\n }\n table.responsive-table thead {\n display: block;\n float: left;\n }\n table.responsive-table thead tr {\n display: block;\n padding: 0 10px 0 0;\n }\n table.responsive-table thead tr th::before {\n content: "\\00a0";\n }\n table.responsive-table tbody {\n display: block;\n width: auto;\n position: relative;\n overflow-x: auto;\n white-space: nowrap;\n }\n table.responsive-table tbody tr {\n display: inline-block;\n vertical-align: top;\n }\n table.responsive-table th {\n display: block;\n text-align: right;\n }\n table.responsive-table td {\n display: block;\n min-height: 1.25em;\n text-align: left;\n }\n table.responsive-table tr {\n border-bottom: none;\n padding: 0 10px;\n }\n table.responsive-table thead {\n border: 0;\n border-right: 1px solid rgba(0, 0, 0, 0.12);\n }\n}\n\n.collection {\n margin: 0.5rem 0 1rem 0;\n border: 1px solid #e0e0e0;\n border-radius: 2px;\n overflow: hidden;\n position: relative;\n}\n\n.collection .collection-item {\n background-color: #fff;\n line-height: 1.5rem;\n padding: 10px 20px;\n margin: 0;\n border-bottom: 1px solid #e0e0e0;\n}\n\n.collection .collection-item.avatar {\n min-height: 84px;\n padding-left: 72px;\n position: relative;\n}\n\n.collection .collection-item.avatar:not(.circle-clipper) > .circle,\n.collection .collection-item.avatar :not(.circle-clipper) > .circle {\n position: absolute;\n width: 42px;\n height: 42px;\n overflow: hidden;\n left: 15px;\n display: inline-block;\n vertical-align: middle;\n}\n\n.collection .collection-item.avatar i.circle {\n font-size: 18px;\n line-height: 42px;\n color: #fff;\n background-color: #999;\n text-align: center;\n}\n\n.collection .collection-item.avatar .title {\n font-size: 16px;\n}\n\n.collection .collection-item.avatar p {\n margin: 0;\n}\n\n.collection .collection-item.avatar .secondary-content {\n position: absolute;\n top: 16px;\n right: 16px;\n}\n\n.collection .collection-item:last-child {\n border-bottom: none;\n}\n\n.collection .collection-item.active {\n background-color: #26a69a;\n color: #eafaf9;\n}\n\n.collection .collection-item.active .secondary-content {\n color: #fff;\n}\n\n.collection a.collection-item {\n display: block;\n -webkit-transition: .25s;\n transition: .25s;\n color: #26a69a;\n}\n\n.collection a.collection-item:not(.active):hover {\n background-color: #ddd;\n}\n\n.collection.with-header .collection-header {\n background-color: #fff;\n border-bottom: 1px solid #e0e0e0;\n padding: 10px 20px;\n}\n\n.collection.with-header .collection-item {\n padding-left: 30px;\n}\n\n.collection.with-header .collection-item.avatar {\n padding-left: 72px;\n}\n\n.secondary-content {\n float: right;\n color: #26a69a;\n}\n\n.collapsible .collection {\n margin: 0;\n border: none;\n}\n\n.video-container {\n position: relative;\n padding-bottom: 56.25%;\n height: 0;\n overflow: hidden;\n}\n\n.video-container iframe, .video-container object, .video-container embed {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.progress {\n position: relative;\n height: 4px;\n display: block;\n width: 100%;\n background-color: #acece6;\n border-radius: 2px;\n margin: 0.5rem 0 1rem 0;\n overflow: hidden;\n}\n\n.progress .determinate {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n background-color: #26a69a;\n -webkit-transition: width .3s linear;\n transition: width .3s linear;\n}\n\n.progress .indeterminate {\n background-color: #26a69a;\n}\n\n.progress .indeterminate:before {\n content: \'\';\n position: absolute;\n background-color: inherit;\n top: 0;\n left: 0;\n bottom: 0;\n will-change: left, right;\n -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n}\n\n.progress .indeterminate:after {\n content: \'\';\n position: absolute;\n background-color: inherit;\n top: 0;\n left: 0;\n bottom: 0;\n will-change: left, right;\n -webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;\n animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;\n -webkit-animation-delay: 1.15s;\n animation-delay: 1.15s;\n}\n\n@-webkit-keyframes indeterminate {\n 0% {\n left: -35%;\n right: 100%;\n }\n 60% {\n left: 100%;\n right: -90%;\n }\n 100% {\n left: 100%;\n right: -90%;\n }\n}\n\n@keyframes indeterminate {\n 0% {\n left: -35%;\n right: 100%;\n }\n 60% {\n left: 100%;\n right: -90%;\n }\n 100% {\n left: 100%;\n right: -90%;\n }\n}\n\n@-webkit-keyframes indeterminate-short {\n 0% {\n left: -200%;\n right: 100%;\n }\n 60% {\n left: 107%;\n right: -8%;\n }\n 100% {\n left: 107%;\n right: -8%;\n }\n}\n\n@keyframes indeterminate-short {\n 0% {\n left: -200%;\n right: 100%;\n }\n 60% {\n left: 107%;\n right: -8%;\n }\n 100% {\n left: 107%;\n right: -8%;\n }\n}\n\n/*******************\n Utility Classes\n*******************/\n.hide {\n display: none !important;\n}\n\n.left-align {\n text-align: left;\n}\n\n.right-align {\n text-align: right;\n}\n\n.center, .center-align {\n text-align: center;\n}\n\n.left {\n float: left !important;\n}\n\n.right {\n float: right !important;\n}\n\n.no-select, input[type=range],\ninput[type=range] + .thumb {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.circle {\n border-radius: 50%;\n}\n\n.center-block {\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n\n.truncate {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.no-padding {\n padding: 0 !important;\n}\n\nspan.badge {\n min-width: 3rem;\n padding: 0 6px;\n margin-left: 14px;\n text-align: center;\n font-size: 1rem;\n line-height: 22px;\n height: 22px;\n color: #757575;\n float: right;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\nspan.badge.new {\n font-weight: 300;\n font-size: 0.8rem;\n color: #fff;\n background-color: #26a69a;\n border-radius: 2px;\n}\n\nspan.badge.new:after {\n content: " new";\n}\n\nspan.badge[data-badge-caption]::after {\n content: " " attr(data-badge-caption);\n}\n\nnav ul a span.badge {\n display: inline-block;\n float: none;\n margin-left: 4px;\n line-height: 22px;\n height: 22px;\n -webkit-font-smoothing: auto;\n}\n\n.collection-item span.badge {\n margin-top: calc(0.75rem - 11px);\n}\n\n.collapsible span.badge {\n margin-left: auto;\n}\n\n.sidenav span.badge {\n margin-top: calc(24px - 11px);\n}\n\ntable span.badge {\n display: inline-block;\n float: none;\n margin-left: auto;\n}\n\n/* This is needed for some mobile phones to display the Google Icon font properly */\n.material-icons {\n text-rendering: optimizeLegibility;\n -webkit-font-feature-settings: \'liga\';\n -moz-font-feature-settings: \'liga\';\n font-feature-settings: \'liga\';\n}\n\n.container {\n margin: 0 auto;\n max-width: 1280px;\n width: 90%;\n}\n\n@media only screen and (min-width: 601px) {\n .container {\n width: 85%;\n }\n}\n\n@media only screen and (min-width: 993px) {\n .container {\n width: 70%;\n }\n}\n\n.col .row {\n margin-left: -0.75rem;\n margin-right: -0.75rem;\n}\n\n.section {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n\n.section.no-pad {\n padding: 0;\n}\n\n.section.no-pad-bot {\n padding-bottom: 0;\n}\n\n.section.no-pad-top {\n padding-top: 0;\n}\n\n.row {\n margin-left: auto;\n margin-right: auto;\n margin-bottom: 20px;\n}\n\n.row:after {\n content: "";\n display: table;\n clear: both;\n}\n\n.row .col {\n float: left;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n padding: 0 0.75rem;\n min-height: 1px;\n}\n\n.row .col[class*="push-"], .row .col[class*="pull-"] {\n position: relative;\n}\n\n.row .col.s1 {\n width: 8.3333333333%;\n margin-left: auto;\n left: auto;\n right: auto;\n}\n\n.row .col.s2 {\n width: 16.6666666667%;\n margin-left: auto;\n left: auto;\n right: auto;\n}\n\n.row .col.s3 {\n width: 25%;\n margin-left: auto;\n left: auto;\n right: auto;\n}\n\n.row .col.s4 {\n width: 33.3333333333%;\n margin-left: auto;\n left: auto;\n right: auto;\n}\n\n.row .col.s5 {\n width: 41.6666666667%;\n margin-left: auto;\n left: auto;\n right: auto;\n}\n\n.row .col.s6 {\n width: 50%;\n margin-left: auto;\n left: auto;\n right: auto;\n}\n\n.row .col.s7 {\n width: 58.3333333333%;\n margin-left: auto;\n left: auto;\n right: auto;\n}\n\n.row .col.s8 {\n width: 66.6666666667%;\n margin-left: auto;\n left: auto;\n right: auto;\n}\n\n.row .col.s9 {\n width: 75%;\n margin-left: auto;\n left: auto;\n right: auto;\n}\n\n.row .col.s10 {\n width: 83.3333333333%;\n margin-left: auto;\n left: auto;\n right: auto;\n}\n\n.row .col.s11 {\n width: 91.6666666667%;\n margin-left: auto;\n left: auto;\n right: auto;\n}\n\n.row .col.s12 {\n width: 100%;\n margin-left: auto;\n left: auto;\n right: auto;\n}\n\n.row .col.offset-s1 {\n margin-left: 8.3333333333%;\n}\n\n.row .col.pull-s1 {\n right: 8.3333333333%;\n}\n\n.row .col.push-s1 {\n left: 8.3333333333%;\n}\n\n.row .col.offset-s2 {\n margin-left: 16.6666666667%;\n}\n\n.row .col.pull-s2 {\n right: 16.6666666667%;\n}\n\n.row .col.push-s2 {\n left: 16.6666666667%;\n}\n\n.row .col.offset-s3 {\n margin-left: 25%;\n}\n\n.row .col.pull-s3 {\n right: 25%;\n}\n\n.row .col.push-s3 {\n left: 25%;\n}\n\n.row .col.offset-s4 {\n margin-left: 33.3333333333%;\n}\n\n.row .col.pull-s4 {\n right: 33.3333333333%;\n}\n\n.row .col.push-s4 {\n left: 33.3333333333%;\n}\n\n.row .col.offset-s5 {\n margin-left: 41.6666666667%;\n}\n\n.row .col.pull-s5 {\n right: 41.6666666667%;\n}\n\n.row .col.push-s5 {\n left: 41.6666666667%;\n}\n\n.row .col.offset-s6 {\n margin-left: 50%;\n}\n\n.row .col.pull-s6 {\n right: 50%;\n}\n\n.row .col.push-s6 {\n left: 50%;\n}\n\n.row .col.offset-s7 {\n margin-left: 58.3333333333%;\n}\n\n.row .col.pull-s7 {\n right: 58.3333333333%;\n}\n\n.row .col.push-s7 {\n left: 58.3333333333%;\n}\n\n.row .col.offset-s8 {\n margin-left: 66.6666666667%;\n}\n\n.row .col.pull-s8 {\n right: 66.6666666667%;\n}\n\n.row .col.push-s8 {\n left: 66.6666666667%;\n}\n\n.row .col.offset-s9 {\n margin-left: 75%;\n}\n\n.row .col.pull-s9 {\n right: 75%;\n}\n\n.row .col.push-s9 {\n left: 75%;\n}\n\n.row .col.offset-s10 {\n margin-left: 83.3333333333%;\n}\n\n.row .col.pull-s10 {\n right: 83.3333333333%;\n}\n\n.row .col.push-s10 {\n left: 83.3333333333%;\n}\n\n.row .col.offset-s11 {\n margin-left: 91.6666666667%;\n}\n\n.row .col.pull-s11 {\n right: 91.6666666667%;\n}\n\n.row .col.push-s11 {\n left: 91.6666666667%;\n}\n\n.row .col.offset-s12 {\n margin-left: 100%;\n}\n\n.row .col.pull-s12 {\n right: 100%;\n}\n\n.row .col.push-s12 {\n left: 100%;\n}\n\n@media only screen and (min-width: 601px) {\n .row .col.m1 {\n width: 8.3333333333%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.m2 {\n width: 16.6666666667%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.m3 {\n width: 25%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.m4 {\n width: 33.3333333333%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.m5 {\n width: 41.6666666667%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.m6 {\n width: 50%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.m7 {\n width: 58.3333333333%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.m8 {\n width: 66.6666666667%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.m9 {\n width: 75%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.m10 {\n width: 83.3333333333%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.m11 {\n width: 91.6666666667%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.m12 {\n width: 100%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.offset-m1 {\n margin-left: 8.3333333333%;\n }\n .row .col.pull-m1 {\n right: 8.3333333333%;\n }\n .row .col.push-m1 {\n left: 8.3333333333%;\n }\n .row .col.offset-m2 {\n margin-left: 16.6666666667%;\n }\n .row .col.pull-m2 {\n right: 16.6666666667%;\n }\n .row .col.push-m2 {\n left: 16.6666666667%;\n }\n .row .col.offset-m3 {\n margin-left: 25%;\n }\n .row .col.pull-m3 {\n right: 25%;\n }\n .row .col.push-m3 {\n left: 25%;\n }\n .row .col.offset-m4 {\n margin-left: 33.3333333333%;\n }\n .row .col.pull-m4 {\n right: 33.3333333333%;\n }\n .row .col.push-m4 {\n left: 33.3333333333%;\n }\n .row .col.offset-m5 {\n margin-left: 41.6666666667%;\n }\n .row .col.pull-m5 {\n right: 41.6666666667%;\n }\n .row .col.push-m5 {\n left: 41.6666666667%;\n }\n .row .col.offset-m6 {\n margin-left: 50%;\n }\n .row .col.pull-m6 {\n right: 50%;\n }\n .row .col.push-m6 {\n left: 50%;\n }\n .row .col.offset-m7 {\n margin-left: 58.3333333333%;\n }\n .row .col.pull-m7 {\n right: 58.3333333333%;\n }\n .row .col.push-m7 {\n left: 58.3333333333%;\n }\n .row .col.offset-m8 {\n margin-left: 66.6666666667%;\n }\n .row .col.pull-m8 {\n right: 66.6666666667%;\n }\n .row .col.push-m8 {\n left: 66.6666666667%;\n }\n .row .col.offset-m9 {\n margin-left: 75%;\n }\n .row .col.pull-m9 {\n right: 75%;\n }\n .row .col.push-m9 {\n left: 75%;\n }\n .row .col.offset-m10 {\n margin-left: 83.3333333333%;\n }\n .row .col.pull-m10 {\n right: 83.3333333333%;\n }\n .row .col.push-m10 {\n left: 83.3333333333%;\n }\n .row .col.offset-m11 {\n margin-left: 91.6666666667%;\n }\n .row .col.pull-m11 {\n right: 91.6666666667%;\n }\n .row .col.push-m11 {\n left: 91.6666666667%;\n }\n .row .col.offset-m12 {\n margin-left: 100%;\n }\n .row .col.pull-m12 {\n right: 100%;\n }\n .row .col.push-m12 {\n left: 100%;\n }\n}\n\n@media only screen and (min-width: 993px) {\n .row .col.l1 {\n width: 8.3333333333%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.l2 {\n width: 16.6666666667%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.l3 {\n width: 25%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.l4 {\n width: 33.3333333333%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.l5 {\n width: 41.6666666667%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.l6 {\n width: 50%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.l7 {\n width: 58.3333333333%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.l8 {\n width: 66.6666666667%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.l9 {\n width: 75%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.l10 {\n width: 83.3333333333%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.l11 {\n width: 91.6666666667%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.l12 {\n width: 100%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.offset-l1 {\n margin-left: 8.3333333333%;\n }\n .row .col.pull-l1 {\n right: 8.3333333333%;\n }\n .row .col.push-l1 {\n left: 8.3333333333%;\n }\n .row .col.offset-l2 {\n margin-left: 16.6666666667%;\n }\n .row .col.pull-l2 {\n right: 16.6666666667%;\n }\n .row .col.push-l2 {\n left: 16.6666666667%;\n }\n .row .col.offset-l3 {\n margin-left: 25%;\n }\n .row .col.pull-l3 {\n right: 25%;\n }\n .row .col.push-l3 {\n left: 25%;\n }\n .row .col.offset-l4 {\n margin-left: 33.3333333333%;\n }\n .row .col.pull-l4 {\n right: 33.3333333333%;\n }\n .row .col.push-l4 {\n left: 33.3333333333%;\n }\n .row .col.offset-l5 {\n margin-left: 41.6666666667%;\n }\n .row .col.pull-l5 {\n right: 41.6666666667%;\n }\n .row .col.push-l5 {\n left: 41.6666666667%;\n }\n .row .col.offset-l6 {\n margin-left: 50%;\n }\n .row .col.pull-l6 {\n right: 50%;\n }\n .row .col.push-l6 {\n left: 50%;\n }\n .row .col.offset-l7 {\n margin-left: 58.3333333333%;\n }\n .row .col.pull-l7 {\n right: 58.3333333333%;\n }\n .row .col.push-l7 {\n left: 58.3333333333%;\n }\n .row .col.offset-l8 {\n margin-left: 66.6666666667%;\n }\n .row .col.pull-l8 {\n right: 66.6666666667%;\n }\n .row .col.push-l8 {\n left: 66.6666666667%;\n }\n .row .col.offset-l9 {\n margin-left: 75%;\n }\n .row .col.pull-l9 {\n right: 75%;\n }\n .row .col.push-l9 {\n left: 75%;\n }\n .row .col.offset-l10 {\n margin-left: 83.3333333333%;\n }\n .row .col.pull-l10 {\n right: 83.3333333333%;\n }\n .row .col.push-l10 {\n left: 83.3333333333%;\n }\n .row .col.offset-l11 {\n margin-left: 91.6666666667%;\n }\n .row .col.pull-l11 {\n right: 91.6666666667%;\n }\n .row .col.push-l11 {\n left: 91.6666666667%;\n }\n .row .col.offset-l12 {\n margin-left: 100%;\n }\n .row .col.pull-l12 {\n right: 100%;\n }\n .row .col.push-l12 {\n left: 100%;\n }\n}\n\n@media only screen and (min-width: 1201px) {\n .row .col.xl1 {\n width: 8.3333333333%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.xl2 {\n width: 16.6666666667%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.xl3 {\n width: 25%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.xl4 {\n width: 33.3333333333%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.xl5 {\n width: 41.6666666667%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.xl6 {\n width: 50%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.xl7 {\n width: 58.3333333333%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.xl8 {\n width: 66.6666666667%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.xl9 {\n width: 75%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.xl10 {\n width: 83.3333333333%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.xl11 {\n width: 91.6666666667%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.xl12 {\n width: 100%;\n margin-left: auto;\n left: auto;\n right: auto;\n }\n .row .col.offset-xl1 {\n margin-left: 8.3333333333%;\n }\n .row .col.pull-xl1 {\n right: 8.3333333333%;\n }\n .row .col.push-xl1 {\n left: 8.3333333333%;\n }\n .row .col.offset-xl2 {\n margin-left: 16.6666666667%;\n }\n .row .col.pull-xl2 {\n right: 16.6666666667%;\n }\n .row .col.push-xl2 {\n left: 16.6666666667%;\n }\n .row .col.offset-xl3 {\n margin-left: 25%;\n }\n .row .col.pull-xl3 {\n right: 25%;\n }\n .row .col.push-xl3 {\n left: 25%;\n }\n .row .col.offset-xl4 {\n margin-left: 33.3333333333%;\n }\n .row .col.pull-xl4 {\n right: 33.3333333333%;\n }\n .row .col.push-xl4 {\n left: 33.3333333333%;\n }\n .row .col.offset-xl5 {\n margin-left: 41.6666666667%;\n }\n .row .col.pull-xl5 {\n right: 41.6666666667%;\n }\n .row .col.push-xl5 {\n left: 41.6666666667%;\n }\n .row .col.offset-xl6 {\n margin-left: 50%;\n }\n .row .col.pull-xl6 {\n right: 50%;\n }\n .row .col.push-xl6 {\n left: 50%;\n }\n .row .col.offset-xl7 {\n margin-left: 58.3333333333%;\n }\n .row .col.pull-xl7 {\n right: 58.3333333333%;\n }\n .row .col.push-xl7 {\n left: 58.3333333333%;\n }\n .row .col.offset-xl8 {\n margin-left: 66.6666666667%;\n }\n .row .col.pull-xl8 {\n right: 66.6666666667%;\n }\n .row .col.push-xl8 {\n left: 66.6666666667%;\n }\n .row .col.offset-xl9 {\n margin-left: 75%;\n }\n .row .col.pull-xl9 {\n right: 75%;\n }\n .row .col.push-xl9 {\n left: 75%;\n }\n .row .col.offset-xl10 {\n margin-left: 83.3333333333%;\n }\n .row .col.pull-xl10 {\n right: 83.3333333333%;\n }\n .row .col.push-xl10 {\n left: 83.3333333333%;\n }\n .row .col.offset-xl11 {\n margin-left: 91.6666666667%;\n }\n .row .col.pull-xl11 {\n right: 91.6666666667%;\n }\n .row .col.push-xl11 {\n left: 91.6666666667%;\n }\n .row .col.offset-xl12 {\n margin-left: 100%;\n }\n .row .col.pull-xl12 {\n right: 100%;\n }\n .row .col.push-xl12 {\n left: 100%;\n }\n}\n\nnav {\n color: #fff;\n background-color: #ee6e73;\n width: 100%;\n height: 56px;\n line-height: 56px;\n}\n\nnav.nav-extended {\n height: auto;\n}\n\nnav.nav-extended .nav-wrapper {\n min-height: 56px;\n height: auto;\n}\n\nnav.nav-extended .nav-content {\n position: relative;\n line-height: normal;\n}\n\nnav a {\n color: #fff;\n}\n\nnav i,\nnav [class^="mdi-"], nav [class*="mdi-"],\nnav i.material-icons {\n display: block;\n font-size: 24px;\n height: 56px;\n line-height: 56px;\n}\n\nnav .nav-wrapper {\n position: relative;\n height: 100%;\n}\n\n@media only screen and (min-width: 993px) {\n nav a.sidenav-trigger {\n display: none;\n }\n}\n\nnav .sidenav-trigger {\n float: left;\n position: relative;\n z-index: 1;\n height: 56px;\n margin: 0 18px;\n}\n\nnav .sidenav-trigger i {\n height: 56px;\n line-height: 56px;\n}\n\nnav .brand-logo {\n position: absolute;\n color: #fff;\n display: inline-block;\n font-size: 2.1rem;\n padding: 0;\n}\n\nnav .brand-logo.center {\n left: 50%;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n}\n\n@media only screen and (max-width: 992px) {\n nav .brand-logo {\n left: 50%;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n }\n nav .brand-logo.left, nav .brand-logo.right {\n padding: 0;\n -webkit-transform: none;\n transform: none;\n }\n nav .brand-logo.left {\n left: 0.5rem;\n }\n nav .brand-logo.right {\n right: 0.5rem;\n left: auto;\n }\n}\n\nnav .brand-logo.right {\n right: 0.5rem;\n padding: 0;\n}\n\nnav .brand-logo i,\nnav .brand-logo [class^="mdi-"], nav .brand-logo [class*="mdi-"],\nnav .brand-logo i.material-icons {\n float: left;\n margin-right: 15px;\n}\n\nnav .nav-title {\n display: inline-block;\n font-size: 32px;\n padding: 28px 0;\n}\n\nnav ul {\n margin: 0;\n}\n\nnav ul li {\n -webkit-transition: background-color .3s;\n transition: background-color .3s;\n float: left;\n padding: 0;\n}\n\nnav ul li.active {\n background-color: rgba(0, 0, 0, 0.1);\n}\n\nnav ul a {\n -webkit-transition: background-color .3s;\n transition: background-color .3s;\n font-size: 1rem;\n color: #fff;\n display: block;\n padding: 0 15px;\n cursor: pointer;\n}\n\nnav ul a.btn, nav ul a.btn-large, nav ul a.btn-small, nav ul a.btn-large, nav ul a.btn-flat, nav ul a.btn-floating {\n margin-top: -2px;\n margin-left: 15px;\n margin-right: 15px;\n}\n\nnav ul a.btn > .material-icons, nav ul a.btn-large > .material-icons, nav ul a.btn-small > .material-icons, nav ul a.btn-large > .material-icons, nav ul a.btn-flat > .material-icons, nav ul a.btn-floating > .material-icons {\n height: inherit;\n line-height: inherit;\n}\n\nnav ul a:hover {\n background-color: rgba(0, 0, 0, 0.1);\n}\n\nnav ul.left {\n float: left;\n}\n\nnav form {\n height: 100%;\n}\n\nnav .input-field {\n margin: 0;\n height: 100%;\n}\n\nnav .input-field input {\n height: 100%;\n font-size: 1.2rem;\n border: none;\n padding-left: 2rem;\n}\n\nnav .input-field input:focus, nav .input-field input[type=text]:valid, nav .input-field input[type=password]:valid, nav .input-field input[type=email]:valid, nav .input-field input[type=url]:valid, nav .input-field input[type=date]:valid {\n border: none;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n\nnav .input-field label {\n top: 0;\n left: 0;\n}\n\nnav .input-field label i {\n color: rgba(255, 255, 255, 0.7);\n -webkit-transition: color .3s;\n transition: color .3s;\n}\n\nnav .input-field label.active i {\n color: #fff;\n}\n\n.navbar-fixed {\n position: relative;\n height: 56px;\n z-index: 997;\n}\n\n.navbar-fixed nav {\n position: fixed;\n}\n\n@media only screen and (min-width: 601px) {\n nav.nav-extended .nav-wrapper {\n min-height: 64px;\n }\n nav, nav .nav-wrapper i, nav a.sidenav-trigger, nav a.sidenav-trigger i {\n height: 64px;\n line-height: 64px;\n }\n .navbar-fixed {\n height: 64px;\n }\n}\n\na {\n text-decoration: none;\n}\n\nhtml {\n line-height: 1.5;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n font-weight: normal;\n color: rgba(0, 0, 0, 0.87);\n}\n\n@media only screen and (min-width: 0) {\n html {\n font-size: 14px;\n }\n}\n\n@media only screen and (min-width: 992px) {\n html {\n font-size: 14.5px;\n }\n}\n\n@media only screen and (min-width: 1200px) {\n html {\n font-size: 15px;\n }\n}\n\nh1, h2, h3, h4, h5, h6 {\n font-weight: 400;\n line-height: 1.3;\n}\n\nh1 a, h2 a, h3 a, h4 a, h5 a, h6 a {\n font-weight: inherit;\n}\n\nh1 {\n font-size: 4.2rem;\n line-height: 110%;\n margin: 2.8rem 0 1.68rem 0;\n}\n\nh2 {\n font-size: 3.56rem;\n line-height: 110%;\n margin: 2.3733333333rem 0 1.424rem 0;\n}\n\nh3 {\n font-size: 2.92rem;\n line-height: 110%;\n margin: 1.9466666667rem 0 1.168rem 0;\n}\n\nh4 {\n font-size: 2.28rem;\n line-height: 110%;\n margin: 1.52rem 0 0.912rem 0;\n}\n\nh5 {\n font-size: 1.64rem;\n line-height: 110%;\n margin: 1.0933333333rem 0 0.656rem 0;\n}\n\nh6 {\n font-size: 1.15rem;\n line-height: 110%;\n margin: 0.7666666667rem 0 0.46rem 0;\n}\n\nem {\n font-style: italic;\n}\n\nstrong {\n font-weight: 500;\n}\n\nsmall {\n font-size: 75%;\n}\n\n.light {\n font-weight: 300;\n}\n\n.thin {\n font-weight: 200;\n}\n\n@media only screen and (min-width: 360px) {\n .flow-text {\n font-size: 1.2rem;\n }\n}\n\n@media only screen and (min-width: 390px) {\n .flow-text {\n font-size: 1.224rem;\n }\n}\n\n@media only screen and (min-width: 420px) {\n .flow-text {\n font-size: 1.248rem;\n }\n}\n\n@media only screen and (min-width: 450px) {\n .flow-text {\n font-size: 1.272rem;\n }\n}\n\n@media only screen and (min-width: 480px) {\n .flow-text {\n font-size: 1.296rem;\n }\n}\n\n@media only screen and (min-width: 510px) {\n .flow-text {\n font-size: 1.32rem;\n }\n}\n\n@media only screen and (min-width: 540px) {\n .flow-text {\n font-size: 1.344rem;\n }\n}\n\n@media only screen and (min-width: 570px) {\n .flow-text {\n font-size: 1.368rem;\n }\n}\n\n@media only screen and (min-width: 600px) {\n .flow-text {\n font-size: 1.392rem;\n }\n}\n\n@media only screen and (min-width: 630px) {\n .flow-text {\n font-size: 1.416rem;\n }\n}\n\n@media only screen and (min-width: 660px) {\n .flow-text {\n font-size: 1.44rem;\n }\n}\n\n@media only screen and (min-width: 690px) {\n .flow-text {\n font-size: 1.464rem;\n }\n}\n\n@media only screen and (min-width: 720px) {\n .flow-text {\n font-size: 1.488rem;\n }\n}\n\n@media only screen and (min-width: 750px) {\n .flow-text {\n font-size: 1.512rem;\n }\n}\n\n@media only screen and (min-width: 780px) {\n .flow-text {\n font-size: 1.536rem;\n }\n}\n\n@media only screen and (min-width: 810px) {\n .flow-text {\n font-size: 1.56rem;\n }\n}\n\n@media only screen and (min-width: 840px) {\n .flow-text {\n font-size: 1.584rem;\n }\n}\n\n@media only screen and (min-width: 870px) {\n .flow-text {\n font-size: 1.608rem;\n }\n}\n\n@media only screen and (min-width: 900px) {\n .flow-text {\n font-size: 1.632rem;\n }\n}\n\n@media only screen and (min-width: 930px) {\n .flow-text {\n font-size: 1.656rem;\n }\n}\n\n@media only screen and (min-width: 960px) {\n .flow-text {\n font-size: 1.68rem;\n }\n}\n\n@media only screen and (max-width: 360px) {\n .flow-text {\n font-size: 1.2rem;\n }\n}\n\n.scale-transition {\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;\n transition: -webkit-transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;\n transition: transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;\n transition: transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63), -webkit-transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;\n}\n\n.scale-transition.scale-out {\n -webkit-transform: scale(0);\n transform: scale(0);\n -webkit-transition: -webkit-transform .2s !important;\n transition: -webkit-transform .2s !important;\n transition: transform .2s !important;\n transition: transform .2s, -webkit-transform .2s !important;\n}\n\n.scale-transition.scale-in {\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n\n.card-panel {\n -webkit-transition: -webkit-box-shadow .25s;\n transition: -webkit-box-shadow .25s;\n transition: box-shadow .25s;\n transition: box-shadow .25s, -webkit-box-shadow .25s;\n padding: 24px;\n margin: 0.5rem 0 1rem 0;\n border-radius: 2px;\n background-color: #fff;\n}\n\n.card {\n position: relative;\n margin: 0.5rem 0 1rem 0;\n background-color: #fff;\n -webkit-transition: -webkit-box-shadow .25s;\n transition: -webkit-box-shadow .25s;\n transition: box-shadow .25s;\n transition: box-shadow .25s, -webkit-box-shadow .25s;\n border-radius: 2px;\n}\n\n.card .card-title {\n font-size: 24px;\n font-weight: 300;\n}\n\n.card .card-title.activator {\n cursor: pointer;\n}\n\n.card.small, .card.medium, .card.large {\n position: relative;\n}\n\n.card.small .card-image, .card.medium .card-image, .card.large .card-image {\n max-height: 60%;\n overflow: hidden;\n}\n\n.card.small .card-image + .card-content, .card.medium .card-image + .card-content, .card.large .card-image + .card-content {\n max-height: 40%;\n}\n\n.card.small .card-content, .card.medium .card-content, .card.large .card-content {\n max-height: 100%;\n overflow: hidden;\n}\n\n.card.small .card-action, .card.medium .card-action, .card.large .card-action {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n.card.small {\n height: 300px;\n}\n\n.card.medium {\n height: 400px;\n}\n\n.card.large {\n height: 500px;\n}\n\n.card.horizontal {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n\n.card.horizontal.small .card-image, .card.horizontal.medium .card-image, .card.horizontal.large .card-image {\n height: 100%;\n max-height: none;\n overflow: visible;\n}\n\n.card.horizontal.small .card-image img, .card.horizontal.medium .card-image img, .card.horizontal.large .card-image img {\n height: 100%;\n}\n\n.card.horizontal .card-image {\n max-width: 50%;\n}\n\n.card.horizontal .card-image img {\n border-radius: 2px 0 0 2px;\n max-width: 100%;\n width: auto;\n}\n\n.card.horizontal .card-stacked {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n position: relative;\n}\n\n.card.horizontal .card-stacked .card-content {\n -webkit-box-flex: 1;\n -webkit-flex-grow: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n\n.card.sticky-action .card-action {\n z-index: 2;\n}\n\n.card.sticky-action .card-reveal {\n z-index: 1;\n padding-bottom: 64px;\n}\n\n.card .card-image {\n position: relative;\n}\n\n.card .card-image img {\n display: block;\n border-radius: 2px 2px 0 0;\n position: relative;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n width: 100%;\n}\n\n.card .card-image .card-title {\n color: #fff;\n position: absolute;\n bottom: 0;\n left: 0;\n max-width: 100%;\n padding: 24px;\n}\n\n.card .card-content {\n padding: 24px;\n border-radius: 0 0 2px 2px;\n}\n\n.card .card-content p {\n margin: 0;\n}\n\n.card .card-content .card-title {\n display: block;\n line-height: 32px;\n margin-bottom: 8px;\n}\n\n.card .card-content .card-title i {\n line-height: 32px;\n}\n\n.card .card-action {\n background-color: inherit;\n border-top: 1px solid rgba(160, 160, 160, 0.2);\n position: relative;\n padding: 16px 24px;\n}\n\n.card .card-action:last-child {\n border-radius: 0 0 2px 2px;\n}\n\n.card .card-action a:not(.btn):not(.btn-large):not(.btn-small):not(.btn-large):not(.btn-floating) {\n color: #ffab40;\n margin-right: 24px;\n -webkit-transition: color .3s ease;\n transition: color .3s ease;\n text-transform: uppercase;\n}\n\n.card .card-action a:not(.btn):not(.btn-large):not(.btn-small):not(.btn-large):not(.btn-floating):hover {\n color: #ffd8a6;\n}\n\n.card .card-reveal {\n padding: 24px;\n position: absolute;\n background-color: #fff;\n width: 100%;\n overflow-y: auto;\n left: 0;\n top: 100%;\n height: 100%;\n z-index: 3;\n display: none;\n}\n\n.card .card-reveal .card-title {\n cursor: pointer;\n display: block;\n}\n\n#toast-container {\n display: block;\n position: fixed;\n z-index: 10000;\n}\n\n@media only screen and (max-width: 600px) {\n #toast-container {\n min-width: 100%;\n bottom: 0%;\n }\n}\n\n@media only screen and (min-width: 601px) and (max-width: 992px) {\n #toast-container {\n left: 5%;\n bottom: 7%;\n max-width: 90%;\n }\n}\n\n@media only screen and (min-width: 993px) {\n #toast-container {\n top: 10%;\n right: 7%;\n max-width: 86%;\n }\n}\n\n.toast {\n border-radius: 2px;\n top: 35px;\n width: auto;\n margin-top: 10px;\n position: relative;\n max-width: 100%;\n height: auto;\n min-height: 48px;\n line-height: 1.5em;\n background-color: #323232;\n padding: 10px 25px;\n font-size: 1.1rem;\n font-weight: 300;\n color: #fff;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n -ms-flex-pack: justify;\n justify-content: space-between;\n cursor: default;\n}\n\n.toast .toast-action {\n color: #eeff41;\n font-weight: 500;\n margin-right: -25px;\n margin-left: 3rem;\n}\n\n.toast.rounded {\n border-radius: 24px;\n}\n\n@media only screen and (max-width: 600px) {\n .toast {\n width: 100%;\n border-radius: 0;\n }\n}\n\n.tabs {\n position: relative;\n overflow-x: auto;\n overflow-y: hidden;\n height: 48px;\n width: 100%;\n background-color: #fff;\n margin: 0 auto;\n white-space: nowrap;\n}\n\n.tabs.tabs-transparent {\n background-color: transparent;\n}\n\n.tabs.tabs-transparent .tab a,\n.tabs.tabs-transparent .tab.disabled a,\n.tabs.tabs-transparent .tab.disabled a:hover {\n color: rgba(255, 255, 255, 0.7);\n}\n\n.tabs.tabs-transparent .tab a:hover,\n.tabs.tabs-transparent .tab a.active {\n color: #fff;\n}\n\n.tabs.tabs-transparent .indicator {\n background-color: #fff;\n}\n\n.tabs.tabs-fixed-width {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n\n.tabs.tabs-fixed-width .tab {\n -webkit-box-flex: 1;\n -webkit-flex-grow: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n\n.tabs .tab {\n display: inline-block;\n text-align: center;\n line-height: 48px;\n height: 48px;\n padding: 0;\n margin: 0;\n text-transform: uppercase;\n}\n\n.tabs .tab a {\n color: rgba(238, 110, 115, 0.7);\n display: block;\n width: 100%;\n height: 100%;\n padding: 0 24px;\n font-size: 14px;\n text-overflow: ellipsis;\n overflow: hidden;\n -webkit-transition: color .28s ease, background-color .28s ease;\n transition: color .28s ease, background-color .28s ease;\n}\n\n.tabs .tab a:focus, .tabs .tab a:focus.active {\n background-color: rgba(246, 178, 181, 0.2);\n outline: none;\n}\n\n.tabs .tab a:hover, .tabs .tab a.active {\n background-color: transparent;\n color: #ee6e73;\n}\n\n.tabs .tab.disabled a,\n.tabs .tab.disabled a:hover {\n color: rgba(238, 110, 115, 0.4);\n cursor: default;\n}\n\n.tabs .indicator {\n position: absolute;\n bottom: 0;\n height: 2px;\n background-color: #f6b2b5;\n will-change: left, right;\n}\n\n@media only screen and (max-width: 992px) {\n .tabs {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n }\n .tabs .tab {\n -webkit-box-flex: 1;\n -webkit-flex-grow: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n }\n .tabs .tab a {\n padding: 0 12px;\n }\n}\n\n.material-tooltip {\n padding: 10px 8px;\n font-size: 1rem;\n z-index: 2000;\n background-color: transparent;\n border-radius: 2px;\n color: #fff;\n min-height: 36px;\n line-height: 120%;\n opacity: 0;\n position: absolute;\n text-align: center;\n max-width: calc(100% - 4px);\n overflow: hidden;\n left: 0;\n top: 0;\n pointer-events: none;\n visibility: hidden;\n background-color: #323232;\n}\n\n.backdrop {\n position: absolute;\n opacity: 0;\n height: 7px;\n width: 14px;\n border-radius: 0 0 50% 50%;\n background-color: #323232;\n z-index: -1;\n -webkit-transform-origin: 50% 0%;\n transform-origin: 50% 0%;\n visibility: hidden;\n}\n\n.btn, .btn-large, .btn-small,\n.btn-flat {\n border: none;\n border-radius: 2px;\n display: inline-block;\n height: 36px;\n line-height: 36px;\n padding: 0 16px;\n text-transform: uppercase;\n vertical-align: middle;\n -webkit-tap-highlight-color: transparent;\n}\n\n.btn.disabled, .disabled.btn-large, .disabled.btn-small,\n.btn-floating.disabled,\n.btn-large.disabled,\n.btn-small.disabled,\n.btn-flat.disabled,\n.btn:disabled,\n.btn-large:disabled,\n.btn-small:disabled,\n.btn-floating:disabled,\n.btn-large:disabled,\n.btn-small:disabled,\n.btn-flat:disabled,\n.btn[disabled],\n.btn-large[disabled],\n.btn-small[disabled],\n.btn-floating[disabled],\n.btn-large[disabled],\n.btn-small[disabled],\n.btn-flat[disabled] {\n pointer-events: none;\n background-color: #DFDFDF !important;\n -webkit-box-shadow: none;\n box-shadow: none;\n color: #9F9F9F !important;\n cursor: default;\n}\n\n.btn.disabled:hover, .disabled.btn-large:hover, .disabled.btn-small:hover,\n.btn-floating.disabled:hover,\n.btn-large.disabled:hover,\n.btn-small.disabled:hover,\n.btn-flat.disabled:hover,\n.btn:disabled:hover,\n.btn-large:disabled:hover,\n.btn-small:disabled:hover,\n.btn-floating:disabled:hover,\n.btn-large:disabled:hover,\n.btn-small:disabled:hover,\n.btn-flat:disabled:hover,\n.btn[disabled]:hover,\n.btn-large[disabled]:hover,\n.btn-small[disabled]:hover,\n.btn-floating[disabled]:hover,\n.btn-large[disabled]:hover,\n.btn-small[disabled]:hover,\n.btn-flat[disabled]:hover {\n background-color: #DFDFDF !important;\n color: #9F9F9F !important;\n}\n\n.btn, .btn-large, .btn-small,\n.btn-floating,\n.btn-large,\n.btn-small,\n.btn-flat {\n font-size: 14px;\n outline: 0;\n}\n\n.btn i, .btn-large i, .btn-small i,\n.btn-floating i,\n.btn-large i,\n.btn-small i,\n.btn-flat i {\n font-size: 1.3rem;\n line-height: inherit;\n}\n\n.btn:focus, .btn-large:focus, .btn-small:focus,\n.btn-floating:focus {\n background-color: #1d7d74;\n}\n\n.btn, .btn-large, .btn-small {\n text-decoration: none;\n color: #fff;\n background-color: #26a69a;\n text-align: center;\n letter-spacing: .5px;\n -webkit-transition: background-color .2s ease-out;\n transition: background-color .2s ease-out;\n cursor: pointer;\n}\n\n.btn:hover, .btn-large:hover, .btn-small:hover {\n background-color: #2bbbad;\n}\n\n.btn-floating {\n display: inline-block;\n color: #fff;\n position: relative;\n overflow: hidden;\n z-index: 1;\n width: 40px;\n height: 40px;\n line-height: 40px;\n padding: 0;\n background-color: #26a69a;\n border-radius: 50%;\n -webkit-transition: background-color .3s;\n transition: background-color .3s;\n cursor: pointer;\n vertical-align: middle;\n}\n\n.btn-floating:hover {\n background-color: #26a69a;\n}\n\n.btn-floating:before {\n border-radius: 0;\n}\n\n.btn-floating.btn-large {\n width: 56px;\n height: 56px;\n padding: 0;\n}\n\n.btn-floating.btn-large.halfway-fab {\n bottom: -28px;\n}\n\n.btn-floating.btn-large i {\n line-height: 56px;\n}\n\n.btn-floating.btn-small {\n width: 32.4px;\n height: 32.4px;\n}\n\n.btn-floating.btn-small.halfway-fab {\n bottom: -16.2px;\n}\n\n.btn-floating.btn-small i {\n line-height: 32.4px;\n}\n\n.btn-floating.halfway-fab {\n position: absolute;\n right: 24px;\n bottom: -20px;\n}\n\n.btn-floating.halfway-fab.left {\n right: auto;\n left: 24px;\n}\n\n.btn-floating i {\n width: inherit;\n display: inline-block;\n text-align: center;\n color: #fff;\n font-size: 1.6rem;\n line-height: 40px;\n}\n\nbutton.btn-floating {\n border: none;\n}\n\n.fixed-action-btn {\n position: fixed;\n right: 23px;\n bottom: 23px;\n padding-top: 15px;\n margin-bottom: 0;\n z-index: 997;\n}\n\n.fixed-action-btn.active ul {\n visibility: visible;\n}\n\n.fixed-action-btn.direction-left, .fixed-action-btn.direction-right {\n padding: 0 0 0 15px;\n}\n\n.fixed-action-btn.direction-left ul, .fixed-action-btn.direction-right ul {\n text-align: right;\n right: 64px;\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n height: 100%;\n left: auto;\n /*width 100% only goes to width of button container */\n width: 500px;\n}\n\n.fixed-action-btn.direction-left ul li, .fixed-action-btn.direction-right ul li {\n display: inline-block;\n margin: 7.5px 15px 0 0;\n}\n\n.fixed-action-btn.direction-right {\n padding: 0 15px 0 0;\n}\n\n.fixed-action-btn.direction-right ul {\n text-align: left;\n direction: rtl;\n left: 64px;\n right: auto;\n}\n\n.fixed-action-btn.direction-right ul li {\n margin: 7.5px 0 0 15px;\n}\n\n.fixed-action-btn.direction-bottom {\n padding: 0 0 15px 0;\n}\n\n.fixed-action-btn.direction-bottom ul {\n top: 64px;\n bottom: auto;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -webkit-flex-direction: column-reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n}\n\n.fixed-action-btn.direction-bottom ul li {\n margin: 15px 0 0 0;\n}\n\n.fixed-action-btn.toolbar {\n padding: 0;\n height: 56px;\n}\n\n.fixed-action-btn.toolbar.active > a i {\n opacity: 0;\n}\n\n.fixed-action-btn.toolbar ul {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n top: 0;\n bottom: 0;\n z-index: 1;\n}\n\n.fixed-action-btn.toolbar ul li {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n display: inline-block;\n margin: 0;\n height: 100%;\n -webkit-transition: none;\n transition: none;\n}\n\n.fixed-action-btn.toolbar ul li a {\n display: block;\n overflow: hidden;\n position: relative;\n width: 100%;\n height: 100%;\n background-color: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n color: #fff;\n line-height: 56px;\n z-index: 1;\n}\n\n.fixed-action-btn.toolbar ul li a i {\n line-height: inherit;\n}\n\n.fixed-action-btn ul {\n left: 0;\n right: 0;\n text-align: center;\n position: absolute;\n bottom: 64px;\n margin: 0;\n visibility: hidden;\n}\n\n.fixed-action-btn ul li {\n margin-bottom: 15px;\n}\n\n.fixed-action-btn ul a.btn-floating {\n opacity: 0;\n}\n\n.fixed-action-btn .fab-backdrop {\n position: absolute;\n top: 0;\n left: 0;\n z-index: -1;\n width: 40px;\n height: 40px;\n background-color: #26a69a;\n border-radius: 50%;\n -webkit-transform: scale(0);\n transform: scale(0);\n}\n\n.btn-flat {\n -webkit-box-shadow: none;\n box-shadow: none;\n background-color: transparent;\n color: #343434;\n cursor: pointer;\n -webkit-transition: background-color .2s;\n transition: background-color .2s;\n}\n\n.btn-flat:focus, .btn-flat:hover {\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n\n.btn-flat:focus {\n background-color: rgba(0, 0, 0, 0.1);\n}\n\n.btn-flat.disabled, .btn-flat.btn-flat[disabled] {\n background-color: transparent !important;\n color: #b3b2b2 !important;\n cursor: default;\n}\n\n.btn-large {\n height: 54px;\n line-height: 54px;\n font-size: 15px;\n padding: 0 28px;\n}\n\n.btn-large i {\n font-size: 1.6rem;\n}\n\n.btn-small {\n height: 32.4px;\n line-height: 32.4px;\n font-size: 13px;\n}\n\n.btn-small i {\n font-size: 1.2rem;\n}\n\n.btn-block {\n display: block;\n}\n\n.dropdown-content {\n background-color: #fff;\n margin: 0;\n display: none;\n min-width: 100px;\n overflow-y: auto;\n opacity: 0;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 9999;\n -webkit-transform-origin: 0 0;\n transform-origin: 0 0;\n}\n\n.dropdown-content:focus {\n outline: 0;\n}\n\n.dropdown-content li {\n clear: both;\n color: rgba(0, 0, 0, 0.87);\n cursor: pointer;\n min-height: 50px;\n line-height: 1.5rem;\n width: 100%;\n text-align: left;\n}\n\n.dropdown-content li:hover, .dropdown-content li.active {\n background-color: #eee;\n}\n\n.dropdown-content li:focus {\n outline: none;\n}\n\n.dropdown-content li.divider {\n min-height: 0;\n height: 1px;\n}\n\n.dropdown-content li > a, .dropdown-content li > span {\n font-size: 16px;\n color: #26a69a;\n display: block;\n line-height: 22px;\n padding: 14px 16px;\n}\n\n.dropdown-content li > span > label {\n top: 1px;\n left: 0;\n height: 18px;\n}\n\n.dropdown-content li > a > i {\n height: inherit;\n line-height: inherit;\n float: left;\n margin: 0 24px 0 0;\n width: 24px;\n}\n\nbody.keyboard-focused .dropdown-content li:focus {\n background-color: #dadada;\n}\n\n.input-field.col .dropdown-content [type="checkbox"] + label {\n top: 1px;\n left: 0;\n height: 18px;\n -webkit-transform: none;\n transform: none;\n}\n\n.dropdown-trigger {\n cursor: pointer;\n}\n\n/*!\r\n * Waves v0.6.0\r\n * http://fian.my.id/Waves\r\n *\r\n * Copyright 2014 Alfiana E. Sibuea and other contributors\r\n * Released under the MIT license\r\n * https://github.com/fians/Waves/blob/master/LICENSE\r\n */\n.waves-effect {\n position: relative;\n cursor: pointer;\n display: inline-block;\n overflow: hidden;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n vertical-align: middle;\n z-index: 1;\n -webkit-transition: .3s ease-out;\n transition: .3s ease-out;\n}\n\n.waves-effect .waves-ripple {\n position: absolute;\n border-radius: 50%;\n width: 20px;\n height: 20px;\n margin-top: -10px;\n margin-left: -10px;\n opacity: 0;\n background: rgba(0, 0, 0, 0.2);\n -webkit-transition: all 0.7s ease-out;\n transition: all 0.7s ease-out;\n -webkit-transition-property: opacity, -webkit-transform;\n transition-property: opacity, -webkit-transform;\n transition-property: transform, opacity;\n transition-property: transform, opacity, -webkit-transform;\n -webkit-transform: scale(0);\n transform: scale(0);\n pointer-events: none;\n}\n\n.waves-effect.waves-light .waves-ripple {\n background-color: rgba(255, 255, 255, 0.45);\n}\n\n.waves-effect.waves-red .waves-ripple {\n background-color: rgba(244, 67, 54, 0.7);\n}\n\n.waves-effect.waves-yellow .waves-ripple {\n background-color: rgba(255, 235, 59, 0.7);\n}\n\n.waves-effect.waves-orange .waves-ripple {\n background-color: rgba(255, 152, 0, 0.7);\n}\n\n.waves-effect.waves-purple .waves-ripple {\n background-color: rgba(156, 39, 176, 0.7);\n}\n\n.waves-effect.waves-green .waves-ripple {\n background-color: rgba(76, 175, 80, 0.7);\n}\n\n.waves-effect.waves-teal .waves-ripple {\n background-color: rgba(0, 150, 136, 0.7);\n}\n\n.waves-effect input[type="button"], .waves-effect input[type="reset"], .waves-effect input[type="submit"] {\n border: 0;\n font-style: normal;\n font-size: inherit;\n text-transform: inherit;\n background: none;\n}\n\n.waves-effect img {\n position: relative;\n z-index: -1;\n}\n\n.waves-notransition {\n -webkit-transition: none !important;\n transition: none !important;\n}\n\n.waves-circle {\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);\n}\n\n.waves-input-wrapper {\n border-radius: 0.2em;\n vertical-align: bottom;\n}\n\n.waves-input-wrapper .waves-button-input {\n position: relative;\n top: 0;\n left: 0;\n z-index: 1;\n}\n\n.waves-circle {\n text-align: center;\n width: 2.5em;\n height: 2.5em;\n line-height: 2.5em;\n border-radius: 50%;\n -webkit-mask-image: none;\n}\n\n.waves-block {\n display: block;\n}\n\n/* Firefox Bug: link not triggered */\n.waves-effect .waves-ripple {\n z-index: -1;\n}\n\n.modal {\n display: none;\n position: fixed;\n left: 0;\n right: 0;\n background-color: #fafafa;\n padding: 0;\n max-height: 70%;\n width: 55%;\n margin: auto;\n overflow-y: auto;\n border-radius: 2px;\n will-change: top, opacity;\n}\n\n.modal:focus {\n outline: none;\n}\n\n@media only screen and (max-width: 992px) {\n .modal {\n width: 80%;\n }\n}\n\n.modal h1, .modal h2, .modal h3, .modal h4 {\n margin-top: 0;\n}\n\n.modal .modal-content {\n padding: 24px;\n}\n\n.modal .modal-close {\n cursor: pointer;\n}\n\n.modal .modal-footer {\n border-radius: 0 0 2px 2px;\n background-color: #fafafa;\n padding: 4px 6px;\n height: 56px;\n width: 100%;\n text-align: right;\n}\n\n.modal .modal-footer .btn, .modal .modal-footer .btn-large, .modal .modal-footer .btn-small, .modal .modal-footer .btn-flat {\n margin: 6px 0;\n}\n\n.modal-overlay {\n position: fixed;\n z-index: 999;\n top: -25%;\n left: 0;\n bottom: 0;\n right: 0;\n height: 125%;\n width: 100%;\n background: #000;\n display: none;\n will-change: opacity;\n}\n\n.modal.modal-fixed-footer {\n padding: 0;\n height: 70%;\n}\n\n.modal.modal-fixed-footer .modal-content {\n position: absolute;\n height: calc(100% - 56px);\n max-height: 100%;\n width: 100%;\n overflow-y: auto;\n}\n\n.modal.modal-fixed-footer .modal-footer {\n border-top: 1px solid rgba(0, 0, 0, 0.1);\n position: absolute;\n bottom: 0;\n}\n\n.modal.bottom-sheet {\n top: auto;\n bottom: -100%;\n margin: 0;\n width: 100%;\n max-height: 45%;\n border-radius: 0;\n will-change: bottom, opacity;\n}\n\n.collapsible {\n border-top: 1px solid #ddd;\n border-right: 1px solid #ddd;\n border-left: 1px solid #ddd;\n margin: 0.5rem 0 1rem 0;\n}\n\n.collapsible-header {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n line-height: 1.5;\n padding: 1rem;\n background-color: #fff;\n border-bottom: 1px solid #ddd;\n}\n\n.collapsible-header:focus {\n outline: 0;\n}\n\n.collapsible-header i {\n width: 2rem;\n font-size: 1.6rem;\n display: inline-block;\n text-align: center;\n margin-right: 1rem;\n}\n\n.keyboard-focused .collapsible-header:focus {\n background-color: #eee;\n}\n\n.collapsible-body {\n display: none;\n border-bottom: 1px solid #ddd;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n padding: 2rem;\n}\n\n.sidenav .collapsible,\n.sidenav.fixed .collapsible {\n border: none;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n\n.sidenav .collapsible li,\n.sidenav.fixed .collapsible li {\n padding: 0;\n}\n\n.sidenav .collapsible-header,\n.sidenav.fixed .collapsible-header {\n background-color: transparent;\n border: none;\n line-height: inherit;\n height: inherit;\n padding: 0 16px;\n}\n\n.sidenav .collapsible-header:hover,\n.sidenav.fixed .collapsible-header:hover {\n background-color: rgba(0, 0, 0, 0.05);\n}\n\n.sidenav .collapsible-header i,\n.sidenav.fixed .collapsible-header i {\n line-height: inherit;\n}\n\n.sidenav .collapsible-body,\n.sidenav.fixed .collapsible-body {\n border: 0;\n background-color: #fff;\n}\n\n.sidenav .collapsible-body li a,\n.sidenav.fixed .collapsible-body li a {\n padding: 0 23.5px 0 31px;\n}\n\n.collapsible.popout {\n border: none;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n\n.collapsible.popout > li {\n -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n margin: 0 24px;\n -webkit-transition: margin 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n transition: margin 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n}\n\n.collapsible.popout > li.active {\n -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n margin: 16px 0;\n}\n\n.chip {\n display: inline-block;\n height: 32px;\n font-size: 13px;\n font-weight: 500;\n color: rgba(0, 0, 0, 0.6);\n line-height: 32px;\n padding: 0 12px;\n border-radius: 16px;\n background-color: #e4e4e4;\n margin-bottom: 5px;\n margin-right: 5px;\n}\n\n.chip:focus {\n outline: none;\n background-color: #26a69a;\n color: #fff;\n}\n\n.chip > img {\n float: left;\n margin: 0 8px 0 -12px;\n height: 32px;\n width: 32px;\n border-radius: 50%;\n}\n\n.chip .close {\n cursor: pointer;\n float: right;\n font-size: 16px;\n line-height: 32px;\n padding-left: 8px;\n}\n\n.chips {\n border: none;\n border-bottom: 1px solid #9e9e9e;\n -webkit-box-shadow: none;\n box-shadow: none;\n margin: 0 0 8px 0;\n min-height: 45px;\n outline: none;\n -webkit-transition: all .3s;\n transition: all .3s;\n}\n\n.chips.focus {\n border-bottom: 1px solid #26a69a;\n -webkit-box-shadow: 0 1px 0 0 #26a69a;\n box-shadow: 0 1px 0 0 #26a69a;\n}\n\n.chips:hover {\n cursor: text;\n}\n\n.chips .input {\n background: none;\n border: 0;\n color: rgba(0, 0, 0, 0.6);\n display: inline-block;\n font-size: 16px;\n height: 3rem;\n line-height: 32px;\n outline: 0;\n margin: 0;\n padding: 0 !important;\n width: 120px !important;\n}\n\n.chips .input:focus {\n border: 0 !important;\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n}\n\n.chips .autocomplete-content {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n.prefix ~ .chips {\n margin-left: 3rem;\n width: 92%;\n width: calc(100% - 3rem);\n}\n\n.chips:empty ~ label {\n font-size: 0.8rem;\n -webkit-transform: translateY(-140%);\n transform: translateY(-140%);\n}\n\n.materialboxed {\n display: block;\n cursor: -webkit-zoom-in;\n cursor: zoom-in;\n position: relative;\n -webkit-transition: opacity .4s;\n transition: opacity .4s;\n -webkit-backface-visibility: hidden;\n}\n\n.materialboxed:hover:not(.active) {\n opacity: .8;\n}\n\n.materialboxed.active {\n cursor: -webkit-zoom-out;\n cursor: zoom-out;\n}\n\n#materialbox-overlay {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: #292929;\n z-index: 1000;\n will-change: opacity;\n}\n\n.materialbox-caption {\n position: fixed;\n display: none;\n color: #fff;\n line-height: 50px;\n bottom: 0;\n left: 0;\n width: 100%;\n text-align: center;\n padding: 0% 15%;\n height: 50px;\n z-index: 1000;\n -webkit-font-smoothing: antialiased;\n}\n\nselect:focus {\n outline: 1px solid #c9f3ef;\n}\n\nbutton:focus {\n outline: none;\n background-color: #2ab7a9;\n}\n\nlabel {\n font-size: 0.8rem;\n color: #9e9e9e;\n}\n\n/* Text Inputs + Textarea\n ========================================================================== */\n/* Style Placeholders */\n::-webkit-input-placeholder {\n color: #d1d1d1;\n}\n::-moz-placeholder {\n color: #d1d1d1;\n}\n:-ms-input-placeholder {\n color: #d1d1d1;\n}\n::-ms-input-placeholder {\n color: #d1d1d1;\n}\n::placeholder {\n color: #d1d1d1;\n}\n\n/* Text inputs */\ninput:not([type]),\ninput[type=text]:not(.browser-default),\ninput[type=password]:not(.browser-default),\ninput[type=email]:not(.browser-default),\ninput[type=url]:not(.browser-default),\ninput[type=time]:not(.browser-default),\ninput[type=date]:not(.browser-default),\ninput[type=datetime]:not(.browser-default),\ninput[type=datetime-local]:not(.browser-default),\ninput[type=tel]:not(.browser-default),\ninput[type=number]:not(.browser-default),\ninput[type=search]:not(.browser-default),\ntextarea.materialize-textarea {\n background-color: transparent;\n border: none;\n border-bottom: 1px solid #9e9e9e;\n border-radius: 0;\n outline: none;\n height: 3rem;\n width: 100%;\n font-size: 16px;\n margin: 0 0 8px 0;\n padding: 0;\n -webkit-box-shadow: none;\n box-shadow: none;\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n -webkit-transition: border .3s, -webkit-box-shadow .3s;\n transition: border .3s, -webkit-box-shadow .3s;\n transition: box-shadow .3s, border .3s;\n transition: box-shadow .3s, border .3s, -webkit-box-shadow .3s;\n}\n\ninput:not([type]):disabled, input:not([type])[readonly="readonly"],\ninput[type=text]:not(.browser-default):disabled,\ninput[type=text]:not(.browser-default)[readonly="readonly"],\ninput[type=password]:not(.browser-default):disabled,\ninput[type=password]:not(.browser-default)[readonly="readonly"],\ninput[type=email]:not(.browser-default):disabled,\ninput[type=email]:not(.browser-default)[readonly="readonly"],\ninput[type=url]:not(.browser-default):disabled,\ninput[type=url]:not(.browser-default)[readonly="readonly"],\ninput[type=time]:not(.browser-default):disabled,\ninput[type=time]:not(.browser-default)[readonly="readonly"],\ninput[type=date]:not(.browser-default):disabled,\ninput[type=date]:not(.browser-default)[readonly="readonly"],\ninput[type=datetime]:not(.browser-default):disabled,\ninput[type=datetime]:not(.browser-default)[readonly="readonly"],\ninput[type=datetime-local]:not(.browser-default):disabled,\ninput[type=datetime-local]:not(.browser-default)[readonly="readonly"],\ninput[type=tel]:not(.browser-default):disabled,\ninput[type=tel]:not(.browser-default)[readonly="readonly"],\ninput[type=number]:not(.browser-default):disabled,\ninput[type=number]:not(.browser-default)[readonly="readonly"],\ninput[type=search]:not(.browser-default):disabled,\ninput[type=search]:not(.browser-default)[readonly="readonly"],\ntextarea.materialize-textarea:disabled,\ntextarea.materialize-textarea[readonly="readonly"] {\n color: rgba(0, 0, 0, 0.42);\n border-bottom: 1px dotted rgba(0, 0, 0, 0.42);\n}\n\ninput:not([type]):disabled + label,\ninput:not([type])[readonly="readonly"] + label,\ninput[type=text]:not(.browser-default):disabled + label,\ninput[type=text]:not(.browser-default)[readonly="readonly"] + label,\ninput[type=password]:not(.browser-default):disabled + label,\ninput[type=password]:not(.browser-default)[readonly="readonly"] + label,\ninput[type=email]:not(.browser-default):disabled + label,\ninput[type=email]:not(.browser-default)[readonly="readonly"] + label,\ninput[type=url]:not(.browser-default):disabled + label,\ninput[type=url]:not(.browser-default)[readonly="readonly"] + label,\ninput[type=time]:not(.browser-default):disabled + label,\ninput[type=time]:not(.browser-default)[readonly="readonly"] + label,\ninput[type=date]:not(.browser-default):disabled + label,\ninput[type=date]:not(.browser-default)[readonly="readonly"] + label,\ninput[type=datetime]:not(.browser-default):disabled + label,\ninput[type=datetime]:not(.browser-default)[readonly="readonly"] + label,\ninput[type=datetime-local]:not(.browser-default):disabled + label,\ninput[type=datetime-local]:not(.browser-default)[readonly="readonly"] + label,\ninput[type=tel]:not(.browser-default):disabled + label,\ninput[type=tel]:not(.browser-default)[readonly="readonly"] + label,\ninput[type=number]:not(.browser-default):disabled + label,\ninput[type=number]:not(.browser-default)[readonly="readonly"] + label,\ninput[type=search]:not(.browser-default):disabled + label,\ninput[type=search]:not(.browser-default)[readonly="readonly"] + label,\ntextarea.materialize-textarea:disabled + label,\ntextarea.materialize-textarea[readonly="readonly"] + label {\n color: rgba(0, 0, 0, 0.42);\n}\n\ninput:not([type]):focus:not([readonly]),\ninput[type=text]:not(.browser-default):focus:not([readonly]),\ninput[type=password]:not(.browser-default):focus:not([readonly]),\ninput[type=email]:not(.browser-default):focus:not([readonly]),\ninput[type=url]:not(.browser-default):focus:not([readonly]),\ninput[type=time]:not(.browser-default):focus:not([readonly]),\ninput[type=date]:not(.browser-default):focus:not([readonly]),\ninput[type=datetime]:not(.browser-default):focus:not([readonly]),\ninput[type=datetime-local]:not(.browser-default):focus:not([readonly]),\ninput[type=tel]:not(.browser-default):focus:not([readonly]),\ninput[type=number]:not(.browser-default):focus:not([readonly]),\ninput[type=search]:not(.browser-default):focus:not([readonly]),\ntextarea.materialize-textarea:focus:not([readonly]) {\n border-bottom: 1px solid #26a69a;\n -webkit-box-shadow: 0 1px 0 0 #26a69a;\n box-shadow: 0 1px 0 0 #26a69a;\n}\n\ninput:not([type]):focus:not([readonly]) + label,\ninput[type=text]:not(.browser-default):focus:not([readonly]) + label,\ninput[type=password]:not(.browser-default):focus:not([readonly]) + label,\ninput[type=email]:not(.browser-default):focus:not([readonly]) + label,\ninput[type=url]:not(.browser-default):focus:not([readonly]) + label,\ninput[type=time]:not(.browser-default):focus:not([readonly]) + label,\ninput[type=date]:not(.browser-default):focus:not([readonly]) + label,\ninput[type=datetime]:not(.browser-default):focus:not([readonly]) + label,\ninput[type=datetime-local]:not(.browser-default):focus:not([readonly]) + label,\ninput[type=tel]:not(.browser-default):focus:not([readonly]) + label,\ninput[type=number]:not(.browser-default):focus:not([readonly]) + label,\ninput[type=search]:not(.browser-default):focus:not([readonly]) + label,\ntextarea.materialize-textarea:focus:not([readonly]) + label {\n color: #26a69a;\n}\n\ninput:not([type]):focus.valid ~ label,\ninput[type=text]:not(.browser-default):focus.valid ~ label,\ninput[type=password]:not(.browser-default):focus.valid ~ label,\ninput[type=email]:not(.browser-default):focus.valid ~ label,\ninput[type=url]:not(.browser-default):focus.valid ~ label,\ninput[type=time]:not(.browser-default):focus.valid ~ label,\ninput[type=date]:not(.browser-default):focus.valid ~ label,\ninput[type=datetime]:not(.browser-default):focus.valid ~ label,\ninput[type=datetime-local]:not(.browser-default):focus.valid ~ label,\ninput[type=tel]:not(.browser-default):focus.valid ~ label,\ninput[type=number]:not(.browser-default):focus.valid ~ label,\ninput[type=search]:not(.browser-default):focus.valid ~ label,\ntextarea.materialize-textarea:focus.valid ~ label {\n color: #4CAF50;\n}\n\ninput:not([type]):focus.invalid ~ label,\ninput[type=text]:not(.browser-default):focus.invalid ~ label,\ninput[type=password]:not(.browser-default):focus.invalid ~ label,\ninput[type=email]:not(.browser-default):focus.invalid ~ label,\ninput[type=url]:not(.browser-default):focus.invalid ~ label,\ninput[type=time]:not(.browser-default):focus.invalid ~ label,\ninput[type=date]:not(.browser-default):focus.invalid ~ label,\ninput[type=datetime]:not(.browser-default):focus.invalid ~ label,\ninput[type=datetime-local]:not(.browser-default):focus.invalid ~ label,\ninput[type=tel]:not(.browser-default):focus.invalid ~ label,\ninput[type=number]:not(.browser-default):focus.invalid ~ label,\ninput[type=search]:not(.browser-default):focus.invalid ~ label,\ntextarea.materialize-textarea:focus.invalid ~ label {\n color: #F44336;\n}\n\ninput:not([type]).validate + label,\ninput[type=text]:not(.browser-default).validate + label,\ninput[type=password]:not(.browser-default).validate + label,\ninput[type=email]:not(.browser-default).validate + label,\ninput[type=url]:not(.browser-default).validate + label,\ninput[type=time]:not(.browser-default).validate + label,\ninput[type=date]:not(.browser-default).validate + label,\ninput[type=datetime]:not(.browser-default).validate + label,\ninput[type=datetime-local]:not(.browser-default).validate + label,\ninput[type=tel]:not(.browser-default).validate + label,\ninput[type=number]:not(.browser-default).validate + label,\ninput[type=search]:not(.browser-default).validate + label,\ntextarea.materialize-textarea.validate + label {\n width: 100%;\n}\n\n/* Validation Sass Placeholders */\ninput.valid:not([type]), input.valid:not([type]):focus,\ninput.valid[type=text]:not(.browser-default),\ninput.valid[type=text]:not(.browser-default):focus,\ninput.valid[type=password]:not(.browser-default),\ninput.valid[type=password]:not(.browser-default):focus,\ninput.valid[type=email]:not(.browser-default),\ninput.valid[type=email]:not(.browser-default):focus,\ninput.valid[type=url]:not(.browser-default),\ninput.valid[type=url]:not(.browser-default):focus,\ninput.valid[type=time]:not(.browser-default),\ninput.valid[type=time]:not(.browser-default):focus,\ninput.valid[type=date]:not(.browser-default),\ninput.valid[type=date]:not(.browser-default):focus,\ninput.valid[type=datetime]:not(.browser-default),\ninput.valid[type=datetime]:not(.browser-default):focus,\ninput.valid[type=datetime-local]:not(.browser-default),\ninput.valid[type=datetime-local]:not(.browser-default):focus,\ninput.valid[type=tel]:not(.browser-default),\ninput.valid[type=tel]:not(.browser-default):focus,\ninput.valid[type=number]:not(.browser-default),\ninput.valid[type=number]:not(.browser-default):focus,\ninput.valid[type=search]:not(.browser-default),\ninput.valid[type=search]:not(.browser-default):focus,\ntextarea.materialize-textarea.valid,\ntextarea.materialize-textarea.valid:focus, .select-wrapper.valid > input.select-dropdown {\n border-bottom: 1px solid #4CAF50;\n -webkit-box-shadow: 0 1px 0 0 #4CAF50;\n box-shadow: 0 1px 0 0 #4CAF50;\n}\n\ninput.invalid:not([type]), input.invalid:not([type]):focus,\ninput.invalid[type=text]:not(.browser-default),\ninput.invalid[type=text]:not(.browser-default):focus,\ninput.invalid[type=password]:not(.browser-default),\ninput.invalid[type=password]:not(.browser-default):focus,\ninput.invalid[type=email]:not(.browser-default),\ninput.invalid[type=email]:not(.browser-default):focus,\ninput.invalid[type=url]:not(.browser-default),\ninput.invalid[type=url]:not(.browser-default):focus,\ninput.invalid[type=time]:not(.browser-default),\ninput.invalid[type=time]:not(.browser-default):focus,\ninput.invalid[type=date]:not(.browser-default),\ninput.invalid[type=date]:not(.browser-default):focus,\ninput.invalid[type=datetime]:not(.browser-default),\ninput.invalid[type=datetime]:not(.browser-default):focus,\ninput.invalid[type=datetime-local]:not(.browser-default),\ninput.invalid[type=datetime-local]:not(.browser-default):focus,\ninput.invalid[type=tel]:not(.browser-default),\ninput.invalid[type=tel]:not(.browser-default):focus,\ninput.invalid[type=number]:not(.browser-default),\ninput.invalid[type=number]:not(.browser-default):focus,\ninput.invalid[type=search]:not(.browser-default),\ninput.invalid[type=search]:not(.browser-default):focus,\ntextarea.materialize-textarea.invalid,\ntextarea.materialize-textarea.invalid:focus, .select-wrapper.invalid > input.select-dropdown,\n.select-wrapper.invalid > input.select-dropdown:focus {\n border-bottom: 1px solid #F44336;\n -webkit-box-shadow: 0 1px 0 0 #F44336;\n box-shadow: 0 1px 0 0 #F44336;\n}\n\ninput:not([type]).valid ~ .helper-text[data-success],\ninput:not([type]):focus.valid ~ .helper-text[data-success],\ninput:not([type]).invalid ~ .helper-text[data-error],\ninput:not([type]):focus.invalid ~ .helper-text[data-error],\ninput[type=text]:not(.browser-default).valid ~ .helper-text[data-success],\ninput[type=text]:not(.browser-default):focus.valid ~ .helper-text[data-success],\ninput[type=text]:not(.browser-default).invalid ~ .helper-text[data-error],\ninput[type=text]:not(.browser-default):focus.invalid ~ .helper-text[data-error],\ninput[type=password]:not(.browser-default).valid ~ .helper-text[data-success],\ninput[type=password]:not(.browser-default):focus.valid ~ .helper-text[data-success],\ninput[type=password]:not(.browser-default).invalid ~ .helper-text[data-error],\ninput[type=password]:not(.browser-default):focus.invalid ~ .helper-text[data-error],\ninput[type=email]:not(.browser-default).valid ~ .helper-text[data-success],\ninput[type=email]:not(.browser-default):focus.valid ~ .helper-text[data-success],\ninput[type=email]:not(.browser-default).invalid ~ .helper-text[data-error],\ninput[type=email]:not(.browser-default):focus.invalid ~ .helper-text[data-error],\ninput[type=url]:not(.browser-default).valid ~ .helper-text[data-success],\ninput[type=url]:not(.browser-default):focus.valid ~ .helper-text[data-success],\ninput[type=url]:not(.browser-default).invalid ~ .helper-text[data-error],\ninput[type=url]:not(.browser-default):focus.invalid ~ .helper-text[data-error],\ninput[type=time]:not(.browser-default).valid ~ .helper-text[data-success],\ninput[type=time]:not(.browser-default):focus.valid ~ .helper-text[data-success],\ninput[type=time]:not(.browser-default).invalid ~ .helper-text[data-error],\ninput[type=time]:not(.browser-default):focus.invalid ~ .helper-text[data-error],\ninput[type=date]:not(.browser-default).valid ~ .helper-text[data-success],\ninput[type=date]:not(.browser-default):focus.valid ~ .helper-text[data-success],\ninput[type=date]:not(.browser-default).invalid ~ .helper-text[data-error],\ninput[type=date]:not(.browser-default):focus.invalid ~ .helper-text[data-error],\ninput[type=datetime]:not(.browser-default).valid ~ .helper-text[data-success],\ninput[type=datetime]:not(.browser-default):focus.valid ~ .helper-text[data-success],\ninput[type=datetime]:not(.browser-default).invalid ~ .helper-text[data-error],\ninput[type=datetime]:not(.browser-default):focus.invalid ~ .helper-text[data-error],\ninput[type=datetime-local]:not(.browser-default).valid ~ .helper-text[data-success],\ninput[type=datetime-local]:not(.browser-default):focus.valid ~ .helper-text[data-success],\ninput[type=datetime-local]:not(.browser-default).invalid ~ .helper-text[data-error],\ninput[type=datetime-local]:not(.browser-default):focus.invalid ~ .helper-text[data-error],\ninput[type=tel]:not(.browser-default).valid ~ .helper-text[data-success],\ninput[type=tel]:not(.browser-default):focus.valid ~ .helper-text[data-success],\ninput[type=tel]:not(.browser-default).invalid ~ .helper-text[data-error],\ninput[type=tel]:not(.browser-default):focus.invalid ~ .helper-text[data-error],\ninput[type=number]:not(.browser-default).valid ~ .helper-text[data-success],\ninput[type=number]:not(.browser-default):focus.valid ~ .helper-text[data-success],\ninput[type=number]:not(.browser-default).invalid ~ .helper-text[data-error],\ninput[type=number]:not(.browser-default):focus.invalid ~ .helper-text[data-error],\ninput[type=search]:not(.browser-default).valid ~ .helper-text[data-success],\ninput[type=search]:not(.browser-default):focus.valid ~ .helper-text[data-success],\ninput[type=search]:not(.browser-default).invalid ~ .helper-text[data-error],\ninput[type=search]:not(.browser-default):focus.invalid ~ .helper-text[data-error],\ntextarea.materialize-textarea.valid ~ .helper-text[data-success],\ntextarea.materialize-textarea:focus.valid ~ .helper-text[data-success],\ntextarea.materialize-textarea.invalid ~ .helper-text[data-error],\ntextarea.materialize-textarea:focus.invalid ~ .helper-text[data-error], .select-wrapper.valid .helper-text[data-success],\n.select-wrapper.invalid ~ .helper-text[data-error] {\n color: transparent;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n pointer-events: none;\n}\n\ninput:not([type]).valid ~ .helper-text:after,\ninput:not([type]):focus.valid ~ .helper-text:after,\ninput[type=text]:not(.browser-default).valid ~ .helper-text:after,\ninput[type=text]:not(.browser-default):focus.valid ~ .helper-text:after,\ninput[type=password]:not(.browser-default).valid ~ .helper-text:after,\ninput[type=password]:not(.browser-default):focus.valid ~ .helper-text:after,\ninput[type=email]:not(.browser-default).valid ~ .helper-text:after,\ninput[type=email]:not(.browser-default):focus.valid ~ .helper-text:after,\ninput[type=url]:not(.browser-default).valid ~ .helper-text:after,\ninput[type=url]:not(.browser-default):focus.valid ~ .helper-text:after,\ninput[type=time]:not(.browser-default).valid ~ .helper-text:after,\ninput[type=time]:not(.browser-default):focus.valid ~ .helper-text:after,\ninput[type=date]:not(.browser-default).valid ~ .helper-text:after,\ninput[type=date]:not(.browser-default):focus.valid ~ .helper-text:after,\ninput[type=datetime]:not(.browser-default).valid ~ .helper-text:after,\ninput[type=datetime]:not(.browser-default):focus.valid ~ .helper-text:after,\ninput[type=datetime-local]:not(.browser-default).valid ~ .helper-text:after,\ninput[type=datetime-local]:not(.browser-default):focus.valid ~ .helper-text:after,\ninput[type=tel]:not(.browser-default).valid ~ .helper-text:after,\ninput[type=tel]:not(.browser-default):focus.valid ~ .helper-text:after,\ninput[type=number]:not(.browser-default).valid ~ .helper-text:after,\ninput[type=number]:not(.browser-default):focus.valid ~ .helper-text:after,\ninput[type=search]:not(.browser-default).valid ~ .helper-text:after,\ninput[type=search]:not(.browser-default):focus.valid ~ .helper-text:after,\ntextarea.materialize-textarea.valid ~ .helper-text:after,\ntextarea.materialize-textarea:focus.valid ~ .helper-text:after, .select-wrapper.valid ~ .helper-text:after {\n content: attr(data-success);\n color: #4CAF50;\n}\n\ninput:not([type]).invalid ~ .helper-text:after,\ninput:not([type]):focus.invalid ~ .helper-text:after,\ninput[type=text]:not(.browser-default).invalid ~ .helper-text:after,\ninput[type=text]:not(.browser-default):focus.invalid ~ .helper-text:after,\ninput[type=password]:not(.browser-default).invalid ~ .helper-text:after,\ninput[type=password]:not(.browser-default):focus.invalid ~ .helper-text:after,\ninput[type=email]:not(.browser-default).invalid ~ .helper-text:after,\ninput[type=email]:not(.browser-default):focus.invalid ~ .helper-text:after,\ninput[type=url]:not(.browser-default).invalid ~ .helper-text:after,\ninput[type=url]:not(.browser-default):focus.invalid ~ .helper-text:after,\ninput[type=time]:not(.browser-default).invalid ~ .helper-text:after,\ninput[type=time]:not(.browser-default):focus.invalid ~ .helper-text:after,\ninput[type=date]:not(.browser-default).invalid ~ .helper-text:after,\ninput[type=date]:not(.browser-default):focus.invalid ~ .helper-text:after,\ninput[type=datetime]:not(.browser-default).invalid ~ .helper-text:after,\ninput[type=datetime]:not(.browser-default):focus.invalid ~ .helper-text:after,\ninput[type=datetime-local]:not(.browser-default).invalid ~ .helper-text:after,\ninput[type=datetime-local]:not(.browser-default):focus.invalid ~ .helper-text:after,\ninput[type=tel]:not(.browser-default).invalid ~ .helper-text:after,\ninput[type=tel]:not(.browser-default):focus.invalid ~ .helper-text:after,\ninput[type=number]:not(.browser-default).invalid ~ .helper-text:after,\ninput[type=number]:not(.browser-default):focus.invalid ~ .helper-text:after,\ninput[type=search]:not(.browser-default).invalid ~ .helper-text:after,\ninput[type=search]:not(.browser-default):focus.invalid ~ .helper-text:after,\ntextarea.materialize-textarea.invalid ~ .helper-text:after,\ntextarea.materialize-textarea:focus.invalid ~ .helper-text:after, .select-wrapper.invalid ~ .helper-text:after {\n content: attr(data-error);\n color: #F44336;\n}\n\ninput:not([type]) + label:after,\ninput[type=text]:not(.browser-default) + label:after,\ninput[type=password]:not(.browser-default) + label:after,\ninput[type=email]:not(.browser-default) + label:after,\ninput[type=url]:not(.browser-default) + label:after,\ninput[type=time]:not(.browser-default) + label:after,\ninput[type=date]:not(.browser-default) + label:after,\ninput[type=datetime]:not(.browser-default) + label:after,\ninput[type=datetime-local]:not(.browser-default) + label:after,\ninput[type=tel]:not(.browser-default) + label:after,\ninput[type=number]:not(.browser-default) + label:after,\ninput[type=search]:not(.browser-default) + label:after,\ntextarea.materialize-textarea + label:after, .select-wrapper + label:after {\n display: block;\n content: "";\n position: absolute;\n top: 100%;\n left: 0;\n opacity: 0;\n -webkit-transition: .2s opacity ease-out, .2s color ease-out;\n transition: .2s opacity ease-out, .2s color ease-out;\n}\n\n.input-field {\n position: relative;\n margin-top: 1rem;\n margin-bottom: 1rem;\n}\n\n.input-field.inline {\n display: inline-block;\n vertical-align: middle;\n margin-left: 5px;\n}\n\n.input-field.inline input,\n.input-field.inline .select-dropdown {\n margin-bottom: 1rem;\n}\n\n.input-field.col label {\n left: 0.75rem;\n}\n\n.input-field.col .prefix ~ label,\n.input-field.col .prefix ~ .validate ~ label {\n width: calc(100% - 3rem - 1.5rem);\n}\n\n.input-field > label {\n color: #9e9e9e;\n position: absolute;\n top: 0;\n left: 0;\n font-size: 1rem;\n cursor: text;\n -webkit-transition: color .2s ease-out, -webkit-transform .2s ease-out;\n transition: color .2s ease-out, -webkit-transform .2s ease-out;\n transition: transform .2s ease-out, color .2s ease-out;\n transition: transform .2s ease-out, color .2s ease-out, -webkit-transform .2s ease-out;\n -webkit-transform-origin: 0% 100%;\n transform-origin: 0% 100%;\n text-align: initial;\n -webkit-transform: translateY(12px);\n transform: translateY(12px);\n}\n\n.input-field > label:not(.label-icon).active {\n -webkit-transform: translateY(-14px) scale(0.8);\n transform: translateY(-14px) scale(0.8);\n -webkit-transform-origin: 0 0;\n transform-origin: 0 0;\n}\n\n.input-field > input[type]:-webkit-autofill:not(.browser-default):not([type="search"]) + label,\n.input-field > input[type=date]:not(.browser-default) + label,\n.input-field > input[type=time]:not(.browser-default) + label {\n -webkit-transform: translateY(-14px) scale(0.8);\n transform: translateY(-14px) scale(0.8);\n -webkit-transform-origin: 0 0;\n transform-origin: 0 0;\n}\n\n.input-field .helper-text {\n position: relative;\n min-height: 18px;\n display: block;\n font-size: 12px;\n color: rgba(0, 0, 0, 0.54);\n}\n\n.input-field .helper-text::after {\n opacity: 1;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.input-field .prefix {\n position: absolute;\n width: 3rem;\n font-size: 2rem;\n -webkit-transition: color .2s;\n transition: color .2s;\n top: 0.5rem;\n}\n\n.input-field .prefix.active {\n color: #26a69a;\n}\n\n.input-field .prefix ~ input,\n.input-field .prefix ~ textarea,\n.input-field .prefix ~ label,\n.input-field .prefix ~ .validate ~ label,\n.input-field .prefix ~ .helper-text,\n.input-field .prefix ~ .autocomplete-content {\n margin-left: 3rem;\n width: 92%;\n width: calc(100% - 3rem);\n}\n\n.input-field .prefix ~ label {\n margin-left: 3rem;\n}\n\n@media only screen and (max-width: 992px) {\n .input-field .prefix ~ input {\n width: 86%;\n width: calc(100% - 3rem);\n }\n}\n\n@media only screen and (max-width: 600px) {\n .input-field .prefix ~ input {\n width: 80%;\n width: calc(100% - 3rem);\n }\n}\n\n/* Search Field */\n.input-field input[type=search] {\n display: block;\n line-height: inherit;\n -webkit-transition: .3s background-color;\n transition: .3s background-color;\n}\n\n.nav-wrapper .input-field input[type=search] {\n height: inherit;\n padding-left: 4rem;\n width: calc(100% - 4rem);\n border: 0;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n\n.input-field input[type=search]:focus:not(.browser-default) {\n background-color: #fff;\n border: 0;\n -webkit-box-shadow: none;\n box-shadow: none;\n color: #444;\n}\n\n.input-field input[type=search]:focus:not(.browser-default) + label i,\n.input-field input[type=search]:focus:not(.browser-default) ~ .mdi-navigation-close,\n.input-field input[type=search]:focus:not(.browser-default) ~ .material-icons {\n color: #444;\n}\n\n.input-field input[type=search] + .label-icon {\n -webkit-transform: none;\n transform: none;\n left: 1rem;\n}\n\n.input-field input[type=search] ~ .mdi-navigation-close,\n.input-field input[type=search] ~ .material-icons {\n position: absolute;\n top: 0;\n right: 1rem;\n color: transparent;\n cursor: pointer;\n font-size: 2rem;\n -webkit-transition: .3s color;\n transition: .3s color;\n}\n\n/* Textarea */\ntextarea {\n width: 100%;\n height: 3rem;\n background-color: transparent;\n}\n\ntextarea.materialize-textarea {\n line-height: normal;\n overflow-y: hidden;\n /* prevents scroll bar flash */\n padding: .8rem 0 .8rem 0;\n /* prevents text jump on Enter keypress */\n resize: none;\n min-height: 3rem;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.hiddendiv {\n visibility: hidden;\n white-space: pre-wrap;\n word-wrap: break-word;\n overflow-wrap: break-word;\n /* future version of deprecated \'word-wrap\' */\n padding-top: 1.2rem;\n /* prevents text jump on Enter keypress */\n position: absolute;\n top: 0;\n z-index: -1;\n}\n\n/* Autocomplete */\n.autocomplete-content li .highlight {\n color: #444;\n}\n\n.autocomplete-content li img {\n height: 40px;\n width: 40px;\n margin: 5px 15px;\n}\n\n/* Character Counter */\n.character-counter {\n min-height: 18px;\n}\n\n/* Radio Buttons\n ========================================================================== */\n[type="radio"]:not(:checked),\n[type="radio"]:checked {\n position: absolute;\n opacity: 0;\n pointer-events: none;\n}\n\n[type="radio"]:not(:checked) + span,\n[type="radio"]:checked + span {\n position: relative;\n padding-left: 35px;\n cursor: pointer;\n display: inline-block;\n height: 25px;\n line-height: 25px;\n font-size: 1rem;\n -webkit-transition: .28s ease;\n transition: .28s ease;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n[type="radio"] + span:before,\n[type="radio"] + span:after {\n content: \'\';\n position: absolute;\n left: 0;\n top: 0;\n margin: 4px;\n width: 16px;\n height: 16px;\n z-index: 0;\n -webkit-transition: .28s ease;\n transition: .28s ease;\n}\n\n/* Unchecked styles */\n[type="radio"]:not(:checked) + span:before,\n[type="radio"]:not(:checked) + span:after,\n[type="radio"]:checked + span:before,\n[type="radio"]:checked + span:after,\n[type="radio"].with-gap:checked + span:before,\n[type="radio"].with-gap:checked + span:after {\n border-radius: 50%;\n}\n\n[type="radio"]:not(:checked) + span:before,\n[type="radio"]:not(:checked) + span:after {\n border: 2px solid #5a5a5a;\n}\n\n[type="radio"]:not(:checked) + span:after {\n -webkit-transform: scale(0);\n transform: scale(0);\n}\n\n/* Checked styles */\n[type="radio"]:checked + span:before {\n border: 2px solid transparent;\n}\n\n[type="radio"]:checked + span:after,\n[type="radio"].with-gap:checked + span:before,\n[type="radio"].with-gap:checked + span:after {\n border: 2px solid #26a69a;\n}\n\n[type="radio"]:checked + span:after,\n[type="radio"].with-gap:checked + span:after {\n background-color: #26a69a;\n}\n\n[type="radio"]:checked + span:after {\n -webkit-transform: scale(1.02);\n transform: scale(1.02);\n}\n\n/* Radio With gap */\n[type="radio"].with-gap:checked + span:after {\n -webkit-transform: scale(0.5);\n transform: scale(0.5);\n}\n\n/* Focused styles */\n[type="radio"].tabbed:focus + span:before {\n -webkit-box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.1);\n box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.1);\n}\n\n/* Disabled Radio With gap */\n[type="radio"].with-gap:disabled:checked + span:before {\n border: 2px solid rgba(0, 0, 0, 0.42);\n}\n\n[type="radio"].with-gap:disabled:checked + span:after {\n border: none;\n background-color: rgba(0, 0, 0, 0.42);\n}\n\n/* Disabled style */\n[type="radio"]:disabled:not(:checked) + span:before,\n[type="radio"]:disabled:checked + span:before {\n background-color: transparent;\n border-color: rgba(0, 0, 0, 0.42);\n}\n\n[type="radio"]:disabled + span {\n color: rgba(0, 0, 0, 0.42);\n}\n\n[type="radio"]:disabled:not(:checked) + span:before {\n border-color: rgba(0, 0, 0, 0.42);\n}\n\n[type="radio"]:disabled:checked + span:after {\n background-color: rgba(0, 0, 0, 0.42);\n border-color: #949494;\n}\n\n/* Checkboxes\n ========================================================================== */\n/* Remove default checkbox */\n[type="checkbox"]:not(:checked),\n[type="checkbox"]:checked {\n position: absolute;\n opacity: 0;\n pointer-events: none;\n}\n\n[type="checkbox"] {\n /* checkbox aspect */\n}\n\n[type="checkbox"] + span:not(.lever) {\n position: relative;\n padding-left: 35px;\n cursor: pointer;\n display: inline-block;\n height: 25px;\n line-height: 25px;\n font-size: 1rem;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n[type="checkbox"] + span:not(.lever):before,\n[type="checkbox"]:not(.filled-in) + span:not(.lever):after {\n content: \'\';\n position: absolute;\n top: 0;\n left: 0;\n width: 18px;\n height: 18px;\n z-index: 0;\n border: 2px solid #5a5a5a;\n border-radius: 1px;\n margin-top: 3px;\n -webkit-transition: .2s;\n transition: .2s;\n}\n\n[type="checkbox"]:not(.filled-in) + span:not(.lever):after {\n border: 0;\n -webkit-transform: scale(0);\n transform: scale(0);\n}\n\n[type="checkbox"]:not(:checked):disabled + span:not(.lever):before {\n border: none;\n background-color: rgba(0, 0, 0, 0.42);\n}\n\n[type="checkbox"].tabbed:focus + span:not(.lever):after {\n -webkit-transform: scale(1);\n transform: scale(1);\n border: 0;\n border-radius: 50%;\n -webkit-box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.1);\n box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.1);\n background-color: rgba(0, 0, 0, 0.1);\n}\n\n[type="checkbox"]:checked + span:not(.lever):before {\n top: -4px;\n left: -5px;\n width: 12px;\n height: 22px;\n border-top: 2px solid transparent;\n border-left: 2px solid transparent;\n border-right: 2px solid #26a69a;\n border-bottom: 2px solid #26a69a;\n -webkit-transform: rotate(40deg);\n transform: rotate(40deg);\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n -webkit-transform-origin: 100% 100%;\n transform-origin: 100% 100%;\n}\n\n[type="checkbox"]:checked:disabled + span:before {\n border-right: 2px solid rgba(0, 0, 0, 0.42);\n border-bottom: 2px solid rgba(0, 0, 0, 0.42);\n}\n\n/* Indeterminate checkbox */\n[type="checkbox"]:indeterminate + span:not(.lever):before {\n top: -11px;\n left: -12px;\n width: 10px;\n height: 22px;\n border-top: none;\n border-left: none;\n border-right: 2px solid #26a69a;\n border-bottom: none;\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n -webkit-transform-origin: 100% 100%;\n transform-origin: 100% 100%;\n}\n\n[type="checkbox"]:indeterminate:disabled + span:not(.lever):before {\n border-right: 2px solid rgba(0, 0, 0, 0.42);\n background-color: transparent;\n}\n\n[type="checkbox"].filled-in + span:not(.lever):after {\n border-radius: 2px;\n}\n\n[type="checkbox"].filled-in + span:not(.lever):before,\n[type="checkbox"].filled-in + span:not(.lever):after {\n content: \'\';\n left: 0;\n position: absolute;\n /* .1s delay is for check animation */\n -webkit-transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;\n transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;\n z-index: 1;\n}\n\n[type="checkbox"].filled-in:not(:checked) + span:not(.lever):before {\n width: 0;\n height: 0;\n border: 3px solid transparent;\n left: 6px;\n top: 10px;\n -webkit-transform: rotateZ(37deg);\n transform: rotateZ(37deg);\n -webkit-transform-origin: 100% 100%;\n transform-origin: 100% 100%;\n}\n\n[type="checkbox"].filled-in:not(:checked) + span:not(.lever):after {\n height: 20px;\n width: 20px;\n background-color: transparent;\n border: 2px solid #5a5a5a;\n top: 0px;\n z-index: 0;\n}\n\n[type="checkbox"].filled-in:checked + span:not(.lever):before {\n top: 0;\n left: 1px;\n width: 8px;\n height: 13px;\n border-top: 2px solid transparent;\n border-left: 2px solid transparent;\n border-right: 2px solid #fff;\n border-bottom: 2px solid #fff;\n -webkit-transform: rotateZ(37deg);\n transform: rotateZ(37deg);\n -webkit-transform-origin: 100% 100%;\n transform-origin: 100% 100%;\n}\n\n[type="checkbox"].filled-in:checked + span:not(.lever):after {\n top: 0;\n width: 20px;\n height: 20px;\n border: 2px solid #26a69a;\n background-color: #26a69a;\n z-index: 0;\n}\n\n[type="checkbox"].filled-in.tabbed:focus + span:not(.lever):after {\n border-radius: 2px;\n border-color: #5a5a5a;\n background-color: rgba(0, 0, 0, 0.1);\n}\n\n[type="checkbox"].filled-in.tabbed:checked:focus + span:not(.lever):after {\n border-radius: 2px;\n background-color: #26a69a;\n border-color: #26a69a;\n}\n\n[type="checkbox"].filled-in:disabled:not(:checked) + span:not(.lever):before {\n background-color: transparent;\n border: 2px solid transparent;\n}\n\n[type="checkbox"].filled-in:disabled:not(:checked) + span:not(.lever):after {\n border-color: transparent;\n background-color: #949494;\n}\n\n[type="checkbox"].filled-in:disabled:checked + span:not(.lever):before {\n background-color: transparent;\n}\n\n[type="checkbox"].filled-in:disabled:checked + span:not(.lever):after {\n background-color: #949494;\n border-color: #949494;\n}\n\n/* Switch\r\n ========================================================================== */\n.switch,\n.switch * {\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.switch label {\n cursor: pointer;\n}\n\n.switch label input[type=checkbox] {\n opacity: 0;\n width: 0;\n height: 0;\n}\n\n.switch label input[type=checkbox]:checked + .lever {\n background-color: #84c7c1;\n}\n\n.switch label input[type=checkbox]:checked + .lever:before, .switch label input[type=checkbox]:checked + .lever:after {\n left: 18px;\n}\n\n.switch label input[type=checkbox]:checked + .lever:after {\n background-color: #26a69a;\n}\n\n.switch label .lever {\n content: "";\n display: inline-block;\n position: relative;\n width: 36px;\n height: 14px;\n background-color: rgba(0, 0, 0, 0.38);\n border-radius: 15px;\n margin-right: 10px;\n -webkit-transition: background 0.3s ease;\n transition: background 0.3s ease;\n vertical-align: middle;\n margin: 0 16px;\n}\n\n.switch label .lever:before, .switch label .lever:after {\n content: "";\n position: absolute;\n display: inline-block;\n width: 20px;\n height: 20px;\n border-radius: 50%;\n left: 0;\n top: -3px;\n -webkit-transition: left 0.3s ease, background .3s ease, -webkit-box-shadow 0.1s ease, -webkit-transform .1s ease;\n transition: left 0.3s ease, background .3s ease, -webkit-box-shadow 0.1s ease, -webkit-transform .1s ease;\n transition: left 0.3s ease, background .3s ease, box-shadow 0.1s ease, transform .1s ease;\n transition: left 0.3s ease, background .3s ease, box-shadow 0.1s ease, transform .1s ease, -webkit-box-shadow 0.1s ease, -webkit-transform .1s ease;\n}\n\n.switch label .lever:before {\n background-color: rgba(38, 166, 154, 0.15);\n}\n\n.switch label .lever:after {\n background-color: #F1F1F1;\n -webkit-box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);\n box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);\n}\n\ninput[type=checkbox]:checked:not(:disabled) ~ .lever:active::before,\ninput[type=checkbox]:checked:not(:disabled).tabbed:focus ~ .lever::before {\n -webkit-transform: scale(2.4);\n transform: scale(2.4);\n background-color: rgba(38, 166, 154, 0.15);\n}\n\ninput[type=checkbox]:not(:disabled) ~ .lever:active:before,\ninput[type=checkbox]:not(:disabled).tabbed:focus ~ .lever::before {\n -webkit-transform: scale(2.4);\n transform: scale(2.4);\n background-color: rgba(0, 0, 0, 0.08);\n}\n\n.switch input[type=checkbox][disabled] + .lever {\n cursor: default;\n background-color: rgba(0, 0, 0, 0.12);\n}\n\n.switch label input[type=checkbox][disabled] + .lever:after,\n.switch label input[type=checkbox][disabled]:checked + .lever:after {\n background-color: #949494;\n}\n\n/* Select Field\n ========================================================================== */\nselect {\n display: none;\n}\n\nselect.browser-default {\n display: block;\n}\n\nselect {\n background-color: rgba(255, 255, 255, 0.9);\n width: 100%;\n padding: 5px;\n border: 1px solid #f2f2f2;\n border-radius: 2px;\n height: 3rem;\n}\n\n.select-label {\n position: absolute;\n}\n\n.select-wrapper {\n position: relative;\n}\n\n.select-wrapper.valid + label,\n.select-wrapper.invalid + label {\n width: 100%;\n pointer-events: none;\n}\n\n.select-wrapper input.select-dropdown {\n position: relative;\n cursor: pointer;\n background-color: transparent;\n border: none;\n border-bottom: 1px solid #9e9e9e;\n outline: none;\n height: 3rem;\n line-height: 3rem;\n width: 100%;\n font-size: 16px;\n margin: 0 0 8px 0;\n padding: 0;\n display: block;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n z-index: 1;\n}\n\n.select-wrapper input.select-dropdown:focus {\n border-bottom: 1px solid #26a69a;\n}\n\n.select-wrapper .caret {\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n margin: auto 0;\n z-index: 0;\n fill: rgba(0, 0, 0, 0.87);\n}\n\n.select-wrapper + label {\n position: absolute;\n top: -26px;\n font-size: 0.8rem;\n}\n\nselect:disabled {\n color: rgba(0, 0, 0, 0.42);\n}\n\n.select-wrapper.disabled + label {\n color: rgba(0, 0, 0, 0.42);\n}\n\n.select-wrapper.disabled .caret {\n fill: rgba(0, 0, 0, 0.42);\n}\n\n.select-wrapper input.select-dropdown:disabled {\n color: rgba(0, 0, 0, 0.42);\n cursor: default;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.select-wrapper i {\n color: rgba(0, 0, 0, 0.3);\n}\n\n.select-dropdown li.disabled,\n.select-dropdown li.disabled > span,\n.select-dropdown li.optgroup {\n color: rgba(0, 0, 0, 0.3);\n background-color: transparent;\n}\n\nbody.keyboard-focused .select-dropdown.dropdown-content li:focus {\n background-color: rgba(0, 0, 0, 0.08);\n}\n\n.select-dropdown.dropdown-content li:hover {\n background-color: rgba(0, 0, 0, 0.08);\n}\n\n.select-dropdown.dropdown-content li.selected {\n background-color: rgba(0, 0, 0, 0.03);\n}\n\n.prefix ~ .select-wrapper {\n margin-left: 3rem;\n width: 92%;\n width: calc(100% - 3rem);\n}\n\n.prefix ~ label {\n margin-left: 3rem;\n}\n\n.select-dropdown li img {\n height: 40px;\n width: 40px;\n margin: 5px 15px;\n float: right;\n}\n\n.select-dropdown li.optgroup {\n border-top: 1px solid #eee;\n}\n\n.select-dropdown li.optgroup.selected > span {\n color: rgba(0, 0, 0, 0.7);\n}\n\n.select-dropdown li.optgroup > span {\n color: rgba(0, 0, 0, 0.4);\n}\n\n.select-dropdown li.optgroup ~ li.optgroup-option {\n padding-left: 1rem;\n}\n\n/* File Input\r\n ========================================================================== */\n.file-field {\n position: relative;\n}\n\n.file-field .file-path-wrapper {\n overflow: hidden;\n padding-left: 10px;\n}\n\n.file-field input.file-path {\n width: 100%;\n}\n\n.file-field .btn, .file-field .btn-large, .file-field .btn-small {\n float: left;\n height: 3rem;\n line-height: 3rem;\n}\n\n.file-field span {\n cursor: pointer;\n}\n\n.file-field input[type=file] {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n margin: 0;\n padding: 0;\n font-size: 20px;\n cursor: pointer;\n opacity: 0;\n filter: alpha(opacity=0);\n}\n\n.file-field input[type=file]::-webkit-file-upload-button {\n display: none;\n}\n\n/* Range\n ========================================================================== */\n.range-field {\n position: relative;\n}\n\ninput[type=range],\ninput[type=range] + .thumb {\n cursor: pointer;\n}\n\ninput[type=range] {\n position: relative;\n background-color: transparent;\n border: none;\n outline: none;\n width: 100%;\n margin: 15px 0;\n padding: 0;\n}\n\ninput[type=range]:focus {\n outline: none;\n}\n\ninput[type=range] + .thumb {\n position: absolute;\n top: 10px;\n left: 0;\n border: none;\n height: 0;\n width: 0;\n border-radius: 50%;\n background-color: #26a69a;\n margin-left: 7px;\n -webkit-transform-origin: 50% 50%;\n transform-origin: 50% 50%;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n}\n\ninput[type=range] + .thumb .value {\n display: block;\n width: 30px;\n text-align: center;\n color: #26a69a;\n font-size: 0;\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n\ninput[type=range] + .thumb.active {\n border-radius: 50% 50% 50% 0;\n}\n\ninput[type=range] + .thumb.active .value {\n color: #fff;\n margin-left: -1px;\n margin-top: 8px;\n font-size: 10px;\n}\n\ninput[type=range] {\n -webkit-appearance: none;\n}\n\ninput[type=range]::-webkit-slider-runnable-track {\n height: 3px;\n background: #c2c0c2;\n border: none;\n}\n\ninput[type=range]::-webkit-slider-thumb {\n border: none;\n height: 14px;\n width: 14px;\n border-radius: 50%;\n background: #26a69a;\n -webkit-transition: -webkit-box-shadow .3s;\n transition: -webkit-box-shadow .3s;\n transition: box-shadow .3s;\n transition: box-shadow .3s, -webkit-box-shadow .3s;\n -webkit-appearance: none;\n background-color: #26a69a;\n -webkit-transform-origin: 50% 50%;\n transform-origin: 50% 50%;\n margin: -5px 0 0 0;\n}\n\n.keyboard-focused input[type=range]:focus:not(.active)::-webkit-slider-thumb {\n -webkit-box-shadow: 0 0 0 10px rgba(38, 166, 154, 0.26);\n box-shadow: 0 0 0 10px rgba(38, 166, 154, 0.26);\n}\n\ninput[type=range] {\n /* fix for FF unable to apply focus style bug */\n border: 1px solid white;\n /*required for proper track sizing in FF*/\n}\n\ninput[type=range]::-moz-range-track {\n height: 3px;\n background: #c2c0c2;\n border: none;\n}\n\ninput[type=range]::-moz-focus-inner {\n border: 0;\n}\n\ninput[type=range]::-moz-range-thumb {\n border: none;\n height: 14px;\n width: 14px;\n border-radius: 50%;\n background: #26a69a;\n -webkit-transition: -webkit-box-shadow .3s;\n transition: -webkit-box-shadow .3s;\n transition: box-shadow .3s;\n transition: box-shadow .3s, -webkit-box-shadow .3s;\n margin-top: -5px;\n}\n\ninput[type=range]:-moz-focusring {\n outline: 1px solid #fff;\n outline-offset: -1px;\n}\n\n.keyboard-focused input[type=range]:focus:not(.active)::-moz-range-thumb {\n box-shadow: 0 0 0 10px rgba(38, 166, 154, 0.26);\n}\n\ninput[type=range]::-ms-track {\n height: 3px;\n background: transparent;\n border-color: transparent;\n border-width: 6px 0;\n /*remove default tick marks*/\n color: transparent;\n}\n\ninput[type=range]::-ms-fill-lower {\n background: #777;\n}\n\ninput[type=range]::-ms-fill-upper {\n background: #ddd;\n}\n\ninput[type=range]::-ms-thumb {\n border: none;\n height: 14px;\n width: 14px;\n border-radius: 50%;\n background: #26a69a;\n -webkit-transition: -webkit-box-shadow .3s;\n transition: -webkit-box-shadow .3s;\n transition: box-shadow .3s;\n transition: box-shadow .3s, -webkit-box-shadow .3s;\n}\n\n.keyboard-focused input[type=range]:focus:not(.active)::-ms-thumb {\n box-shadow: 0 0 0 10px rgba(38, 166, 154, 0.26);\n}\n\n/***************\n Nav List\n***************/\n.table-of-contents.fixed {\n position: fixed;\n}\n\n.table-of-contents li {\n padding: 2px 0;\n}\n\n.table-of-contents a {\n display: inline-block;\n font-weight: 300;\n color: #757575;\n padding-left: 16px;\n height: 1.5rem;\n line-height: 1.5rem;\n letter-spacing: .4;\n display: inline-block;\n}\n\n.table-of-contents a:hover {\n color: #a8a8a8;\n padding-left: 15px;\n border-left: 1px solid #ee6e73;\n}\n\n.table-of-contents a.active {\n font-weight: 500;\n padding-left: 14px;\n border-left: 2px solid #ee6e73;\n}\n\n.sidenav {\n position: fixed;\n width: 300px;\n left: 0;\n top: 0;\n margin: 0;\n -webkit-transform: translateX(-100%);\n transform: translateX(-100%);\n height: 100%;\n height: calc(100% + 60px);\n height: -moz-calc(100%);\n padding-bottom: 60px;\n background-color: #fff;\n z-index: 999;\n overflow-y: auto;\n will-change: transform;\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n -webkit-transform: translateX(-105%);\n transform: translateX(-105%);\n}\n\n.sidenav.right-aligned {\n right: 0;\n -webkit-transform: translateX(105%);\n transform: translateX(105%);\n left: auto;\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n}\n\n.sidenav .collapsible {\n margin: 0;\n}\n\n.sidenav li {\n float: none;\n line-height: 48px;\n}\n\n.sidenav li.active {\n background-color: rgba(0, 0, 0, 0.05);\n}\n\n.sidenav li > a {\n color: rgba(0, 0, 0, 0.87);\n display: block;\n font-size: 14px;\n font-weight: 500;\n height: 48px;\n line-height: 48px;\n padding: 0 32px;\n}\n\n.sidenav li > a:hover {\n background-color: rgba(0, 0, 0, 0.05);\n}\n\n.sidenav li > a.btn, .sidenav li > a.btn-large, .sidenav li > a.btn-small, .sidenav li > a.btn-large, .sidenav li > a.btn-flat, .sidenav li > a.btn-floating {\n margin: 10px 15px;\n}\n\n.sidenav li > a.btn, .sidenav li > a.btn-large, .sidenav li > a.btn-small, .sidenav li > a.btn-large, .sidenav li > a.btn-floating {\n color: #fff;\n}\n\n.sidenav li > a.btn-flat {\n color: #343434;\n}\n\n.sidenav li > a.btn:hover, .sidenav li > a.btn-large:hover, .sidenav li > a.btn-small:hover, .sidenav li > a.btn-large:hover {\n background-color: #2bbbad;\n}\n\n.sidenav li > a.btn-floating:hover {\n background-color: #26a69a;\n}\n\n.sidenav li > a > i,\n.sidenav li > a > [class^="mdi-"], .sidenav li > a li > a > [class*="mdi-"],\n.sidenav li > a > i.material-icons {\n float: left;\n height: 48px;\n line-height: 48px;\n margin: 0 32px 0 0;\n width: 24px;\n color: rgba(0, 0, 0, 0.54);\n}\n\n.sidenav .divider {\n margin: 8px 0 0 0;\n}\n\n.sidenav .subheader {\n cursor: initial;\n pointer-events: none;\n color: rgba(0, 0, 0, 0.54);\n font-size: 14px;\n font-weight: 500;\n line-height: 48px;\n}\n\n.sidenav .subheader:hover {\n background-color: transparent;\n}\n\n.sidenav .user-view {\n position: relative;\n padding: 32px 32px 0;\n margin-bottom: 8px;\n}\n\n.sidenav .user-view > a {\n height: auto;\n padding: 0;\n}\n\n.sidenav .user-view > a:hover {\n background-color: transparent;\n}\n\n.sidenav .user-view .background {\n overflow: hidden;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: -1;\n}\n\n.sidenav .user-view .circle, .sidenav .user-view .name, .sidenav .user-view .email {\n display: block;\n}\n\n.sidenav .user-view .circle {\n height: 64px;\n width: 64px;\n}\n\n.sidenav .user-view .name,\n.sidenav .user-view .email {\n font-size: 14px;\n line-height: 24px;\n}\n\n.sidenav .user-view .name {\n margin-top: 16px;\n font-weight: 500;\n}\n\n.sidenav .user-view .email {\n padding-bottom: 16px;\n font-weight: 400;\n}\n\n.drag-target {\n height: 100%;\n width: 10px;\n position: fixed;\n top: 0;\n z-index: 998;\n}\n\n.drag-target.right-aligned {\n right: 0;\n}\n\n.sidenav.sidenav-fixed {\n left: 0;\n -webkit-transform: translateX(0);\n transform: translateX(0);\n position: fixed;\n}\n\n.sidenav.sidenav-fixed.right-aligned {\n right: 0;\n left: auto;\n}\n\n@media only screen and (max-width: 992px) {\n .sidenav.sidenav-fixed {\n -webkit-transform: translateX(-105%);\n transform: translateX(-105%);\n }\n .sidenav.sidenav-fixed.right-aligned {\n -webkit-transform: translateX(105%);\n transform: translateX(105%);\n }\n .sidenav > a {\n padding: 0 16px;\n }\n .sidenav .user-view {\n padding: 16px 16px 0;\n }\n}\n\n.sidenav .collapsible-body > ul:not(.collapsible) > li.active,\n.sidenav.sidenav-fixed .collapsible-body > ul:not(.collapsible) > li.active {\n background-color: #ee6e73;\n}\n\n.sidenav .collapsible-body > ul:not(.collapsible) > li.active a,\n.sidenav.sidenav-fixed .collapsible-body > ul:not(.collapsible) > li.active a {\n color: #fff;\n}\n\n.sidenav .collapsible-body {\n padding: 0;\n}\n\n.sidenav-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n opacity: 0;\n height: 120vh;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 997;\n display: none;\n}\n\n/*\r\n @license\r\n Copyright (c) 2014 The Polymer Project Authors. All rights reserved.\r\n This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\r\n The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\r\n The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\r\n Code distributed by Google as part of the polymer project is also\r\n subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\r\n */\n/**************************/\n/* STYLES FOR THE SPINNER */\n/**************************/\n/*\r\n * Constants:\r\n * STROKEWIDTH = 3px\r\n * ARCSIZE = 270 degrees (amount of circle the arc takes up)\r\n * ARCTIME = 1333ms (time it takes to expand and contract arc)\r\n * ARCSTARTROT = 216 degrees (how much the start location of the arc\r\n * should rotate each time, 216 gives us a\r\n * 5 pointed star shape (it\'s 360/5 * 3).\r\n * For a 7 pointed star, we might do\r\n * 360/7 * 3 = 154.286)\r\n * CONTAINERWIDTH = 28px\r\n * SHRINK_TIME = 400ms\r\n */\n.preloader-wrapper {\n display: inline-block;\n position: relative;\n width: 50px;\n height: 50px;\n}\n\n.preloader-wrapper.small {\n width: 36px;\n height: 36px;\n}\n\n.preloader-wrapper.big {\n width: 64px;\n height: 64px;\n}\n\n.preloader-wrapper.active {\n /* duration: 360 * ARCTIME / (ARCSTARTROT + (360-ARCSIZE)) */\n -webkit-animation: container-rotate 1568ms linear infinite;\n animation: container-rotate 1568ms linear infinite;\n}\n\n@-webkit-keyframes container-rotate {\n to {\n -webkit-transform: rotate(360deg);\n }\n}\n\n@keyframes container-rotate {\n to {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n.spinner-layer {\n position: absolute;\n width: 100%;\n height: 100%;\n opacity: 0;\n border-color: #26a69a;\n}\n\n.spinner-blue,\n.spinner-blue-only {\n border-color: #4285f4;\n}\n\n.spinner-red,\n.spinner-red-only {\n border-color: #db4437;\n}\n\n.spinner-yellow,\n.spinner-yellow-only {\n border-color: #f4b400;\n}\n\n.spinner-green,\n.spinner-green-only {\n border-color: #0f9d58;\n}\n\n/**\r\n * IMPORTANT NOTE ABOUT CSS ANIMATION PROPERTIES (keanulee):\r\n *\r\n * iOS Safari (tested on iOS 8.1) does not handle animation-delay very well - it doesn\'t\r\n * guarantee that the animation will start _exactly_ after that value. So we avoid using\r\n * animation-delay and instead set custom keyframes for each color (as redundant as it\r\n * seems).\r\n *\r\n * We write out each animation in full (instead of separating animation-name,\r\n * animation-duration, etc.) because under the polyfill, Safari does not recognize those\r\n * specific properties properly, treats them as -webkit-animation, and overrides the\r\n * other animation rules. See https://github.com/Polymer/platform/issues/53.\r\n */\n.active .spinner-layer.spinner-blue {\n /* durations: 4 * ARCTIME */\n -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both, blue-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both, blue-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n}\n\n.active .spinner-layer.spinner-red {\n /* durations: 4 * ARCTIME */\n -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both, red-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both, red-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n}\n\n.active .spinner-layer.spinner-yellow {\n /* durations: 4 * ARCTIME */\n -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both, yellow-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both, yellow-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n}\n\n.active .spinner-layer.spinner-green {\n /* durations: 4 * ARCTIME */\n -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both, green-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both, green-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n}\n\n.active .spinner-layer,\n.active .spinner-layer.spinner-blue-only,\n.active .spinner-layer.spinner-red-only,\n.active .spinner-layer.spinner-yellow-only,\n.active .spinner-layer.spinner-green-only {\n /* durations: 4 * ARCTIME */\n opacity: 1;\n -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n}\n\n@-webkit-keyframes fill-unfill-rotate {\n 12.5% {\n -webkit-transform: rotate(135deg);\n }\n /* 0.5 * ARCSIZE */\n 25% {\n -webkit-transform: rotate(270deg);\n }\n /* 1 * ARCSIZE */\n 37.5% {\n -webkit-transform: rotate(405deg);\n }\n /* 1.5 * ARCSIZE */\n 50% {\n -webkit-transform: rotate(540deg);\n }\n /* 2 * ARCSIZE */\n 62.5% {\n -webkit-transform: rotate(675deg);\n }\n /* 2.5 * ARCSIZE */\n 75% {\n -webkit-transform: rotate(810deg);\n }\n /* 3 * ARCSIZE */\n 87.5% {\n -webkit-transform: rotate(945deg);\n }\n /* 3.5 * ARCSIZE */\n to {\n -webkit-transform: rotate(1080deg);\n }\n /* 4 * ARCSIZE */\n}\n\n@keyframes fill-unfill-rotate {\n 12.5% {\n -webkit-transform: rotate(135deg);\n transform: rotate(135deg);\n }\n /* 0.5 * ARCSIZE */\n 25% {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n }\n /* 1 * ARCSIZE */\n 37.5% {\n -webkit-transform: rotate(405deg);\n transform: rotate(405deg);\n }\n /* 1.5 * ARCSIZE */\n 50% {\n -webkit-transform: rotate(540deg);\n transform: rotate(540deg);\n }\n /* 2 * ARCSIZE */\n 62.5% {\n -webkit-transform: rotate(675deg);\n transform: rotate(675deg);\n }\n /* 2.5 * ARCSIZE */\n 75% {\n -webkit-transform: rotate(810deg);\n transform: rotate(810deg);\n }\n /* 3 * ARCSIZE */\n 87.5% {\n -webkit-transform: rotate(945deg);\n transform: rotate(945deg);\n }\n /* 3.5 * ARCSIZE */\n to {\n -webkit-transform: rotate(1080deg);\n transform: rotate(1080deg);\n }\n /* 4 * ARCSIZE */\n}\n\n@-webkit-keyframes blue-fade-in-out {\n from {\n opacity: 1;\n }\n 25% {\n opacity: 1;\n }\n 26% {\n opacity: 0;\n }\n 89% {\n opacity: 0;\n }\n 90% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes blue-fade-in-out {\n from {\n opacity: 1;\n }\n 25% {\n opacity: 1;\n }\n 26% {\n opacity: 0;\n }\n 89% {\n opacity: 0;\n }\n 90% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}\n\n@-webkit-keyframes red-fade-in-out {\n from {\n opacity: 0;\n }\n 15% {\n opacity: 0;\n }\n 25% {\n opacity: 1;\n }\n 50% {\n opacity: 1;\n }\n 51% {\n opacity: 0;\n }\n}\n\n@keyframes red-fade-in-out {\n from {\n opacity: 0;\n }\n 15% {\n opacity: 0;\n }\n 25% {\n opacity: 1;\n }\n 50% {\n opacity: 1;\n }\n 51% {\n opacity: 0;\n }\n}\n\n@-webkit-keyframes yellow-fade-in-out {\n from {\n opacity: 0;\n }\n 40% {\n opacity: 0;\n }\n 50% {\n opacity: 1;\n }\n 75% {\n opacity: 1;\n }\n 76% {\n opacity: 0;\n }\n}\n\n@keyframes yellow-fade-in-out {\n from {\n opacity: 0;\n }\n 40% {\n opacity: 0;\n }\n 50% {\n opacity: 1;\n }\n 75% {\n opacity: 1;\n }\n 76% {\n opacity: 0;\n }\n}\n\n@-webkit-keyframes green-fade-in-out {\n from {\n opacity: 0;\n }\n 65% {\n opacity: 0;\n }\n 75% {\n opacity: 1;\n }\n 90% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n\n@keyframes green-fade-in-out {\n from {\n opacity: 0;\n }\n 65% {\n opacity: 0;\n }\n 75% {\n opacity: 1;\n }\n 90% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n\n/**\r\n * Patch the gap that appear between the two adjacent div.circle-clipper while the\r\n * spinner is rotating (appears on Chrome 38, Safari 7.1, and IE 11).\r\n */\n.gap-patch {\n position: absolute;\n top: 0;\n left: 45%;\n width: 10%;\n height: 100%;\n overflow: hidden;\n border-color: inherit;\n}\n\n.gap-patch .circle {\n width: 1000%;\n left: -450%;\n}\n\n.circle-clipper {\n display: inline-block;\n position: relative;\n width: 50%;\n height: 100%;\n overflow: hidden;\n border-color: inherit;\n}\n\n.circle-clipper .circle {\n width: 200%;\n height: 100%;\n border-width: 3px;\n /* STROKEWIDTH */\n border-style: solid;\n border-color: inherit;\n border-bottom-color: transparent !important;\n border-radius: 50%;\n -webkit-animation: none;\n animation: none;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n}\n\n.circle-clipper.left .circle {\n left: 0;\n border-right-color: transparent !important;\n -webkit-transform: rotate(129deg);\n transform: rotate(129deg);\n}\n\n.circle-clipper.right .circle {\n left: -100%;\n border-left-color: transparent !important;\n -webkit-transform: rotate(-129deg);\n transform: rotate(-129deg);\n}\n\n.active .circle-clipper.left .circle {\n /* duration: ARCTIME */\n -webkit-animation: left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n animation: left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n}\n\n.active .circle-clipper.right .circle {\n /* duration: ARCTIME */\n -webkit-animation: right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n animation: right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n}\n\n@-webkit-keyframes left-spin {\n from {\n -webkit-transform: rotate(130deg);\n }\n 50% {\n -webkit-transform: rotate(-5deg);\n }\n to {\n -webkit-transform: rotate(130deg);\n }\n}\n\n@keyframes left-spin {\n from {\n -webkit-transform: rotate(130deg);\n transform: rotate(130deg);\n }\n 50% {\n -webkit-transform: rotate(-5deg);\n transform: rotate(-5deg);\n }\n to {\n -webkit-transform: rotate(130deg);\n transform: rotate(130deg);\n }\n}\n\n@-webkit-keyframes right-spin {\n from {\n -webkit-transform: rotate(-130deg);\n }\n 50% {\n -webkit-transform: rotate(5deg);\n }\n to {\n -webkit-transform: rotate(-130deg);\n }\n}\n\n@keyframes right-spin {\n from {\n -webkit-transform: rotate(-130deg);\n transform: rotate(-130deg);\n }\n 50% {\n -webkit-transform: rotate(5deg);\n transform: rotate(5deg);\n }\n to {\n -webkit-transform: rotate(-130deg);\n transform: rotate(-130deg);\n }\n}\n\n#spinnerContainer.cooldown {\n /* duration: SHRINK_TIME */\n -webkit-animation: container-rotate 1568ms linear infinite, fade-out 400ms cubic-bezier(0.4, 0, 0.2, 1);\n animation: container-rotate 1568ms linear infinite, fade-out 400ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n@-webkit-keyframes fade-out {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n\n@keyframes fade-out {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n\n.slider {\n position: relative;\n height: 400px;\n width: 100%;\n}\n\n.slider.fullscreen {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n\n.slider.fullscreen ul.slides {\n height: 100%;\n}\n\n.slider.fullscreen ul.indicators {\n z-index: 2;\n bottom: 30px;\n}\n\n.slider .slides {\n background-color: #9e9e9e;\n margin: 0;\n height: 400px;\n}\n\n.slider .slides li {\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1;\n width: 100%;\n height: inherit;\n overflow: hidden;\n}\n\n.slider .slides li img {\n height: 100%;\n width: 100%;\n background-size: cover;\n background-position: center;\n}\n\n.slider .slides li .caption {\n color: #fff;\n position: absolute;\n top: 15%;\n left: 15%;\n width: 70%;\n opacity: 0;\n}\n\n.slider .slides li .caption p {\n color: #e0e0e0;\n}\n\n.slider .slides li.active {\n z-index: 2;\n}\n\n.slider .indicators {\n position: absolute;\n text-align: center;\n left: 0;\n right: 0;\n bottom: 0;\n margin: 0;\n}\n\n.slider .indicators .indicator-item {\n display: inline-block;\n position: relative;\n cursor: pointer;\n height: 16px;\n width: 16px;\n margin: 0 12px;\n background-color: #e0e0e0;\n -webkit-transition: background-color .3s;\n transition: background-color .3s;\n border-radius: 50%;\n}\n\n.slider .indicators .indicator-item.active {\n background-color: #4CAF50;\n}\n\n.carousel {\n overflow: hidden;\n position: relative;\n width: 100%;\n height: 400px;\n -webkit-perspective: 500px;\n perspective: 500px;\n -webkit-transform-style: preserve-3d;\n transform-style: preserve-3d;\n -webkit-transform-origin: 0% 50%;\n transform-origin: 0% 50%;\n}\n\n.carousel.carousel-slider {\n top: 0;\n left: 0;\n}\n\n.carousel.carousel-slider .carousel-fixed-item {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 20px;\n z-index: 1;\n}\n\n.carousel.carousel-slider .carousel-fixed-item.with-indicators {\n bottom: 68px;\n}\n\n.carousel.carousel-slider .carousel-item {\n width: 100%;\n height: 100%;\n min-height: 400px;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.carousel.carousel-slider .carousel-item h2 {\n font-size: 24px;\n font-weight: 500;\n line-height: 32px;\n}\n\n.carousel.carousel-slider .carousel-item p {\n font-size: 15px;\n}\n\n.carousel .carousel-item {\n visibility: hidden;\n width: 200px;\n height: 200px;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.carousel .carousel-item > img {\n width: 100%;\n}\n\n.carousel .indicators {\n position: absolute;\n text-align: center;\n left: 0;\n right: 0;\n bottom: 0;\n margin: 0;\n}\n\n.carousel .indicators .indicator-item {\n display: inline-block;\n position: relative;\n cursor: pointer;\n height: 8px;\n width: 8px;\n margin: 24px 4px;\n background-color: rgba(255, 255, 255, 0.5);\n -webkit-transition: background-color .3s;\n transition: background-color .3s;\n border-radius: 50%;\n}\n\n.carousel .indicators .indicator-item.active {\n background-color: #fff;\n}\n\n.carousel.scrolling .carousel-item .materialboxed,\n.carousel .carousel-item:not(.active) .materialboxed {\n pointer-events: none;\n}\n\n.tap-target-wrapper {\n width: 800px;\n height: 800px;\n position: fixed;\n z-index: 1000;\n visibility: hidden;\n -webkit-transition: visibility 0s .3s;\n transition: visibility 0s .3s;\n}\n\n.tap-target-wrapper.open {\n visibility: visible;\n -webkit-transition: visibility 0s;\n transition: visibility 0s;\n}\n\n.tap-target-wrapper.open .tap-target {\n -webkit-transform: scale(1);\n transform: scale(1);\n opacity: .95;\n -webkit-transition: opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1), -webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);\n transition: opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1), -webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);\n transition: transform 0.3s cubic-bezier(0.42, 0, 0.58, 1), opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1);\n transition: transform 0.3s cubic-bezier(0.42, 0, 0.58, 1), opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1), -webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);\n}\n\n.tap-target-wrapper.open .tap-target-wave::before {\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n\n.tap-target-wrapper.open .tap-target-wave::after {\n visibility: visible;\n -webkit-animation: pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;\n animation: pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;\n -webkit-transition: opacity .3s,\r visibility 0s 1s,\r -webkit-transform .3s;\n transition: opacity .3s,\r visibility 0s 1s,\r -webkit-transform .3s;\n transition: opacity .3s,\r transform .3s,\r visibility 0s 1s;\n transition: opacity .3s,\r transform .3s,\r visibility 0s 1s,\r -webkit-transform .3s;\n}\n\n.tap-target {\n position: absolute;\n font-size: 1rem;\n border-radius: 50%;\n background-color: #ee6e73;\n -webkit-box-shadow: 0 20px 20px 0 rgba(0, 0, 0, 0.14), 0 10px 50px 0 rgba(0, 0, 0, 0.12), 0 30px 10px -20px rgba(0, 0, 0, 0.2);\n box-shadow: 0 20px 20px 0 rgba(0, 0, 0, 0.14), 0 10px 50px 0 rgba(0, 0, 0, 0.12), 0 30px 10px -20px rgba(0, 0, 0, 0.2);\n width: 100%;\n height: 100%;\n opacity: 0;\n -webkit-transform: scale(0);\n transform: scale(0);\n -webkit-transition: opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1), -webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);\n transition: opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1), -webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);\n transition: transform 0.3s cubic-bezier(0.42, 0, 0.58, 1), opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1);\n transition: transform 0.3s cubic-bezier(0.42, 0, 0.58, 1), opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1), -webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);\n}\n\n.tap-target-content {\n position: relative;\n display: table-cell;\n}\n\n.tap-target-wave {\n position: absolute;\n border-radius: 50%;\n z-index: 10001;\n}\n\n.tap-target-wave::before, .tap-target-wave::after {\n content: \'\';\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: #ffffff;\n}\n\n.tap-target-wave::before {\n -webkit-transform: scale(0);\n transform: scale(0);\n -webkit-transition: -webkit-transform .3s;\n transition: -webkit-transform .3s;\n transition: transform .3s;\n transition: transform .3s, -webkit-transform .3s;\n}\n\n.tap-target-wave::after {\n visibility: hidden;\n -webkit-transition: opacity .3s,\r visibility 0s,\r -webkit-transform .3s;\n transition: opacity .3s,\r visibility 0s,\r -webkit-transform .3s;\n transition: opacity .3s,\r transform .3s,\r visibility 0s;\n transition: opacity .3s,\r transform .3s,\r visibility 0s,\r -webkit-transform .3s;\n z-index: -1;\n}\n\n.tap-target-origin {\n top: 50%;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n z-index: 10002;\n position: absolute !important;\n}\n\n.tap-target-origin:not(.btn):not(.btn-large):not(.btn-small), .tap-target-origin:not(.btn):not(.btn-large):not(.btn-small):hover {\n background: none;\n}\n\n@media only screen and (max-width: 600px) {\n .tap-target, .tap-target-wrapper {\n width: 600px;\n height: 600px;\n }\n}\n\n.pulse {\n overflow: visible;\n position: relative;\n}\n\n.pulse::before {\n content: \'\';\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background-color: inherit;\n border-radius: inherit;\n -webkit-transition: opacity .3s, -webkit-transform .3s;\n transition: opacity .3s, -webkit-transform .3s;\n transition: opacity .3s, transform .3s;\n transition: opacity .3s, transform .3s, -webkit-transform .3s;\n -webkit-animation: pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;\n animation: pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;\n z-index: -1;\n}\n\n@-webkit-keyframes pulse-animation {\n 0% {\n opacity: 1;\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 0;\n -webkit-transform: scale(1.5);\n transform: scale(1.5);\n }\n 100% {\n opacity: 0;\n -webkit-transform: scale(1.5);\n transform: scale(1.5);\n }\n}\n\n@keyframes pulse-animation {\n 0% {\n opacity: 1;\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 0;\n -webkit-transform: scale(1.5);\n transform: scale(1.5);\n }\n 100% {\n opacity: 0;\n -webkit-transform: scale(1.5);\n transform: scale(1.5);\n }\n}\n\n/* Modal */\n.datepicker-modal {\n max-width: 325px;\n min-width: 300px;\n max-height: none;\n}\n\n.datepicker-container.modal-content {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n padding: 0;\n}\n\n.datepicker-controls {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n -ms-flex-pack: justify;\n justify-content: space-between;\n width: 280px;\n margin: 0 auto;\n}\n\n.datepicker-controls .selects-container {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n\n.datepicker-controls .select-wrapper input {\n border-bottom: none;\n text-align: center;\n margin: 0;\n}\n\n.datepicker-controls .select-wrapper input:focus {\n border-bottom: none;\n}\n\n.datepicker-controls .select-wrapper .caret {\n display: none;\n}\n\n.datepicker-controls .select-year input {\n width: 50px;\n}\n\n.datepicker-controls .select-month input {\n width: 70px;\n}\n\n.month-prev, .month-next {\n margin-top: 4px;\n cursor: pointer;\n background-color: transparent;\n border: none;\n}\n\n/* Date Display */\n.datepicker-date-display {\n -webkit-box-flex: 1;\n -webkit-flex: 1 auto;\n -ms-flex: 1 auto;\n flex: 1 auto;\n background-color: #26a69a;\n color: #fff;\n padding: 20px 22px;\n font-weight: 500;\n}\n\n.datepicker-date-display .year-text {\n display: block;\n font-size: 1.5rem;\n line-height: 25px;\n color: rgba(255, 255, 255, 0.7);\n}\n\n.datepicker-date-display .date-text {\n display: block;\n font-size: 2.8rem;\n line-height: 47px;\n font-weight: 500;\n}\n\n/* Calendar */\n.datepicker-calendar-container {\n -webkit-box-flex: 2.5;\n -webkit-flex: 2.5 auto;\n -ms-flex: 2.5 auto;\n flex: 2.5 auto;\n}\n\n.datepicker-table {\n width: 280px;\n font-size: 1rem;\n margin: 0 auto;\n}\n\n.datepicker-table thead {\n border-bottom: none;\n}\n\n.datepicker-table th {\n padding: 10px 5px;\n text-align: center;\n}\n\n.datepicker-table tr {\n border: none;\n}\n\n.datepicker-table abbr {\n text-decoration: none;\n color: #999;\n}\n\n.datepicker-table td {\n border-radius: 50%;\n padding: 0;\n}\n\n.datepicker-table td.is-today {\n color: #26a69a;\n}\n\n.datepicker-table td.is-selected {\n background-color: #26a69a;\n color: #fff;\n}\n\n.datepicker-table td.is-outside-current-month, .datepicker-table td.is-disabled {\n color: rgba(0, 0, 0, 0.3);\n pointer-events: none;\n}\n\n.datepicker-day-button {\n background-color: transparent;\n border: none;\n line-height: 38px;\n display: block;\n width: 100%;\n border-radius: 50%;\n padding: 0 5px;\n cursor: pointer;\n color: inherit;\n}\n\n.datepicker-day-button:focus {\n background-color: rgba(43, 161, 150, 0.25);\n}\n\n/* Footer */\n.datepicker-footer {\n width: 280px;\n margin: 0 auto;\n padding-bottom: 5px;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n.datepicker-cancel,\n.datepicker-clear,\n.datepicker-today,\n.datepicker-done {\n color: #26a69a;\n padding: 0 1rem;\n}\n\n.datepicker-clear {\n color: #F44336;\n}\n\n/* Media Queries */\n@media only screen and (min-width: 601px) {\n .datepicker-modal {\n max-width: 625px;\n }\n .datepicker-container.modal-content {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -webkit-flex-direction: row;\n -ms-flex-direction: row;\n flex-direction: row;\n }\n .datepicker-date-display {\n -webkit-box-flex: 0;\n -webkit-flex: 0 1 270px;\n -ms-flex: 0 1 270px;\n flex: 0 1 270px;\n }\n .datepicker-controls,\n .datepicker-table,\n .datepicker-footer {\n width: 320px;\n }\n .datepicker-day-button {\n line-height: 44px;\n }\n}\n\n/* Timepicker Containers */\n.timepicker-modal {\n max-width: 325px;\n max-height: none;\n}\n\n.timepicker-container.modal-content {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n padding: 0;\n}\n\n.text-primary {\n color: white;\n}\n\n/* Clock Digital Display */\n.timepicker-digital-display {\n -webkit-box-flex: 1;\n -webkit-flex: 1 auto;\n -ms-flex: 1 auto;\n flex: 1 auto;\n background-color: #26a69a;\n padding: 10px;\n font-weight: 300;\n}\n\n.timepicker-text-container {\n font-size: 4rem;\n font-weight: bold;\n text-align: center;\n color: rgba(255, 255, 255, 0.6);\n font-weight: 400;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.timepicker-span-hours,\n.timepicker-span-minutes,\n.timepicker-span-am-pm div {\n cursor: pointer;\n}\n\n.timepicker-span-hours {\n margin-right: 3px;\n}\n\n.timepicker-span-minutes {\n margin-left: 3px;\n}\n\n.timepicker-display-am-pm {\n font-size: 1.3rem;\n position: absolute;\n right: 1rem;\n bottom: 1rem;\n font-weight: 400;\n}\n\n/* Analog Clock Display */\n.timepicker-analog-display {\n -webkit-box-flex: 2.5;\n -webkit-flex: 2.5 auto;\n -ms-flex: 2.5 auto;\n flex: 2.5 auto;\n}\n\n.timepicker-plate {\n background-color: #eee;\n border-radius: 50%;\n width: 270px;\n height: 270px;\n overflow: visible;\n position: relative;\n margin: auto;\n margin-top: 25px;\n margin-bottom: 5px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.timepicker-canvas,\n.timepicker-dial {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n}\n\n.timepicker-minutes {\n visibility: hidden;\n}\n\n.timepicker-tick {\n border-radius: 50%;\n color: rgba(0, 0, 0, 0.87);\n line-height: 40px;\n text-align: center;\n width: 40px;\n height: 40px;\n position: absolute;\n cursor: pointer;\n font-size: 15px;\n}\n\n.timepicker-tick.active,\n.timepicker-tick:hover {\n background-color: rgba(38, 166, 154, 0.25);\n}\n\n.timepicker-dial {\n -webkit-transition: opacity 350ms, -webkit-transform 350ms;\n transition: opacity 350ms, -webkit-transform 350ms;\n transition: transform 350ms, opacity 350ms;\n transition: transform 350ms, opacity 350ms, -webkit-transform 350ms;\n}\n\n.timepicker-dial-out {\n opacity: 0;\n}\n\n.timepicker-dial-out.timepicker-hours {\n -webkit-transform: scale(1.1, 1.1);\n transform: scale(1.1, 1.1);\n}\n\n.timepicker-dial-out.timepicker-minutes {\n -webkit-transform: scale(0.8, 0.8);\n transform: scale(0.8, 0.8);\n}\n\n.timepicker-canvas {\n -webkit-transition: opacity 175ms;\n transition: opacity 175ms;\n}\n\n.timepicker-canvas line {\n stroke: #26a69a;\n stroke-width: 4;\n stroke-linecap: round;\n}\n\n.timepicker-canvas-out {\n opacity: 0.25;\n}\n\n.timepicker-canvas-bearing {\n stroke: none;\n fill: #26a69a;\n}\n\n.timepicker-canvas-bg {\n stroke: none;\n fill: #26a69a;\n}\n\n/* Footer */\n.timepicker-footer {\n margin: 0 auto;\n padding: 5px 1rem;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n.timepicker-clear {\n color: #F44336;\n}\n\n.timepicker-close {\n color: #26a69a;\n}\n\n.timepicker-clear,\n.timepicker-close {\n padding: 0 20px;\n}\n\n/* Media Queries */\n@media only screen and (min-width: 601px) {\n .timepicker-modal {\n max-width: 600px;\n }\n .timepicker-container.modal-content {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -webkit-flex-direction: row;\n -ms-flex-direction: row;\n flex-direction: row;\n }\n .timepicker-text-container {\n top: 32%;\n }\n .timepicker-display-am-pm {\n position: relative;\n right: auto;\n bottom: auto;\n text-align: center;\n margin-top: 1.2rem;\n }\n}\n',""]),t.exports=e},function(t,e,n){var i=n(9);t.exports="string"==typeof i?i:i.toString()},function(t,e,n){(e=n(4)(!1)).push([t.i,'/*!\r\n * Materialize v1.0.0 (http://materializecss.com)\r\n * Copyright 2014-2017 Materialize\r\n * MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)\r\n */\r\n.materialize-red{background-color:#e51c23 !important}.materialize-red-text{color:#e51c23 !important}.materialize-red.lighten-5{background-color:#fdeaeb !important}.materialize-red-text.text-lighten-5{color:#fdeaeb !important}.materialize-red.lighten-4{background-color:#f8c1c3 !important}.materialize-red-text.text-lighten-4{color:#f8c1c3 !important}.materialize-red.lighten-3{background-color:#f3989b !important}.materialize-red-text.text-lighten-3{color:#f3989b !important}.materialize-red.lighten-2{background-color:#ee6e73 !important}.materialize-red-text.text-lighten-2{color:#ee6e73 !important}.materialize-red.lighten-1{background-color:#ea454b !important}.materialize-red-text.text-lighten-1{color:#ea454b !important}.materialize-red.darken-1{background-color:#d0181e !important}.materialize-red-text.text-darken-1{color:#d0181e !important}.materialize-red.darken-2{background-color:#b9151b !important}.materialize-red-text.text-darken-2{color:#b9151b !important}.materialize-red.darken-3{background-color:#a21318 !important}.materialize-red-text.text-darken-3{color:#a21318 !important}.materialize-red.darken-4{background-color:#8b1014 !important}.materialize-red-text.text-darken-4{color:#8b1014 !important}.red{background-color:#F44336 !important}.red-text{color:#F44336 !important}.red.lighten-5{background-color:#FFEBEE !important}.red-text.text-lighten-5{color:#FFEBEE !important}.red.lighten-4{background-color:#FFCDD2 !important}.red-text.text-lighten-4{color:#FFCDD2 !important}.red.lighten-3{background-color:#EF9A9A !important}.red-text.text-lighten-3{color:#EF9A9A !important}.red.lighten-2{background-color:#E57373 !important}.red-text.text-lighten-2{color:#E57373 !important}.red.lighten-1{background-color:#EF5350 !important}.red-text.text-lighten-1{color:#EF5350 !important}.red.darken-1{background-color:#E53935 !important}.red-text.text-darken-1{color:#E53935 !important}.red.darken-2{background-color:#D32F2F !important}.red-text.text-darken-2{color:#D32F2F !important}.red.darken-3{background-color:#C62828 !important}.red-text.text-darken-3{color:#C62828 !important}.red.darken-4{background-color:#B71C1C !important}.red-text.text-darken-4{color:#B71C1C !important}.red.accent-1{background-color:#FF8A80 !important}.red-text.text-accent-1{color:#FF8A80 !important}.red.accent-2{background-color:#FF5252 !important}.red-text.text-accent-2{color:#FF5252 !important}.red.accent-3{background-color:#FF1744 !important}.red-text.text-accent-3{color:#FF1744 !important}.red.accent-4{background-color:#D50000 !important}.red-text.text-accent-4{color:#D50000 !important}.pink{background-color:#e91e63 !important}.pink-text{color:#e91e63 !important}.pink.lighten-5{background-color:#fce4ec !important}.pink-text.text-lighten-5{color:#fce4ec !important}.pink.lighten-4{background-color:#f8bbd0 !important}.pink-text.text-lighten-4{color:#f8bbd0 !important}.pink.lighten-3{background-color:#f48fb1 !important}.pink-text.text-lighten-3{color:#f48fb1 !important}.pink.lighten-2{background-color:#f06292 !important}.pink-text.text-lighten-2{color:#f06292 !important}.pink.lighten-1{background-color:#ec407a !important}.pink-text.text-lighten-1{color:#ec407a !important}.pink.darken-1{background-color:#d81b60 !important}.pink-text.text-darken-1{color:#d81b60 !important}.pink.darken-2{background-color:#c2185b !important}.pink-text.text-darken-2{color:#c2185b !important}.pink.darken-3{background-color:#ad1457 !important}.pink-text.text-darken-3{color:#ad1457 !important}.pink.darken-4{background-color:#880e4f !important}.pink-text.text-darken-4{color:#880e4f !important}.pink.accent-1{background-color:#ff80ab !important}.pink-text.text-accent-1{color:#ff80ab !important}.pink.accent-2{background-color:#ff4081 !important}.pink-text.text-accent-2{color:#ff4081 !important}.pink.accent-3{background-color:#f50057 !important}.pink-text.text-accent-3{color:#f50057 !important}.pink.accent-4{background-color:#c51162 !important}.pink-text.text-accent-4{color:#c51162 !important}.purple{background-color:#9c27b0 !important}.purple-text{color:#9c27b0 !important}.purple.lighten-5{background-color:#f3e5f5 !important}.purple-text.text-lighten-5{color:#f3e5f5 !important}.purple.lighten-4{background-color:#e1bee7 !important}.purple-text.text-lighten-4{color:#e1bee7 !important}.purple.lighten-3{background-color:#ce93d8 !important}.purple-text.text-lighten-3{color:#ce93d8 !important}.purple.lighten-2{background-color:#ba68c8 !important}.purple-text.text-lighten-2{color:#ba68c8 !important}.purple.lighten-1{background-color:#ab47bc !important}.purple-text.text-lighten-1{color:#ab47bc !important}.purple.darken-1{background-color:#8e24aa !important}.purple-text.text-darken-1{color:#8e24aa !important}.purple.darken-2{background-color:#7b1fa2 !important}.purple-text.text-darken-2{color:#7b1fa2 !important}.purple.darken-3{background-color:#6a1b9a !important}.purple-text.text-darken-3{color:#6a1b9a !important}.purple.darken-4{background-color:#4a148c !important}.purple-text.text-darken-4{color:#4a148c !important}.purple.accent-1{background-color:#ea80fc !important}.purple-text.text-accent-1{color:#ea80fc !important}.purple.accent-2{background-color:#e040fb !important}.purple-text.text-accent-2{color:#e040fb !important}.purple.accent-3{background-color:#d500f9 !important}.purple-text.text-accent-3{color:#d500f9 !important}.purple.accent-4{background-color:#a0f !important}.purple-text.text-accent-4{color:#a0f !important}.deep-purple{background-color:#673ab7 !important}.deep-purple-text{color:#673ab7 !important}.deep-purple.lighten-5{background-color:#ede7f6 !important}.deep-purple-text.text-lighten-5{color:#ede7f6 !important}.deep-purple.lighten-4{background-color:#d1c4e9 !important}.deep-purple-text.text-lighten-4{color:#d1c4e9 !important}.deep-purple.lighten-3{background-color:#b39ddb !important}.deep-purple-text.text-lighten-3{color:#b39ddb !important}.deep-purple.lighten-2{background-color:#9575cd !important}.deep-purple-text.text-lighten-2{color:#9575cd !important}.deep-purple.lighten-1{background-color:#7e57c2 !important}.deep-purple-text.text-lighten-1{color:#7e57c2 !important}.deep-purple.darken-1{background-color:#5e35b1 !important}.deep-purple-text.text-darken-1{color:#5e35b1 !important}.deep-purple.darken-2{background-color:#512da8 !important}.deep-purple-text.text-darken-2{color:#512da8 !important}.deep-purple.darken-3{background-color:#4527a0 !important}.deep-purple-text.text-darken-3{color:#4527a0 !important}.deep-purple.darken-4{background-color:#311b92 !important}.deep-purple-text.text-darken-4{color:#311b92 !important}.deep-purple.accent-1{background-color:#b388ff !important}.deep-purple-text.text-accent-1{color:#b388ff !important}.deep-purple.accent-2{background-color:#7c4dff !important}.deep-purple-text.text-accent-2{color:#7c4dff !important}.deep-purple.accent-3{background-color:#651fff !important}.deep-purple-text.text-accent-3{color:#651fff !important}.deep-purple.accent-4{background-color:#6200ea !important}.deep-purple-text.text-accent-4{color:#6200ea !important}.indigo{background-color:#3f51b5 !important}.indigo-text{color:#3f51b5 !important}.indigo.lighten-5{background-color:#e8eaf6 !important}.indigo-text.text-lighten-5{color:#e8eaf6 !important}.indigo.lighten-4{background-color:#c5cae9 !important}.indigo-text.text-lighten-4{color:#c5cae9 !important}.indigo.lighten-3{background-color:#9fa8da !important}.indigo-text.text-lighten-3{color:#9fa8da !important}.indigo.lighten-2{background-color:#7986cb !important}.indigo-text.text-lighten-2{color:#7986cb !important}.indigo.lighten-1{background-color:#5c6bc0 !important}.indigo-text.text-lighten-1{color:#5c6bc0 !important}.indigo.darken-1{background-color:#3949ab !important}.indigo-text.text-darken-1{color:#3949ab !important}.indigo.darken-2{background-color:#303f9f !important}.indigo-text.text-darken-2{color:#303f9f !important}.indigo.darken-3{background-color:#283593 !important}.indigo-text.text-darken-3{color:#283593 !important}.indigo.darken-4{background-color:#1a237e !important}.indigo-text.text-darken-4{color:#1a237e !important}.indigo.accent-1{background-color:#8c9eff !important}.indigo-text.text-accent-1{color:#8c9eff !important}.indigo.accent-2{background-color:#536dfe !important}.indigo-text.text-accent-2{color:#536dfe !important}.indigo.accent-3{background-color:#3d5afe !important}.indigo-text.text-accent-3{color:#3d5afe !important}.indigo.accent-4{background-color:#304ffe !important}.indigo-text.text-accent-4{color:#304ffe !important}.blue{background-color:#2196F3 !important}.blue-text{color:#2196F3 !important}.blue.lighten-5{background-color:#E3F2FD !important}.blue-text.text-lighten-5{color:#E3F2FD !important}.blue.lighten-4{background-color:#BBDEFB !important}.blue-text.text-lighten-4{color:#BBDEFB !important}.blue.lighten-3{background-color:#90CAF9 !important}.blue-text.text-lighten-3{color:#90CAF9 !important}.blue.lighten-2{background-color:#64B5F6 !important}.blue-text.text-lighten-2{color:#64B5F6 !important}.blue.lighten-1{background-color:#42A5F5 !important}.blue-text.text-lighten-1{color:#42A5F5 !important}.blue.darken-1{background-color:#1E88E5 !important}.blue-text.text-darken-1{color:#1E88E5 !important}.blue.darken-2{background-color:#1976D2 !important}.blue-text.text-darken-2{color:#1976D2 !important}.blue.darken-3{background-color:#1565C0 !important}.blue-text.text-darken-3{color:#1565C0 !important}.blue.darken-4{background-color:#0D47A1 !important}.blue-text.text-darken-4{color:#0D47A1 !important}.blue.accent-1{background-color:#82B1FF !important}.blue-text.text-accent-1{color:#82B1FF !important}.blue.accent-2{background-color:#448AFF !important}.blue-text.text-accent-2{color:#448AFF !important}.blue.accent-3{background-color:#2979FF !important}.blue-text.text-accent-3{color:#2979FF !important}.blue.accent-4{background-color:#2962FF !important}.blue-text.text-accent-4{color:#2962FF !important}.light-blue{background-color:#03a9f4 !important}.light-blue-text{color:#03a9f4 !important}.light-blue.lighten-5{background-color:#e1f5fe !important}.light-blue-text.text-lighten-5{color:#e1f5fe !important}.light-blue.lighten-4{background-color:#b3e5fc !important}.light-blue-text.text-lighten-4{color:#b3e5fc !important}.light-blue.lighten-3{background-color:#81d4fa !important}.light-blue-text.text-lighten-3{color:#81d4fa !important}.light-blue.lighten-2{background-color:#4fc3f7 !important}.light-blue-text.text-lighten-2{color:#4fc3f7 !important}.light-blue.lighten-1{background-color:#29b6f6 !important}.light-blue-text.text-lighten-1{color:#29b6f6 !important}.light-blue.darken-1{background-color:#039be5 !important}.light-blue-text.text-darken-1{color:#039be5 !important}.light-blue.darken-2{background-color:#0288d1 !important}.light-blue-text.text-darken-2{color:#0288d1 !important}.light-blue.darken-3{background-color:#0277bd !important}.light-blue-text.text-darken-3{color:#0277bd !important}.light-blue.darken-4{background-color:#01579b !important}.light-blue-text.text-darken-4{color:#01579b !important}.light-blue.accent-1{background-color:#80d8ff !important}.light-blue-text.text-accent-1{color:#80d8ff !important}.light-blue.accent-2{background-color:#40c4ff !important}.light-blue-text.text-accent-2{color:#40c4ff !important}.light-blue.accent-3{background-color:#00b0ff !important}.light-blue-text.text-accent-3{color:#00b0ff !important}.light-blue.accent-4{background-color:#0091ea !important}.light-blue-text.text-accent-4{color:#0091ea !important}.cyan{background-color:#00bcd4 !important}.cyan-text{color:#00bcd4 !important}.cyan.lighten-5{background-color:#e0f7fa !important}.cyan-text.text-lighten-5{color:#e0f7fa !important}.cyan.lighten-4{background-color:#b2ebf2 !important}.cyan-text.text-lighten-4{color:#b2ebf2 !important}.cyan.lighten-3{background-color:#80deea !important}.cyan-text.text-lighten-3{color:#80deea !important}.cyan.lighten-2{background-color:#4dd0e1 !important}.cyan-text.text-lighten-2{color:#4dd0e1 !important}.cyan.lighten-1{background-color:#26c6da !important}.cyan-text.text-lighten-1{color:#26c6da !important}.cyan.darken-1{background-color:#00acc1 !important}.cyan-text.text-darken-1{color:#00acc1 !important}.cyan.darken-2{background-color:#0097a7 !important}.cyan-text.text-darken-2{color:#0097a7 !important}.cyan.darken-3{background-color:#00838f !important}.cyan-text.text-darken-3{color:#00838f !important}.cyan.darken-4{background-color:#006064 !important}.cyan-text.text-darken-4{color:#006064 !important}.cyan.accent-1{background-color:#84ffff !important}.cyan-text.text-accent-1{color:#84ffff !important}.cyan.accent-2{background-color:#18ffff !important}.cyan-text.text-accent-2{color:#18ffff !important}.cyan.accent-3{background-color:#00e5ff !important}.cyan-text.text-accent-3{color:#00e5ff !important}.cyan.accent-4{background-color:#00b8d4 !important}.cyan-text.text-accent-4{color:#00b8d4 !important}.teal{background-color:#009688 !important}.teal-text{color:#009688 !important}.teal.lighten-5{background-color:#e0f2f1 !important}.teal-text.text-lighten-5{color:#e0f2f1 !important}.teal.lighten-4{background-color:#b2dfdb !important}.teal-text.text-lighten-4{color:#b2dfdb !important}.teal.lighten-3{background-color:#80cbc4 !important}.teal-text.text-lighten-3{color:#80cbc4 !important}.teal.lighten-2{background-color:#4db6ac !important}.teal-text.text-lighten-2{color:#4db6ac !important}.teal.lighten-1{background-color:#26a69a !important}.teal-text.text-lighten-1{color:#26a69a !important}.teal.darken-1{background-color:#00897b !important}.teal-text.text-darken-1{color:#00897b !important}.teal.darken-2{background-color:#00796b !important}.teal-text.text-darken-2{color:#00796b !important}.teal.darken-3{background-color:#00695c !important}.teal-text.text-darken-3{color:#00695c !important}.teal.darken-4{background-color:#004d40 !important}.teal-text.text-darken-4{color:#004d40 !important}.teal.accent-1{background-color:#a7ffeb !important}.teal-text.text-accent-1{color:#a7ffeb !important}.teal.accent-2{background-color:#64ffda !important}.teal-text.text-accent-2{color:#64ffda !important}.teal.accent-3{background-color:#1de9b6 !important}.teal-text.text-accent-3{color:#1de9b6 !important}.teal.accent-4{background-color:#00bfa5 !important}.teal-text.text-accent-4{color:#00bfa5 !important}.green{background-color:#4CAF50 !important}.green-text{color:#4CAF50 !important}.green.lighten-5{background-color:#E8F5E9 !important}.green-text.text-lighten-5{color:#E8F5E9 !important}.green.lighten-4{background-color:#C8E6C9 !important}.green-text.text-lighten-4{color:#C8E6C9 !important}.green.lighten-3{background-color:#A5D6A7 !important}.green-text.text-lighten-3{color:#A5D6A7 !important}.green.lighten-2{background-color:#81C784 !important}.green-text.text-lighten-2{color:#81C784 !important}.green.lighten-1{background-color:#66BB6A !important}.green-text.text-lighten-1{color:#66BB6A !important}.green.darken-1{background-color:#43A047 !important}.green-text.text-darken-1{color:#43A047 !important}.green.darken-2{background-color:#388E3C !important}.green-text.text-darken-2{color:#388E3C !important}.green.darken-3{background-color:#2E7D32 !important}.green-text.text-darken-3{color:#2E7D32 !important}.green.darken-4{background-color:#1B5E20 !important}.green-text.text-darken-4{color:#1B5E20 !important}.green.accent-1{background-color:#B9F6CA !important}.green-text.text-accent-1{color:#B9F6CA !important}.green.accent-2{background-color:#69F0AE !important}.green-text.text-accent-2{color:#69F0AE !important}.green.accent-3{background-color:#00E676 !important}.green-text.text-accent-3{color:#00E676 !important}.green.accent-4{background-color:#00C853 !important}.green-text.text-accent-4{color:#00C853 !important}.light-green{background-color:#8bc34a !important}.light-green-text{color:#8bc34a !important}.light-green.lighten-5{background-color:#f1f8e9 !important}.light-green-text.text-lighten-5{color:#f1f8e9 !important}.light-green.lighten-4{background-color:#dcedc8 !important}.light-green-text.text-lighten-4{color:#dcedc8 !important}.light-green.lighten-3{background-color:#c5e1a5 !important}.light-green-text.text-lighten-3{color:#c5e1a5 !important}.light-green.lighten-2{background-color:#aed581 !important}.light-green-text.text-lighten-2{color:#aed581 !important}.light-green.lighten-1{background-color:#9ccc65 !important}.light-green-text.text-lighten-1{color:#9ccc65 !important}.light-green.darken-1{background-color:#7cb342 !important}.light-green-text.text-darken-1{color:#7cb342 !important}.light-green.darken-2{background-color:#689f38 !important}.light-green-text.text-darken-2{color:#689f38 !important}.light-green.darken-3{background-color:#558b2f !important}.light-green-text.text-darken-3{color:#558b2f !important}.light-green.darken-4{background-color:#33691e !important}.light-green-text.text-darken-4{color:#33691e !important}.light-green.accent-1{background-color:#ccff90 !important}.light-green-text.text-accent-1{color:#ccff90 !important}.light-green.accent-2{background-color:#b2ff59 !important}.light-green-text.text-accent-2{color:#b2ff59 !important}.light-green.accent-3{background-color:#76ff03 !important}.light-green-text.text-accent-3{color:#76ff03 !important}.light-green.accent-4{background-color:#64dd17 !important}.light-green-text.text-accent-4{color:#64dd17 !important}.lime{background-color:#cddc39 !important}.lime-text{color:#cddc39 !important}.lime.lighten-5{background-color:#f9fbe7 !important}.lime-text.text-lighten-5{color:#f9fbe7 !important}.lime.lighten-4{background-color:#f0f4c3 !important}.lime-text.text-lighten-4{color:#f0f4c3 !important}.lime.lighten-3{background-color:#e6ee9c !important}.lime-text.text-lighten-3{color:#e6ee9c !important}.lime.lighten-2{background-color:#dce775 !important}.lime-text.text-lighten-2{color:#dce775 !important}.lime.lighten-1{background-color:#d4e157 !important}.lime-text.text-lighten-1{color:#d4e157 !important}.lime.darken-1{background-color:#c0ca33 !important}.lime-text.text-darken-1{color:#c0ca33 !important}.lime.darken-2{background-color:#afb42b !important}.lime-text.text-darken-2{color:#afb42b !important}.lime.darken-3{background-color:#9e9d24 !important}.lime-text.text-darken-3{color:#9e9d24 !important}.lime.darken-4{background-color:#827717 !important}.lime-text.text-darken-4{color:#827717 !important}.lime.accent-1{background-color:#f4ff81 !important}.lime-text.text-accent-1{color:#f4ff81 !important}.lime.accent-2{background-color:#eeff41 !important}.lime-text.text-accent-2{color:#eeff41 !important}.lime.accent-3{background-color:#c6ff00 !important}.lime-text.text-accent-3{color:#c6ff00 !important}.lime.accent-4{background-color:#aeea00 !important}.lime-text.text-accent-4{color:#aeea00 !important}.yellow{background-color:#ffeb3b !important}.yellow-text{color:#ffeb3b !important}.yellow.lighten-5{background-color:#fffde7 !important}.yellow-text.text-lighten-5{color:#fffde7 !important}.yellow.lighten-4{background-color:#fff9c4 !important}.yellow-text.text-lighten-4{color:#fff9c4 !important}.yellow.lighten-3{background-color:#fff59d !important}.yellow-text.text-lighten-3{color:#fff59d !important}.yellow.lighten-2{background-color:#fff176 !important}.yellow-text.text-lighten-2{color:#fff176 !important}.yellow.lighten-1{background-color:#ffee58 !important}.yellow-text.text-lighten-1{color:#ffee58 !important}.yellow.darken-1{background-color:#fdd835 !important}.yellow-text.text-darken-1{color:#fdd835 !important}.yellow.darken-2{background-color:#fbc02d !important}.yellow-text.text-darken-2{color:#fbc02d !important}.yellow.darken-3{background-color:#f9a825 !important}.yellow-text.text-darken-3{color:#f9a825 !important}.yellow.darken-4{background-color:#f57f17 !important}.yellow-text.text-darken-4{color:#f57f17 !important}.yellow.accent-1{background-color:#ffff8d !important}.yellow-text.text-accent-1{color:#ffff8d !important}.yellow.accent-2{background-color:#ff0 !important}.yellow-text.text-accent-2{color:#ff0 !important}.yellow.accent-3{background-color:#ffea00 !important}.yellow-text.text-accent-3{color:#ffea00 !important}.yellow.accent-4{background-color:#ffd600 !important}.yellow-text.text-accent-4{color:#ffd600 !important}.amber{background-color:#ffc107 !important}.amber-text{color:#ffc107 !important}.amber.lighten-5{background-color:#fff8e1 !important}.amber-text.text-lighten-5{color:#fff8e1 !important}.amber.lighten-4{background-color:#ffecb3 !important}.amber-text.text-lighten-4{color:#ffecb3 !important}.amber.lighten-3{background-color:#ffe082 !important}.amber-text.text-lighten-3{color:#ffe082 !important}.amber.lighten-2{background-color:#ffd54f !important}.amber-text.text-lighten-2{color:#ffd54f !important}.amber.lighten-1{background-color:#ffca28 !important}.amber-text.text-lighten-1{color:#ffca28 !important}.amber.darken-1{background-color:#ffb300 !important}.amber-text.text-darken-1{color:#ffb300 !important}.amber.darken-2{background-color:#ffa000 !important}.amber-text.text-darken-2{color:#ffa000 !important}.amber.darken-3{background-color:#ff8f00 !important}.amber-text.text-darken-3{color:#ff8f00 !important}.amber.darken-4{background-color:#ff6f00 !important}.amber-text.text-darken-4{color:#ff6f00 !important}.amber.accent-1{background-color:#ffe57f !important}.amber-text.text-accent-1{color:#ffe57f !important}.amber.accent-2{background-color:#ffd740 !important}.amber-text.text-accent-2{color:#ffd740 !important}.amber.accent-3{background-color:#ffc400 !important}.amber-text.text-accent-3{color:#ffc400 !important}.amber.accent-4{background-color:#ffab00 !important}.amber-text.text-accent-4{color:#ffab00 !important}.orange{background-color:#ff9800 !important}.orange-text{color:#ff9800 !important}.orange.lighten-5{background-color:#fff3e0 !important}.orange-text.text-lighten-5{color:#fff3e0 !important}.orange.lighten-4{background-color:#ffe0b2 !important}.orange-text.text-lighten-4{color:#ffe0b2 !important}.orange.lighten-3{background-color:#ffcc80 !important}.orange-text.text-lighten-3{color:#ffcc80 !important}.orange.lighten-2{background-color:#ffb74d !important}.orange-text.text-lighten-2{color:#ffb74d !important}.orange.lighten-1{background-color:#ffa726 !important}.orange-text.text-lighten-1{color:#ffa726 !important}.orange.darken-1{background-color:#fb8c00 !important}.orange-text.text-darken-1{color:#fb8c00 !important}.orange.darken-2{background-color:#f57c00 !important}.orange-text.text-darken-2{color:#f57c00 !important}.orange.darken-3{background-color:#ef6c00 !important}.orange-text.text-darken-3{color:#ef6c00 !important}.orange.darken-4{background-color:#e65100 !important}.orange-text.text-darken-4{color:#e65100 !important}.orange.accent-1{background-color:#ffd180 !important}.orange-text.text-accent-1{color:#ffd180 !important}.orange.accent-2{background-color:#ffab40 !important}.orange-text.text-accent-2{color:#ffab40 !important}.orange.accent-3{background-color:#ff9100 !important}.orange-text.text-accent-3{color:#ff9100 !important}.orange.accent-4{background-color:#ff6d00 !important}.orange-text.text-accent-4{color:#ff6d00 !important}.deep-orange{background-color:#ff5722 !important}.deep-orange-text{color:#ff5722 !important}.deep-orange.lighten-5{background-color:#fbe9e7 !important}.deep-orange-text.text-lighten-5{color:#fbe9e7 !important}.deep-orange.lighten-4{background-color:#ffccbc !important}.deep-orange-text.text-lighten-4{color:#ffccbc !important}.deep-orange.lighten-3{background-color:#ffab91 !important}.deep-orange-text.text-lighten-3{color:#ffab91 !important}.deep-orange.lighten-2{background-color:#ff8a65 !important}.deep-orange-text.text-lighten-2{color:#ff8a65 !important}.deep-orange.lighten-1{background-color:#ff7043 !important}.deep-orange-text.text-lighten-1{color:#ff7043 !important}.deep-orange.darken-1{background-color:#f4511e !important}.deep-orange-text.text-darken-1{color:#f4511e !important}.deep-orange.darken-2{background-color:#e64a19 !important}.deep-orange-text.text-darken-2{color:#e64a19 !important}.deep-orange.darken-3{background-color:#d84315 !important}.deep-orange-text.text-darken-3{color:#d84315 !important}.deep-orange.darken-4{background-color:#bf360c !important}.deep-orange-text.text-darken-4{color:#bf360c !important}.deep-orange.accent-1{background-color:#ff9e80 !important}.deep-orange-text.text-accent-1{color:#ff9e80 !important}.deep-orange.accent-2{background-color:#ff6e40 !important}.deep-orange-text.text-accent-2{color:#ff6e40 !important}.deep-orange.accent-3{background-color:#ff3d00 !important}.deep-orange-text.text-accent-3{color:#ff3d00 !important}.deep-orange.accent-4{background-color:#dd2c00 !important}.deep-orange-text.text-accent-4{color:#dd2c00 !important}.brown{background-color:#795548 !important}.brown-text{color:#795548 !important}.brown.lighten-5{background-color:#efebe9 !important}.brown-text.text-lighten-5{color:#efebe9 !important}.brown.lighten-4{background-color:#d7ccc8 !important}.brown-text.text-lighten-4{color:#d7ccc8 !important}.brown.lighten-3{background-color:#bcaaa4 !important}.brown-text.text-lighten-3{color:#bcaaa4 !important}.brown.lighten-2{background-color:#a1887f !important}.brown-text.text-lighten-2{color:#a1887f !important}.brown.lighten-1{background-color:#8d6e63 !important}.brown-text.text-lighten-1{color:#8d6e63 !important}.brown.darken-1{background-color:#6d4c41 !important}.brown-text.text-darken-1{color:#6d4c41 !important}.brown.darken-2{background-color:#5d4037 !important}.brown-text.text-darken-2{color:#5d4037 !important}.brown.darken-3{background-color:#4e342e !important}.brown-text.text-darken-3{color:#4e342e !important}.brown.darken-4{background-color:#3e2723 !important}.brown-text.text-darken-4{color:#3e2723 !important}.blue-grey{background-color:#607d8b !important}.blue-grey-text{color:#607d8b !important}.blue-grey.lighten-5{background-color:#eceff1 !important}.blue-grey-text.text-lighten-5{color:#eceff1 !important}.blue-grey.lighten-4{background-color:#cfd8dc !important}.blue-grey-text.text-lighten-4{color:#cfd8dc !important}.blue-grey.lighten-3{background-color:#b0bec5 !important}.blue-grey-text.text-lighten-3{color:#b0bec5 !important}.blue-grey.lighten-2{background-color:#90a4ae !important}.blue-grey-text.text-lighten-2{color:#90a4ae !important}.blue-grey.lighten-1{background-color:#78909c !important}.blue-grey-text.text-lighten-1{color:#78909c !important}.blue-grey.darken-1{background-color:#546e7a !important}.blue-grey-text.text-darken-1{color:#546e7a !important}.blue-grey.darken-2{background-color:#455a64 !important}.blue-grey-text.text-darken-2{color:#455a64 !important}.blue-grey.darken-3{background-color:#37474f !important}.blue-grey-text.text-darken-3{color:#37474f !important}.blue-grey.darken-4{background-color:#263238 !important}.blue-grey-text.text-darken-4{color:#263238 !important}.grey{background-color:#9e9e9e !important}.grey-text{color:#9e9e9e !important}.grey.lighten-5{background-color:#fafafa !important}.grey-text.text-lighten-5{color:#fafafa !important}.grey.lighten-4{background-color:#f5f5f5 !important}.grey-text.text-lighten-4{color:#f5f5f5 !important}.grey.lighten-3{background-color:#eee !important}.grey-text.text-lighten-3{color:#eee !important}.grey.lighten-2{background-color:#e0e0e0 !important}.grey-text.text-lighten-2{color:#e0e0e0 !important}.grey.lighten-1{background-color:#bdbdbd !important}.grey-text.text-lighten-1{color:#bdbdbd !important}.grey.darken-1{background-color:#757575 !important}.grey-text.text-darken-1{color:#757575 !important}.grey.darken-2{background-color:#616161 !important}.grey-text.text-darken-2{color:#616161 !important}.grey.darken-3{background-color:#424242 !important}.grey-text.text-darken-3{color:#424242 !important}.grey.darken-4{background-color:#212121 !important}.grey-text.text-darken-4{color:#212121 !important}.black{background-color:#000 !important}.black-text{color:#000 !important}.white{background-color:#fff !important}.white-text{color:#fff !important}.transparent{background-color:rgba(0,0,0,0) !important}.transparent-text{color:rgba(0,0,0,0) !important}/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:0.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace, monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;-moz-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,html [type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}[type="search"]::-webkit-search-cancel-button,[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}html{-webkit-box-sizing:border-box;box-sizing:border-box}*,*:before,*:after{-webkit-box-sizing:inherit;box-sizing:inherit}button,input,optgroup,select,textarea{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}ul:not(.browser-default){padding-left:0;list-style-type:none}ul:not(.browser-default)>li{list-style-type:none}a{color:#039be5;text-decoration:none;-webkit-tap-highlight-color:transparent}.valign-wrapper{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.clearfix{clear:both}.z-depth-0{-webkit-box-shadow:none !important;box-shadow:none !important}.z-depth-1,nav,.card-panel,.card,.toast,.btn,.btn-large,.btn-small,.btn-floating,.dropdown-content,.collapsible,.sidenav{-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);box-shadow:0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2)}.z-depth-1-half,.btn:hover,.btn-large:hover,.btn-small:hover,.btn-floating:hover{-webkit-box-shadow:0 3px 3px 0 rgba(0,0,0,0.14),0 1px 7px 0 rgba(0,0,0,0.12),0 3px 1px -1px rgba(0,0,0,0.2);box-shadow:0 3px 3px 0 rgba(0,0,0,0.14),0 1px 7px 0 rgba(0,0,0,0.12),0 3px 1px -1px rgba(0,0,0,0.2)}.z-depth-2{-webkit-box-shadow:0 4px 5px 0 rgba(0,0,0,0.14),0 1px 10px 0 rgba(0,0,0,0.12),0 2px 4px -1px rgba(0,0,0,0.3);box-shadow:0 4px 5px 0 rgba(0,0,0,0.14),0 1px 10px 0 rgba(0,0,0,0.12),0 2px 4px -1px rgba(0,0,0,0.3)}.z-depth-3{-webkit-box-shadow:0 8px 17px 2px rgba(0,0,0,0.14),0 3px 14px 2px rgba(0,0,0,0.12),0 5px 5px -3px rgba(0,0,0,0.2);box-shadow:0 8px 17px 2px rgba(0,0,0,0.14),0 3px 14px 2px rgba(0,0,0,0.12),0 5px 5px -3px rgba(0,0,0,0.2)}.z-depth-4{-webkit-box-shadow:0 16px 24px 2px rgba(0,0,0,0.14),0 6px 30px 5px rgba(0,0,0,0.12),0 8px 10px -7px rgba(0,0,0,0.2);box-shadow:0 16px 24px 2px rgba(0,0,0,0.14),0 6px 30px 5px rgba(0,0,0,0.12),0 8px 10px -7px rgba(0,0,0,0.2)}.z-depth-5,.modal{-webkit-box-shadow:0 24px 38px 3px rgba(0,0,0,0.14),0 9px 46px 8px rgba(0,0,0,0.12),0 11px 15px -7px rgba(0,0,0,0.2);box-shadow:0 24px 38px 3px rgba(0,0,0,0.14),0 9px 46px 8px rgba(0,0,0,0.12),0 11px 15px -7px rgba(0,0,0,0.2)}.hoverable{-webkit-transition:-webkit-box-shadow .25s;transition:-webkit-box-shadow .25s;transition:box-shadow .25s;transition:box-shadow .25s, -webkit-box-shadow .25s}.hoverable:hover{-webkit-box-shadow:0 8px 17px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);box-shadow:0 8px 17px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19)}.divider{height:1px;overflow:hidden;background-color:#e0e0e0}blockquote{margin:20px 0;padding-left:1.5rem;border-left:5px solid #ee6e73}i{line-height:inherit}i.left{float:left;margin-right:15px}i.right{float:right;margin-left:15px}i.tiny{font-size:1rem}i.small{font-size:2rem}i.medium{font-size:4rem}i.large{font-size:6rem}img.responsive-img,video.responsive-video{max-width:100%;height:auto}.pagination li{display:inline-block;border-radius:2px;text-align:center;vertical-align:top;height:30px}.pagination li a{color:#444;display:inline-block;font-size:1.2rem;padding:0 10px;line-height:30px}.pagination li.active a{color:#fff}.pagination li.active{background-color:#ee6e73}.pagination li.disabled a{cursor:default;color:#999}.pagination li i{font-size:2rem}.pagination li.pages ul li{display:inline-block;float:none}@media only screen and (max-width: 992px){.pagination{width:100%}.pagination li.prev,.pagination li.next{width:10%}.pagination li.pages{width:80%;overflow:hidden;white-space:nowrap}}.breadcrumb{font-size:18px;color:rgba(255,255,255,0.7)}.breadcrumb i,.breadcrumb [class^="mdi-"],.breadcrumb [class*="mdi-"],.breadcrumb i.material-icons{display:inline-block;float:left;font-size:24px}.breadcrumb:before{content:\'\\E5CC\';color:rgba(255,255,255,0.7);vertical-align:top;display:inline-block;font-family:\'Material Icons\';font-weight:normal;font-style:normal;font-size:25px;margin:0 10px 0 8px;-webkit-font-smoothing:antialiased}.breadcrumb:first-child:before{display:none}.breadcrumb:last-child{color:#fff}.parallax-container{position:relative;overflow:hidden;height:500px}.parallax-container .parallax{position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1}.parallax-container .parallax img{opacity:0;position:absolute;left:50%;bottom:0;min-width:100%;min-height:100%;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transform:translateX(-50%);transform:translateX(-50%)}.pin-top,.pin-bottom{position:relative}.pinned{position:fixed !important}ul.staggered-list li{opacity:0}.fade-in{opacity:0;-webkit-transform-origin:0 50%;transform-origin:0 50%}@media only screen and (max-width: 600px){.hide-on-small-only,.hide-on-small-and-down{display:none !important}}@media only screen and (max-width: 992px){.hide-on-med-and-down{display:none !important}}@media only screen and (min-width: 601px){.hide-on-med-and-up{display:none !important}}@media only screen and (min-width: 600px) and (max-width: 992px){.hide-on-med-only{display:none !important}}@media only screen and (min-width: 993px){.hide-on-large-only{display:none !important}}@media only screen and (min-width: 1201px){.hide-on-extra-large-only{display:none !important}}@media only screen and (min-width: 1201px){.show-on-extra-large{display:block !important}}@media only screen and (min-width: 993px){.show-on-large{display:block !important}}@media only screen and (min-width: 600px) and (max-width: 992px){.show-on-medium{display:block !important}}@media only screen and (max-width: 600px){.show-on-small{display:block !important}}@media only screen and (min-width: 601px){.show-on-medium-and-up{display:block !important}}@media only screen and (max-width: 992px){.show-on-medium-and-down{display:block !important}}@media only screen and (max-width: 600px){.center-on-small-only{text-align:center}}.page-footer{padding-top:20px;color:#fff;background-color:#ee6e73}.page-footer .footer-copyright{overflow:hidden;min-height:50px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:10px 0px;color:rgba(255,255,255,0.8);background-color:rgba(51,51,51,0.08)}table,th,td{border:none}table{width:100%;display:table;border-collapse:collapse;border-spacing:0}table.striped tr{border-bottom:none}table.striped>tbody>tr:nth-child(odd){background-color:rgba(242,242,242,0.5)}table.striped>tbody>tr>td{border-radius:0}table.highlight>tbody>tr{-webkit-transition:background-color .25s ease;transition:background-color .25s ease}table.highlight>tbody>tr:hover{background-color:rgba(242,242,242,0.5)}table.centered thead tr th,table.centered tbody tr td{text-align:center}tr{border-bottom:1px solid rgba(0,0,0,0.12)}td,th{padding:15px 5px;display:table-cell;text-align:left;vertical-align:middle;border-radius:2px}@media only screen and (max-width: 992px){table.responsive-table{width:100%;border-collapse:collapse;border-spacing:0;display:block;position:relative}table.responsive-table td:empty:before{content:\'\\00a0\'}table.responsive-table th,table.responsive-table td{margin:0;vertical-align:top}table.responsive-table th{text-align:left}table.responsive-table thead{display:block;float:left}table.responsive-table thead tr{display:block;padding:0 10px 0 0}table.responsive-table thead tr th::before{content:"\\00a0"}table.responsive-table tbody{display:block;width:auto;position:relative;overflow-x:auto;white-space:nowrap}table.responsive-table tbody tr{display:inline-block;vertical-align:top}table.responsive-table th{display:block;text-align:right}table.responsive-table td{display:block;min-height:1.25em;text-align:left}table.responsive-table tr{border-bottom:none;padding:0 10px}table.responsive-table thead{border:0;border-right:1px solid rgba(0,0,0,0.12)}}.collection{margin:.5rem 0 1rem 0;border:1px solid #e0e0e0;border-radius:2px;overflow:hidden;position:relative}.collection .collection-item{background-color:#fff;line-height:1.5rem;padding:10px 20px;margin:0;border-bottom:1px solid #e0e0e0}.collection .collection-item.avatar{min-height:84px;padding-left:72px;position:relative}.collection .collection-item.avatar:not(.circle-clipper)>.circle,.collection .collection-item.avatar :not(.circle-clipper)>.circle{position:absolute;width:42px;height:42px;overflow:hidden;left:15px;display:inline-block;vertical-align:middle}.collection .collection-item.avatar i.circle{font-size:18px;line-height:42px;color:#fff;background-color:#999;text-align:center}.collection .collection-item.avatar .title{font-size:16px}.collection .collection-item.avatar p{margin:0}.collection .collection-item.avatar .secondary-content{position:absolute;top:16px;right:16px}.collection .collection-item:last-child{border-bottom:none}.collection .collection-item.active{background-color:#26a69a;color:#eafaf9}.collection .collection-item.active .secondary-content{color:#fff}.collection a.collection-item{display:block;-webkit-transition:.25s;transition:.25s;color:#26a69a}.collection a.collection-item:not(.active):hover{background-color:#ddd}.collection.with-header .collection-header{background-color:#fff;border-bottom:1px solid #e0e0e0;padding:10px 20px}.collection.with-header .collection-item{padding-left:30px}.collection.with-header .collection-item.avatar{padding-left:72px}.secondary-content{float:right;color:#26a69a}.collapsible .collection{margin:0;border:none}.video-container{position:relative;padding-bottom:56.25%;height:0;overflow:hidden}.video-container iframe,.video-container object,.video-container embed{position:absolute;top:0;left:0;width:100%;height:100%}.progress{position:relative;height:4px;display:block;width:100%;background-color:#acece6;border-radius:2px;margin:.5rem 0 1rem 0;overflow:hidden}.progress .determinate{position:absolute;top:0;left:0;bottom:0;background-color:#26a69a;-webkit-transition:width .3s linear;transition:width .3s linear}.progress .indeterminate{background-color:#26a69a}.progress .indeterminate:before{content:\'\';position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left, right;-webkit-animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite}.progress .indeterminate:after{content:\'\';position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left, right;-webkit-animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;-webkit-animation-delay:1.15s;animation-delay:1.15s}@-webkit-keyframes indeterminate{0%{left:-35%;right:100%}60%{left:100%;right:-90%}100%{left:100%;right:-90%}}@keyframes indeterminate{0%{left:-35%;right:100%}60%{left:100%;right:-90%}100%{left:100%;right:-90%}}@-webkit-keyframes indeterminate-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}100%{left:107%;right:-8%}}@keyframes indeterminate-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}100%{left:107%;right:-8%}}.hide{display:none !important}.left-align{text-align:left}.right-align{text-align:right}.center,.center-align{text-align:center}.left{float:left !important}.right{float:right !important}.no-select,input[type=range],input[type=range]+.thumb{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.circle{border-radius:50%}.center-block{display:block;margin-left:auto;margin-right:auto}.truncate{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.no-padding{padding:0 !important}span.badge{min-width:3rem;padding:0 6px;margin-left:14px;text-align:center;font-size:1rem;line-height:22px;height:22px;color:#757575;float:right;-webkit-box-sizing:border-box;box-sizing:border-box}span.badge.new{font-weight:300;font-size:0.8rem;color:#fff;background-color:#26a69a;border-radius:2px}span.badge.new:after{content:" new"}span.badge[data-badge-caption]::after{content:" " attr(data-badge-caption)}nav ul a span.badge{display:inline-block;float:none;margin-left:4px;line-height:22px;height:22px;-webkit-font-smoothing:auto}.collection-item span.badge{margin-top:calc(.75rem - 11px)}.collapsible span.badge{margin-left:auto}.sidenav span.badge{margin-top:calc(24px - 11px)}table span.badge{display:inline-block;float:none;margin-left:auto}.material-icons{text-rendering:optimizeLegibility;-webkit-font-feature-settings:\'liga\';-moz-font-feature-settings:\'liga\';font-feature-settings:\'liga\'}.container{margin:0 auto;max-width:1280px;width:90%}@media only screen and (min-width: 601px){.container{width:85%}}@media only screen and (min-width: 993px){.container{width:70%}}.col .row{margin-left:-.75rem;margin-right:-.75rem}.section{padding-top:1rem;padding-bottom:1rem}.section.no-pad{padding:0}.section.no-pad-bot{padding-bottom:0}.section.no-pad-top{padding-top:0}.row{margin-left:auto;margin-right:auto;margin-bottom:20px}.row:after{content:"";display:table;clear:both}.row .col{float:left;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 .75rem;min-height:1px}.row .col[class*="push-"],.row .col[class*="pull-"]{position:relative}.row .col.s1{width:8.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.s2{width:16.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.s3{width:25%;margin-left:auto;left:auto;right:auto}.row .col.s4{width:33.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.s5{width:41.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.s6{width:50%;margin-left:auto;left:auto;right:auto}.row .col.s7{width:58.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.s8{width:66.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.s9{width:75%;margin-left:auto;left:auto;right:auto}.row .col.s10{width:83.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.s11{width:91.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.s12{width:100%;margin-left:auto;left:auto;right:auto}.row .col.offset-s1{margin-left:8.3333333333%}.row .col.pull-s1{right:8.3333333333%}.row .col.push-s1{left:8.3333333333%}.row .col.offset-s2{margin-left:16.6666666667%}.row .col.pull-s2{right:16.6666666667%}.row .col.push-s2{left:16.6666666667%}.row .col.offset-s3{margin-left:25%}.row .col.pull-s3{right:25%}.row .col.push-s3{left:25%}.row .col.offset-s4{margin-left:33.3333333333%}.row .col.pull-s4{right:33.3333333333%}.row .col.push-s4{left:33.3333333333%}.row .col.offset-s5{margin-left:41.6666666667%}.row .col.pull-s5{right:41.6666666667%}.row .col.push-s5{left:41.6666666667%}.row .col.offset-s6{margin-left:50%}.row .col.pull-s6{right:50%}.row .col.push-s6{left:50%}.row .col.offset-s7{margin-left:58.3333333333%}.row .col.pull-s7{right:58.3333333333%}.row .col.push-s7{left:58.3333333333%}.row .col.offset-s8{margin-left:66.6666666667%}.row .col.pull-s8{right:66.6666666667%}.row .col.push-s8{left:66.6666666667%}.row .col.offset-s9{margin-left:75%}.row .col.pull-s9{right:75%}.row .col.push-s9{left:75%}.row .col.offset-s10{margin-left:83.3333333333%}.row .col.pull-s10{right:83.3333333333%}.row .col.push-s10{left:83.3333333333%}.row .col.offset-s11{margin-left:91.6666666667%}.row .col.pull-s11{right:91.6666666667%}.row .col.push-s11{left:91.6666666667%}.row .col.offset-s12{margin-left:100%}.row .col.pull-s12{right:100%}.row .col.push-s12{left:100%}@media only screen and (min-width: 601px){.row .col.m1{width:8.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.m2{width:16.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.m3{width:25%;margin-left:auto;left:auto;right:auto}.row .col.m4{width:33.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.m5{width:41.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.m6{width:50%;margin-left:auto;left:auto;right:auto}.row .col.m7{width:58.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.m8{width:66.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.m9{width:75%;margin-left:auto;left:auto;right:auto}.row .col.m10{width:83.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.m11{width:91.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.m12{width:100%;margin-left:auto;left:auto;right:auto}.row .col.offset-m1{margin-left:8.3333333333%}.row .col.pull-m1{right:8.3333333333%}.row .col.push-m1{left:8.3333333333%}.row .col.offset-m2{margin-left:16.6666666667%}.row .col.pull-m2{right:16.6666666667%}.row .col.push-m2{left:16.6666666667%}.row .col.offset-m3{margin-left:25%}.row .col.pull-m3{right:25%}.row .col.push-m3{left:25%}.row .col.offset-m4{margin-left:33.3333333333%}.row .col.pull-m4{right:33.3333333333%}.row .col.push-m4{left:33.3333333333%}.row .col.offset-m5{margin-left:41.6666666667%}.row .col.pull-m5{right:41.6666666667%}.row .col.push-m5{left:41.6666666667%}.row .col.offset-m6{margin-left:50%}.row .col.pull-m6{right:50%}.row .col.push-m6{left:50%}.row .col.offset-m7{margin-left:58.3333333333%}.row .col.pull-m7{right:58.3333333333%}.row .col.push-m7{left:58.3333333333%}.row .col.offset-m8{margin-left:66.6666666667%}.row .col.pull-m8{right:66.6666666667%}.row .col.push-m8{left:66.6666666667%}.row .col.offset-m9{margin-left:75%}.row .col.pull-m9{right:75%}.row .col.push-m9{left:75%}.row .col.offset-m10{margin-left:83.3333333333%}.row .col.pull-m10{right:83.3333333333%}.row .col.push-m10{left:83.3333333333%}.row .col.offset-m11{margin-left:91.6666666667%}.row .col.pull-m11{right:91.6666666667%}.row .col.push-m11{left:91.6666666667%}.row .col.offset-m12{margin-left:100%}.row .col.pull-m12{right:100%}.row .col.push-m12{left:100%}}@media only screen and (min-width: 993px){.row .col.l1{width:8.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.l2{width:16.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.l3{width:25%;margin-left:auto;left:auto;right:auto}.row .col.l4{width:33.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.l5{width:41.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.l6{width:50%;margin-left:auto;left:auto;right:auto}.row .col.l7{width:58.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.l8{width:66.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.l9{width:75%;margin-left:auto;left:auto;right:auto}.row .col.l10{width:83.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.l11{width:91.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.l12{width:100%;margin-left:auto;left:auto;right:auto}.row .col.offset-l1{margin-left:8.3333333333%}.row .col.pull-l1{right:8.3333333333%}.row .col.push-l1{left:8.3333333333%}.row .col.offset-l2{margin-left:16.6666666667%}.row .col.pull-l2{right:16.6666666667%}.row .col.push-l2{left:16.6666666667%}.row .col.offset-l3{margin-left:25%}.row .col.pull-l3{right:25%}.row .col.push-l3{left:25%}.row .col.offset-l4{margin-left:33.3333333333%}.row .col.pull-l4{right:33.3333333333%}.row .col.push-l4{left:33.3333333333%}.row .col.offset-l5{margin-left:41.6666666667%}.row .col.pull-l5{right:41.6666666667%}.row .col.push-l5{left:41.6666666667%}.row .col.offset-l6{margin-left:50%}.row .col.pull-l6{right:50%}.row .col.push-l6{left:50%}.row .col.offset-l7{margin-left:58.3333333333%}.row .col.pull-l7{right:58.3333333333%}.row .col.push-l7{left:58.3333333333%}.row .col.offset-l8{margin-left:66.6666666667%}.row .col.pull-l8{right:66.6666666667%}.row .col.push-l8{left:66.6666666667%}.row .col.offset-l9{margin-left:75%}.row .col.pull-l9{right:75%}.row .col.push-l9{left:75%}.row .col.offset-l10{margin-left:83.3333333333%}.row .col.pull-l10{right:83.3333333333%}.row .col.push-l10{left:83.3333333333%}.row .col.offset-l11{margin-left:91.6666666667%}.row .col.pull-l11{right:91.6666666667%}.row .col.push-l11{left:91.6666666667%}.row .col.offset-l12{margin-left:100%}.row .col.pull-l12{right:100%}.row .col.push-l12{left:100%}}@media only screen and (min-width: 1201px){.row .col.xl1{width:8.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.xl2{width:16.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.xl3{width:25%;margin-left:auto;left:auto;right:auto}.row .col.xl4{width:33.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.xl5{width:41.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.xl6{width:50%;margin-left:auto;left:auto;right:auto}.row .col.xl7{width:58.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.xl8{width:66.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.xl9{width:75%;margin-left:auto;left:auto;right:auto}.row .col.xl10{width:83.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.xl11{width:91.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.xl12{width:100%;margin-left:auto;left:auto;right:auto}.row .col.offset-xl1{margin-left:8.3333333333%}.row .col.pull-xl1{right:8.3333333333%}.row .col.push-xl1{left:8.3333333333%}.row .col.offset-xl2{margin-left:16.6666666667%}.row .col.pull-xl2{right:16.6666666667%}.row .col.push-xl2{left:16.6666666667%}.row .col.offset-xl3{margin-left:25%}.row .col.pull-xl3{right:25%}.row .col.push-xl3{left:25%}.row .col.offset-xl4{margin-left:33.3333333333%}.row .col.pull-xl4{right:33.3333333333%}.row .col.push-xl4{left:33.3333333333%}.row .col.offset-xl5{margin-left:41.6666666667%}.row .col.pull-xl5{right:41.6666666667%}.row .col.push-xl5{left:41.6666666667%}.row .col.offset-xl6{margin-left:50%}.row .col.pull-xl6{right:50%}.row .col.push-xl6{left:50%}.row .col.offset-xl7{margin-left:58.3333333333%}.row .col.pull-xl7{right:58.3333333333%}.row .col.push-xl7{left:58.3333333333%}.row .col.offset-xl8{margin-left:66.6666666667%}.row .col.pull-xl8{right:66.6666666667%}.row .col.push-xl8{left:66.6666666667%}.row .col.offset-xl9{margin-left:75%}.row .col.pull-xl9{right:75%}.row .col.push-xl9{left:75%}.row .col.offset-xl10{margin-left:83.3333333333%}.row .col.pull-xl10{right:83.3333333333%}.row .col.push-xl10{left:83.3333333333%}.row .col.offset-xl11{margin-left:91.6666666667%}.row .col.pull-xl11{right:91.6666666667%}.row .col.push-xl11{left:91.6666666667%}.row .col.offset-xl12{margin-left:100%}.row .col.pull-xl12{right:100%}.row .col.push-xl12{left:100%}}nav{color:#fff;background-color:#ee6e73;width:100%;height:56px;line-height:56px}nav.nav-extended{height:auto}nav.nav-extended .nav-wrapper{min-height:56px;height:auto}nav.nav-extended .nav-content{position:relative;line-height:normal}nav a{color:#fff}nav i,nav [class^="mdi-"],nav [class*="mdi-"],nav i.material-icons{display:block;font-size:24px;height:56px;line-height:56px}nav .nav-wrapper{position:relative;height:100%}@media only screen and (min-width: 993px){nav a.sidenav-trigger{display:none}}nav .sidenav-trigger{float:left;position:relative;z-index:1;height:56px;margin:0 18px}nav .sidenav-trigger i{height:56px;line-height:56px}nav .brand-logo{position:absolute;color:#fff;display:inline-block;font-size:2.1rem;padding:0}nav .brand-logo.center{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}@media only screen and (max-width: 992px){nav .brand-logo{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}nav .brand-logo.left,nav .brand-logo.right{padding:0;-webkit-transform:none;transform:none}nav .brand-logo.left{left:0.5rem}nav .brand-logo.right{right:0.5rem;left:auto}}nav .brand-logo.right{right:0.5rem;padding:0}nav .brand-logo i,nav .brand-logo [class^="mdi-"],nav .brand-logo [class*="mdi-"],nav .brand-logo i.material-icons{float:left;margin-right:15px}nav .nav-title{display:inline-block;font-size:32px;padding:28px 0}nav ul{margin:0}nav ul li{-webkit-transition:background-color .3s;transition:background-color .3s;float:left;padding:0}nav ul li.active{background-color:rgba(0,0,0,0.1)}nav ul a{-webkit-transition:background-color .3s;transition:background-color .3s;font-size:1rem;color:#fff;display:block;padding:0 15px;cursor:pointer}nav ul a.btn,nav ul a.btn-large,nav ul a.btn-small,nav ul a.btn-large,nav ul a.btn-flat,nav ul a.btn-floating{margin-top:-2px;margin-left:15px;margin-right:15px}nav ul a.btn>.material-icons,nav ul a.btn-large>.material-icons,nav ul a.btn-small>.material-icons,nav ul a.btn-large>.material-icons,nav ul a.btn-flat>.material-icons,nav ul a.btn-floating>.material-icons{height:inherit;line-height:inherit}nav ul a:hover{background-color:rgba(0,0,0,0.1)}nav ul.left{float:left}nav form{height:100%}nav .input-field{margin:0;height:100%}nav .input-field input{height:100%;font-size:1.2rem;border:none;padding-left:2rem}nav .input-field input:focus,nav .input-field input[type=text]:valid,nav .input-field input[type=password]:valid,nav .input-field input[type=email]:valid,nav .input-field input[type=url]:valid,nav .input-field input[type=date]:valid{border:none;-webkit-box-shadow:none;box-shadow:none}nav .input-field label{top:0;left:0}nav .input-field label i{color:rgba(255,255,255,0.7);-webkit-transition:color .3s;transition:color .3s}nav .input-field label.active i{color:#fff}.navbar-fixed{position:relative;height:56px;z-index:997}.navbar-fixed nav{position:fixed}@media only screen and (min-width: 601px){nav.nav-extended .nav-wrapper{min-height:64px}nav,nav .nav-wrapper i,nav a.sidenav-trigger,nav a.sidenav-trigger i{height:64px;line-height:64px}.navbar-fixed{height:64px}}a{text-decoration:none}html{line-height:1.5;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-weight:normal;color:rgba(0,0,0,0.87)}@media only screen and (min-width: 0){html{font-size:14px}}@media only screen and (min-width: 992px){html{font-size:14.5px}}@media only screen and (min-width: 1200px){html{font-size:15px}}h1,h2,h3,h4,h5,h6{font-weight:400;line-height:1.3}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{font-weight:inherit}h1{font-size:4.2rem;line-height:110%;margin:2.8rem 0 1.68rem 0}h2{font-size:3.56rem;line-height:110%;margin:2.3733333333rem 0 1.424rem 0}h3{font-size:2.92rem;line-height:110%;margin:1.9466666667rem 0 1.168rem 0}h4{font-size:2.28rem;line-height:110%;margin:1.52rem 0 .912rem 0}h5{font-size:1.64rem;line-height:110%;margin:1.0933333333rem 0 .656rem 0}h6{font-size:1.15rem;line-height:110%;margin:.7666666667rem 0 .46rem 0}em{font-style:italic}strong{font-weight:500}small{font-size:75%}.light{font-weight:300}.thin{font-weight:200}@media only screen and (min-width: 360px){.flow-text{font-size:1.2rem}}@media only screen and (min-width: 390px){.flow-text{font-size:1.224rem}}@media only screen and (min-width: 420px){.flow-text{font-size:1.248rem}}@media only screen and (min-width: 450px){.flow-text{font-size:1.272rem}}@media only screen and (min-width: 480px){.flow-text{font-size:1.296rem}}@media only screen and (min-width: 510px){.flow-text{font-size:1.32rem}}@media only screen and (min-width: 540px){.flow-text{font-size:1.344rem}}@media only screen and (min-width: 570px){.flow-text{font-size:1.368rem}}@media only screen and (min-width: 600px){.flow-text{font-size:1.392rem}}@media only screen and (min-width: 630px){.flow-text{font-size:1.416rem}}@media only screen and (min-width: 660px){.flow-text{font-size:1.44rem}}@media only screen and (min-width: 690px){.flow-text{font-size:1.464rem}}@media only screen and (min-width: 720px){.flow-text{font-size:1.488rem}}@media only screen and (min-width: 750px){.flow-text{font-size:1.512rem}}@media only screen and (min-width: 780px){.flow-text{font-size:1.536rem}}@media only screen and (min-width: 810px){.flow-text{font-size:1.56rem}}@media only screen and (min-width: 840px){.flow-text{font-size:1.584rem}}@media only screen and (min-width: 870px){.flow-text{font-size:1.608rem}}@media only screen and (min-width: 900px){.flow-text{font-size:1.632rem}}@media only screen and (min-width: 930px){.flow-text{font-size:1.656rem}}@media only screen and (min-width: 960px){.flow-text{font-size:1.68rem}}@media only screen and (max-width: 360px){.flow-text{font-size:1.2rem}}.scale-transition{-webkit-transition:-webkit-transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;transition:-webkit-transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;transition:transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;transition:transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63), -webkit-transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important}.scale-transition.scale-out{-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform .2s !important;transition:-webkit-transform .2s !important;transition:transform .2s !important;transition:transform .2s, -webkit-transform .2s !important}.scale-transition.scale-in{-webkit-transform:scale(1);transform:scale(1)}.card-panel{-webkit-transition:-webkit-box-shadow .25s;transition:-webkit-box-shadow .25s;transition:box-shadow .25s;transition:box-shadow .25s, -webkit-box-shadow .25s;padding:24px;margin:.5rem 0 1rem 0;border-radius:2px;background-color:#fff}.card{position:relative;margin:.5rem 0 1rem 0;background-color:#fff;-webkit-transition:-webkit-box-shadow .25s;transition:-webkit-box-shadow .25s;transition:box-shadow .25s;transition:box-shadow .25s, -webkit-box-shadow .25s;border-radius:2px}.card .card-title{font-size:24px;font-weight:300}.card .card-title.activator{cursor:pointer}.card.small,.card.medium,.card.large{position:relative}.card.small .card-image,.card.medium .card-image,.card.large .card-image{max-height:60%;overflow:hidden}.card.small .card-image+.card-content,.card.medium .card-image+.card-content,.card.large .card-image+.card-content{max-height:40%}.card.small .card-content,.card.medium .card-content,.card.large .card-content{max-height:100%;overflow:hidden}.card.small .card-action,.card.medium .card-action,.card.large .card-action{position:absolute;bottom:0;left:0;right:0}.card.small{height:300px}.card.medium{height:400px}.card.large{height:500px}.card.horizontal{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.card.horizontal.small .card-image,.card.horizontal.medium .card-image,.card.horizontal.large .card-image{height:100%;max-height:none;overflow:visible}.card.horizontal.small .card-image img,.card.horizontal.medium .card-image img,.card.horizontal.large .card-image img{height:100%}.card.horizontal .card-image{max-width:50%}.card.horizontal .card-image img{border-radius:2px 0 0 2px;max-width:100%;width:auto}.card.horizontal .card-stacked{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative}.card.horizontal .card-stacked .card-content{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.card.sticky-action .card-action{z-index:2}.card.sticky-action .card-reveal{z-index:1;padding-bottom:64px}.card .card-image{position:relative}.card .card-image img{display:block;border-radius:2px 2px 0 0;position:relative;left:0;right:0;top:0;bottom:0;width:100%}.card .card-image .card-title{color:#fff;position:absolute;bottom:0;left:0;max-width:100%;padding:24px}.card .card-content{padding:24px;border-radius:0 0 2px 2px}.card .card-content p{margin:0}.card .card-content .card-title{display:block;line-height:32px;margin-bottom:8px}.card .card-content .card-title i{line-height:32px}.card .card-action{background-color:inherit;border-top:1px solid rgba(160,160,160,0.2);position:relative;padding:16px 24px}.card .card-action:last-child{border-radius:0 0 2px 2px}.card .card-action a:not(.btn):not(.btn-large):not(.btn-small):not(.btn-large):not(.btn-floating){color:#ffab40;margin-right:24px;-webkit-transition:color .3s ease;transition:color .3s ease;text-transform:uppercase}.card .card-action a:not(.btn):not(.btn-large):not(.btn-small):not(.btn-large):not(.btn-floating):hover{color:#ffd8a6}.card .card-reveal{padding:24px;position:absolute;background-color:#fff;width:100%;overflow-y:auto;left:0;top:100%;height:100%;z-index:3;display:none}.card .card-reveal .card-title{cursor:pointer;display:block}#toast-container{display:block;position:fixed;z-index:10000}@media only screen and (max-width: 600px){#toast-container{min-width:100%;bottom:0%}}@media only screen and (min-width: 601px) and (max-width: 992px){#toast-container{left:5%;bottom:7%;max-width:90%}}@media only screen and (min-width: 993px){#toast-container{top:10%;right:7%;max-width:86%}}.toast{border-radius:2px;top:35px;width:auto;margin-top:10px;position:relative;max-width:100%;height:auto;min-height:48px;line-height:1.5em;background-color:#323232;padding:10px 25px;font-size:1.1rem;font-weight:300;color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;cursor:default}.toast .toast-action{color:#eeff41;font-weight:500;margin-right:-25px;margin-left:3rem}.toast.rounded{border-radius:24px}@media only screen and (max-width: 600px){.toast{width:100%;border-radius:0}}.tabs{position:relative;overflow-x:auto;overflow-y:hidden;height:48px;width:100%;background-color:#fff;margin:0 auto;white-space:nowrap}.tabs.tabs-transparent{background-color:transparent}.tabs.tabs-transparent .tab a,.tabs.tabs-transparent .tab.disabled a,.tabs.tabs-transparent .tab.disabled a:hover{color:rgba(255,255,255,0.7)}.tabs.tabs-transparent .tab a:hover,.tabs.tabs-transparent .tab a.active{color:#fff}.tabs.tabs-transparent .indicator{background-color:#fff}.tabs.tabs-fixed-width{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.tabs.tabs-fixed-width .tab{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.tabs .tab{display:inline-block;text-align:center;line-height:48px;height:48px;padding:0;margin:0;text-transform:uppercase}.tabs .tab a{color:rgba(238,110,115,0.7);display:block;width:100%;height:100%;padding:0 24px;font-size:14px;text-overflow:ellipsis;overflow:hidden;-webkit-transition:color .28s ease, background-color .28s ease;transition:color .28s ease, background-color .28s ease}.tabs .tab a:focus,.tabs .tab a:focus.active{background-color:rgba(246,178,181,0.2);outline:none}.tabs .tab a:hover,.tabs .tab a.active{background-color:transparent;color:#ee6e73}.tabs .tab.disabled a,.tabs .tab.disabled a:hover{color:rgba(238,110,115,0.4);cursor:default}.tabs .indicator{position:absolute;bottom:0;height:2px;background-color:#f6b2b5;will-change:left, right}@media only screen and (max-width: 992px){.tabs{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.tabs .tab{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.tabs .tab a{padding:0 12px}}.material-tooltip{padding:10px 8px;font-size:1rem;z-index:2000;background-color:transparent;border-radius:2px;color:#fff;min-height:36px;line-height:120%;opacity:0;position:absolute;text-align:center;max-width:calc(100% - 4px);overflow:hidden;left:0;top:0;pointer-events:none;visibility:hidden;background-color:#323232}.backdrop{position:absolute;opacity:0;height:7px;width:14px;border-radius:0 0 50% 50%;background-color:#323232;z-index:-1;-webkit-transform-origin:50% 0%;transform-origin:50% 0%;visibility:hidden}.btn,.btn-large,.btn-small,.btn-flat{border:none;border-radius:2px;display:inline-block;height:36px;line-height:36px;padding:0 16px;text-transform:uppercase;vertical-align:middle;-webkit-tap-highlight-color:transparent}.btn.disabled,.disabled.btn-large,.disabled.btn-small,.btn-floating.disabled,.btn-large.disabled,.btn-small.disabled,.btn-flat.disabled,.btn:disabled,.btn-large:disabled,.btn-small:disabled,.btn-floating:disabled,.btn-large:disabled,.btn-small:disabled,.btn-flat:disabled,.btn[disabled],.btn-large[disabled],.btn-small[disabled],.btn-floating[disabled],.btn-large[disabled],.btn-small[disabled],.btn-flat[disabled]{pointer-events:none;background-color:#DFDFDF !important;-webkit-box-shadow:none;box-shadow:none;color:#9F9F9F !important;cursor:default}.btn.disabled:hover,.disabled.btn-large:hover,.disabled.btn-small:hover,.btn-floating.disabled:hover,.btn-large.disabled:hover,.btn-small.disabled:hover,.btn-flat.disabled:hover,.btn:disabled:hover,.btn-large:disabled:hover,.btn-small:disabled:hover,.btn-floating:disabled:hover,.btn-large:disabled:hover,.btn-small:disabled:hover,.btn-flat:disabled:hover,.btn[disabled]:hover,.btn-large[disabled]:hover,.btn-small[disabled]:hover,.btn-floating[disabled]:hover,.btn-large[disabled]:hover,.btn-small[disabled]:hover,.btn-flat[disabled]:hover{background-color:#DFDFDF !important;color:#9F9F9F !important}.btn,.btn-large,.btn-small,.btn-floating,.btn-large,.btn-small,.btn-flat{font-size:14px;outline:0}.btn i,.btn-large i,.btn-small i,.btn-floating i,.btn-large i,.btn-small i,.btn-flat i{font-size:1.3rem;line-height:inherit}.btn:focus,.btn-large:focus,.btn-small:focus,.btn-floating:focus{background-color:#1d7d74}.btn,.btn-large,.btn-small{text-decoration:none;color:#fff;background-color:#26a69a;text-align:center;letter-spacing:.5px;-webkit-transition:background-color .2s ease-out;transition:background-color .2s ease-out;cursor:pointer}.btn:hover,.btn-large:hover,.btn-small:hover{background-color:#2bbbad}.btn-floating{display:inline-block;color:#fff;position:relative;overflow:hidden;z-index:1;width:40px;height:40px;line-height:40px;padding:0;background-color:#26a69a;border-radius:50%;-webkit-transition:background-color .3s;transition:background-color .3s;cursor:pointer;vertical-align:middle}.btn-floating:hover{background-color:#26a69a}.btn-floating:before{border-radius:0}.btn-floating.btn-large{width:56px;height:56px;padding:0}.btn-floating.btn-large.halfway-fab{bottom:-28px}.btn-floating.btn-large i{line-height:56px}.btn-floating.btn-small{width:32.4px;height:32.4px}.btn-floating.btn-small.halfway-fab{bottom:-16.2px}.btn-floating.btn-small i{line-height:32.4px}.btn-floating.halfway-fab{position:absolute;right:24px;bottom:-20px}.btn-floating.halfway-fab.left{right:auto;left:24px}.btn-floating i{width:inherit;display:inline-block;text-align:center;color:#fff;font-size:1.6rem;line-height:40px}button.btn-floating{border:none}.fixed-action-btn{position:fixed;right:23px;bottom:23px;padding-top:15px;margin-bottom:0;z-index:997}.fixed-action-btn.active ul{visibility:visible}.fixed-action-btn.direction-left,.fixed-action-btn.direction-right{padding:0 0 0 15px}.fixed-action-btn.direction-left ul,.fixed-action-btn.direction-right ul{text-align:right;right:64px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:100%;left:auto;width:500px}.fixed-action-btn.direction-left ul li,.fixed-action-btn.direction-right ul li{display:inline-block;margin:7.5px 15px 0 0}.fixed-action-btn.direction-right{padding:0 15px 0 0}.fixed-action-btn.direction-right ul{text-align:left;direction:rtl;left:64px;right:auto}.fixed-action-btn.direction-right ul li{margin:7.5px 0 0 15px}.fixed-action-btn.direction-bottom{padding:0 0 15px 0}.fixed-action-btn.direction-bottom ul{top:64px;bottom:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.fixed-action-btn.direction-bottom ul li{margin:15px 0 0 0}.fixed-action-btn.toolbar{padding:0;height:56px}.fixed-action-btn.toolbar.active>a i{opacity:0}.fixed-action-btn.toolbar ul{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;top:0;bottom:0;z-index:1}.fixed-action-btn.toolbar ul li{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:inline-block;margin:0;height:100%;-webkit-transition:none;transition:none}.fixed-action-btn.toolbar ul li a{display:block;overflow:hidden;position:relative;width:100%;height:100%;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#fff;line-height:56px;z-index:1}.fixed-action-btn.toolbar ul li a i{line-height:inherit}.fixed-action-btn ul{left:0;right:0;text-align:center;position:absolute;bottom:64px;margin:0;visibility:hidden}.fixed-action-btn ul li{margin-bottom:15px}.fixed-action-btn ul a.btn-floating{opacity:0}.fixed-action-btn .fab-backdrop{position:absolute;top:0;left:0;z-index:-1;width:40px;height:40px;background-color:#26a69a;border-radius:50%;-webkit-transform:scale(0);transform:scale(0)}.btn-flat{-webkit-box-shadow:none;box-shadow:none;background-color:transparent;color:#343434;cursor:pointer;-webkit-transition:background-color .2s;transition:background-color .2s}.btn-flat:focus,.btn-flat:hover{-webkit-box-shadow:none;box-shadow:none}.btn-flat:focus{background-color:rgba(0,0,0,0.1)}.btn-flat.disabled,.btn-flat.btn-flat[disabled]{background-color:transparent !important;color:#b3b2b2 !important;cursor:default}.btn-large{height:54px;line-height:54px;font-size:15px;padding:0 28px}.btn-large i{font-size:1.6rem}.btn-small{height:32.4px;line-height:32.4px;font-size:13px}.btn-small i{font-size:1.2rem}.btn-block{display:block}.dropdown-content{background-color:#fff;margin:0;display:none;min-width:100px;overflow-y:auto;opacity:0;position:absolute;left:0;top:0;z-index:9999;-webkit-transform-origin:0 0;transform-origin:0 0}.dropdown-content:focus{outline:0}.dropdown-content li{clear:both;color:rgba(0,0,0,0.87);cursor:pointer;min-height:50px;line-height:1.5rem;width:100%;text-align:left}.dropdown-content li:hover,.dropdown-content li.active{background-color:#eee}.dropdown-content li:focus{outline:none}.dropdown-content li.divider{min-height:0;height:1px}.dropdown-content li>a,.dropdown-content li>span{font-size:16px;color:#26a69a;display:block;line-height:22px;padding:14px 16px}.dropdown-content li>span>label{top:1px;left:0;height:18px}.dropdown-content li>a>i{height:inherit;line-height:inherit;float:left;margin:0 24px 0 0;width:24px}body.keyboard-focused .dropdown-content li:focus{background-color:#dadada}.input-field.col .dropdown-content [type="checkbox"]+label{top:1px;left:0;height:18px;-webkit-transform:none;transform:none}.dropdown-trigger{cursor:pointer}/*!\r\n * Waves v0.6.0\r\n * http://fian.my.id/Waves\r\n *\r\n * Copyright 2014 Alfiana E. Sibuea and other contributors\r\n * Released under the MIT license\r\n * https://github.com/fians/Waves/blob/master/LICENSE\r\n */.waves-effect{position:relative;cursor:pointer;display:inline-block;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;vertical-align:middle;z-index:1;-webkit-transition:.3s ease-out;transition:.3s ease-out}.waves-effect .waves-ripple{position:absolute;border-radius:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;opacity:0;background:rgba(0,0,0,0.2);-webkit-transition:all 0.7s ease-out;transition:all 0.7s ease-out;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;-webkit-transform:scale(0);transform:scale(0);pointer-events:none}.waves-effect.waves-light .waves-ripple{background-color:rgba(255,255,255,0.45)}.waves-effect.waves-red .waves-ripple{background-color:rgba(244,67,54,0.7)}.waves-effect.waves-yellow .waves-ripple{background-color:rgba(255,235,59,0.7)}.waves-effect.waves-orange .waves-ripple{background-color:rgba(255,152,0,0.7)}.waves-effect.waves-purple .waves-ripple{background-color:rgba(156,39,176,0.7)}.waves-effect.waves-green .waves-ripple{background-color:rgba(76,175,80,0.7)}.waves-effect.waves-teal .waves-ripple{background-color:rgba(0,150,136,0.7)}.waves-effect input[type="button"],.waves-effect input[type="reset"],.waves-effect input[type="submit"]{border:0;font-style:normal;font-size:inherit;text-transform:inherit;background:none}.waves-effect img{position:relative;z-index:-1}.waves-notransition{-webkit-transition:none !important;transition:none !important}.waves-circle{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-mask-image:-webkit-radial-gradient(circle, white 100%, black 100%)}.waves-input-wrapper{border-radius:0.2em;vertical-align:bottom}.waves-input-wrapper .waves-button-input{position:relative;top:0;left:0;z-index:1}.waves-circle{text-align:center;width:2.5em;height:2.5em;line-height:2.5em;border-radius:50%;-webkit-mask-image:none}.waves-block{display:block}.waves-effect .waves-ripple{z-index:-1}.modal{display:none;position:fixed;left:0;right:0;background-color:#fafafa;padding:0;max-height:70%;width:55%;margin:auto;overflow-y:auto;border-radius:2px;will-change:top, opacity}.modal:focus{outline:none}@media only screen and (max-width: 992px){.modal{width:80%}}.modal h1,.modal h2,.modal h3,.modal h4{margin-top:0}.modal .modal-content{padding:24px}.modal .modal-close{cursor:pointer}.modal .modal-footer{border-radius:0 0 2px 2px;background-color:#fafafa;padding:4px 6px;height:56px;width:100%;text-align:right}.modal .modal-footer .btn,.modal .modal-footer .btn-large,.modal .modal-footer .btn-small,.modal .modal-footer .btn-flat{margin:6px 0}.modal-overlay{position:fixed;z-index:999;top:-25%;left:0;bottom:0;right:0;height:125%;width:100%;background:#000;display:none;will-change:opacity}.modal.modal-fixed-footer{padding:0;height:70%}.modal.modal-fixed-footer .modal-content{position:absolute;height:calc(100% - 56px);max-height:100%;width:100%;overflow-y:auto}.modal.modal-fixed-footer .modal-footer{border-top:1px solid rgba(0,0,0,0.1);position:absolute;bottom:0}.modal.bottom-sheet{top:auto;bottom:-100%;margin:0;width:100%;max-height:45%;border-radius:0;will-change:bottom, opacity}.collapsible{border-top:1px solid #ddd;border-right:1px solid #ddd;border-left:1px solid #ddd;margin:.5rem 0 1rem 0}.collapsible-header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;cursor:pointer;-webkit-tap-highlight-color:transparent;line-height:1.5;padding:1rem;background-color:#fff;border-bottom:1px solid #ddd}.collapsible-header:focus{outline:0}.collapsible-header i{width:2rem;font-size:1.6rem;display:inline-block;text-align:center;margin-right:1rem}.keyboard-focused .collapsible-header:focus{background-color:#eee}.collapsible-body{display:none;border-bottom:1px solid #ddd;-webkit-box-sizing:border-box;box-sizing:border-box;padding:2rem}.sidenav .collapsible,.sidenav.fixed .collapsible{border:none;-webkit-box-shadow:none;box-shadow:none}.sidenav .collapsible li,.sidenav.fixed .collapsible li{padding:0}.sidenav .collapsible-header,.sidenav.fixed .collapsible-header{background-color:transparent;border:none;line-height:inherit;height:inherit;padding:0 16px}.sidenav .collapsible-header:hover,.sidenav.fixed .collapsible-header:hover{background-color:rgba(0,0,0,0.05)}.sidenav .collapsible-header i,.sidenav.fixed .collapsible-header i{line-height:inherit}.sidenav .collapsible-body,.sidenav.fixed .collapsible-body{border:0;background-color:#fff}.sidenav .collapsible-body li a,.sidenav.fixed .collapsible-body li a{padding:0 23.5px 0 31px}.collapsible.popout{border:none;-webkit-box-shadow:none;box-shadow:none}.collapsible.popout>li{-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);margin:0 24px;-webkit-transition:margin 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);transition:margin 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94)}.collapsible.popout>li.active{-webkit-box-shadow:0 5px 11px 0 rgba(0,0,0,0.18),0 4px 15px 0 rgba(0,0,0,0.15);box-shadow:0 5px 11px 0 rgba(0,0,0,0.18),0 4px 15px 0 rgba(0,0,0,0.15);margin:16px 0}.chip{display:inline-block;height:32px;font-size:13px;font-weight:500;color:rgba(0,0,0,0.6);line-height:32px;padding:0 12px;border-radius:16px;background-color:#e4e4e4;margin-bottom:5px;margin-right:5px}.chip:focus{outline:none;background-color:#26a69a;color:#fff}.chip>img{float:left;margin:0 8px 0 -12px;height:32px;width:32px;border-radius:50%}.chip .close{cursor:pointer;float:right;font-size:16px;line-height:32px;padding-left:8px}.chips{border:none;border-bottom:1px solid #9e9e9e;-webkit-box-shadow:none;box-shadow:none;margin:0 0 8px 0;min-height:45px;outline:none;-webkit-transition:all .3s;transition:all .3s}.chips.focus{border-bottom:1px solid #26a69a;-webkit-box-shadow:0 1px 0 0 #26a69a;box-shadow:0 1px 0 0 #26a69a}.chips:hover{cursor:text}.chips .input{background:none;border:0;color:rgba(0,0,0,0.6);display:inline-block;font-size:16px;height:3rem;line-height:32px;outline:0;margin:0;padding:0 !important;width:120px !important}.chips .input:focus{border:0 !important;-webkit-box-shadow:none !important;box-shadow:none !important}.chips .autocomplete-content{margin-top:0;margin-bottom:0}.prefix ~ .chips{margin-left:3rem;width:92%;width:calc(100% - 3rem)}.chips:empty ~ label{font-size:0.8rem;-webkit-transform:translateY(-140%);transform:translateY(-140%)}.materialboxed{display:block;cursor:-webkit-zoom-in;cursor:zoom-in;position:relative;-webkit-transition:opacity .4s;transition:opacity .4s;-webkit-backface-visibility:hidden}.materialboxed:hover:not(.active){opacity:.8}.materialboxed.active{cursor:-webkit-zoom-out;cursor:zoom-out}#materialbox-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#292929;z-index:1000;will-change:opacity}.materialbox-caption{position:fixed;display:none;color:#fff;line-height:50px;bottom:0;left:0;width:100%;text-align:center;padding:0% 15%;height:50px;z-index:1000;-webkit-font-smoothing:antialiased}select:focus{outline:1px solid #c9f3ef}button:focus{outline:none;background-color:#2ab7a9}label{font-size:.8rem;color:#9e9e9e}::-webkit-input-placeholder{color:#d1d1d1}::-moz-placeholder{color:#d1d1d1}:-ms-input-placeholder{color:#d1d1d1}::-ms-input-placeholder{color:#d1d1d1}::placeholder{color:#d1d1d1}input:not([type]),input[type=text]:not(.browser-default),input[type=password]:not(.browser-default),input[type=email]:not(.browser-default),input[type=url]:not(.browser-default),input[type=time]:not(.browser-default),input[type=date]:not(.browser-default),input[type=datetime]:not(.browser-default),input[type=datetime-local]:not(.browser-default),input[type=tel]:not(.browser-default),input[type=number]:not(.browser-default),input[type=search]:not(.browser-default),textarea.materialize-textarea{background-color:transparent;border:none;border-bottom:1px solid #9e9e9e;border-radius:0;outline:none;height:3rem;width:100%;font-size:16px;margin:0 0 8px 0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-transition:border .3s, -webkit-box-shadow .3s;transition:border .3s, -webkit-box-shadow .3s;transition:box-shadow .3s, border .3s;transition:box-shadow .3s, border .3s, -webkit-box-shadow .3s}input:not([type]):disabled,input:not([type])[readonly="readonly"],input[type=text]:not(.browser-default):disabled,input[type=text]:not(.browser-default)[readonly="readonly"],input[type=password]:not(.browser-default):disabled,input[type=password]:not(.browser-default)[readonly="readonly"],input[type=email]:not(.browser-default):disabled,input[type=email]:not(.browser-default)[readonly="readonly"],input[type=url]:not(.browser-default):disabled,input[type=url]:not(.browser-default)[readonly="readonly"],input[type=time]:not(.browser-default):disabled,input[type=time]:not(.browser-default)[readonly="readonly"],input[type=date]:not(.browser-default):disabled,input[type=date]:not(.browser-default)[readonly="readonly"],input[type=datetime]:not(.browser-default):disabled,input[type=datetime]:not(.browser-default)[readonly="readonly"],input[type=datetime-local]:not(.browser-default):disabled,input[type=datetime-local]:not(.browser-default)[readonly="readonly"],input[type=tel]:not(.browser-default):disabled,input[type=tel]:not(.browser-default)[readonly="readonly"],input[type=number]:not(.browser-default):disabled,input[type=number]:not(.browser-default)[readonly="readonly"],input[type=search]:not(.browser-default):disabled,input[type=search]:not(.browser-default)[readonly="readonly"],textarea.materialize-textarea:disabled,textarea.materialize-textarea[readonly="readonly"]{color:rgba(0,0,0,0.42);border-bottom:1px dotted rgba(0,0,0,0.42)}input:not([type]):disabled+label,input:not([type])[readonly="readonly"]+label,input[type=text]:not(.browser-default):disabled+label,input[type=text]:not(.browser-default)[readonly="readonly"]+label,input[type=password]:not(.browser-default):disabled+label,input[type=password]:not(.browser-default)[readonly="readonly"]+label,input[type=email]:not(.browser-default):disabled+label,input[type=email]:not(.browser-default)[readonly="readonly"]+label,input[type=url]:not(.browser-default):disabled+label,input[type=url]:not(.browser-default)[readonly="readonly"]+label,input[type=time]:not(.browser-default):disabled+label,input[type=time]:not(.browser-default)[readonly="readonly"]+label,input[type=date]:not(.browser-default):disabled+label,input[type=date]:not(.browser-default)[readonly="readonly"]+label,input[type=datetime]:not(.browser-default):disabled+label,input[type=datetime]:not(.browser-default)[readonly="readonly"]+label,input[type=datetime-local]:not(.browser-default):disabled+label,input[type=datetime-local]:not(.browser-default)[readonly="readonly"]+label,input[type=tel]:not(.browser-default):disabled+label,input[type=tel]:not(.browser-default)[readonly="readonly"]+label,input[type=number]:not(.browser-default):disabled+label,input[type=number]:not(.browser-default)[readonly="readonly"]+label,input[type=search]:not(.browser-default):disabled+label,input[type=search]:not(.browser-default)[readonly="readonly"]+label,textarea.materialize-textarea:disabled+label,textarea.materialize-textarea[readonly="readonly"]+label{color:rgba(0,0,0,0.42)}input:not([type]):focus:not([readonly]),input[type=text]:not(.browser-default):focus:not([readonly]),input[type=password]:not(.browser-default):focus:not([readonly]),input[type=email]:not(.browser-default):focus:not([readonly]),input[type=url]:not(.browser-default):focus:not([readonly]),input[type=time]:not(.browser-default):focus:not([readonly]),input[type=date]:not(.browser-default):focus:not([readonly]),input[type=datetime]:not(.browser-default):focus:not([readonly]),input[type=datetime-local]:not(.browser-default):focus:not([readonly]),input[type=tel]:not(.browser-default):focus:not([readonly]),input[type=number]:not(.browser-default):focus:not([readonly]),input[type=search]:not(.browser-default):focus:not([readonly]),textarea.materialize-textarea:focus:not([readonly]){border-bottom:1px solid #26a69a;-webkit-box-shadow:0 1px 0 0 #26a69a;box-shadow:0 1px 0 0 #26a69a}input:not([type]):focus:not([readonly])+label,input[type=text]:not(.browser-default):focus:not([readonly])+label,input[type=password]:not(.browser-default):focus:not([readonly])+label,input[type=email]:not(.browser-default):focus:not([readonly])+label,input[type=url]:not(.browser-default):focus:not([readonly])+label,input[type=time]:not(.browser-default):focus:not([readonly])+label,input[type=date]:not(.browser-default):focus:not([readonly])+label,input[type=datetime]:not(.browser-default):focus:not([readonly])+label,input[type=datetime-local]:not(.browser-default):focus:not([readonly])+label,input[type=tel]:not(.browser-default):focus:not([readonly])+label,input[type=number]:not(.browser-default):focus:not([readonly])+label,input[type=search]:not(.browser-default):focus:not([readonly])+label,textarea.materialize-textarea:focus:not([readonly])+label{color:#26a69a}input:not([type]):focus.valid ~ label,input[type=text]:not(.browser-default):focus.valid ~ label,input[type=password]:not(.browser-default):focus.valid ~ label,input[type=email]:not(.browser-default):focus.valid ~ label,input[type=url]:not(.browser-default):focus.valid ~ label,input[type=time]:not(.browser-default):focus.valid ~ label,input[type=date]:not(.browser-default):focus.valid ~ label,input[type=datetime]:not(.browser-default):focus.valid ~ label,input[type=datetime-local]:not(.browser-default):focus.valid ~ label,input[type=tel]:not(.browser-default):focus.valid ~ label,input[type=number]:not(.browser-default):focus.valid ~ label,input[type=search]:not(.browser-default):focus.valid ~ label,textarea.materialize-textarea:focus.valid ~ label{color:#4CAF50}input:not([type]):focus.invalid ~ label,input[type=text]:not(.browser-default):focus.invalid ~ label,input[type=password]:not(.browser-default):focus.invalid ~ label,input[type=email]:not(.browser-default):focus.invalid ~ label,input[type=url]:not(.browser-default):focus.invalid ~ label,input[type=time]:not(.browser-default):focus.invalid ~ label,input[type=date]:not(.browser-default):focus.invalid ~ label,input[type=datetime]:not(.browser-default):focus.invalid ~ label,input[type=datetime-local]:not(.browser-default):focus.invalid ~ label,input[type=tel]:not(.browser-default):focus.invalid ~ label,input[type=number]:not(.browser-default):focus.invalid ~ label,input[type=search]:not(.browser-default):focus.invalid ~ label,textarea.materialize-textarea:focus.invalid ~ label{color:#F44336}input:not([type]).validate+label,input[type=text]:not(.browser-default).validate+label,input[type=password]:not(.browser-default).validate+label,input[type=email]:not(.browser-default).validate+label,input[type=url]:not(.browser-default).validate+label,input[type=time]:not(.browser-default).validate+label,input[type=date]:not(.browser-default).validate+label,input[type=datetime]:not(.browser-default).validate+label,input[type=datetime-local]:not(.browser-default).validate+label,input[type=tel]:not(.browser-default).validate+label,input[type=number]:not(.browser-default).validate+label,input[type=search]:not(.browser-default).validate+label,textarea.materialize-textarea.validate+label{width:100%}input.valid:not([type]),input.valid:not([type]):focus,input.valid[type=text]:not(.browser-default),input.valid[type=text]:not(.browser-default):focus,input.valid[type=password]:not(.browser-default),input.valid[type=password]:not(.browser-default):focus,input.valid[type=email]:not(.browser-default),input.valid[type=email]:not(.browser-default):focus,input.valid[type=url]:not(.browser-default),input.valid[type=url]:not(.browser-default):focus,input.valid[type=time]:not(.browser-default),input.valid[type=time]:not(.browser-default):focus,input.valid[type=date]:not(.browser-default),input.valid[type=date]:not(.browser-default):focus,input.valid[type=datetime]:not(.browser-default),input.valid[type=datetime]:not(.browser-default):focus,input.valid[type=datetime-local]:not(.browser-default),input.valid[type=datetime-local]:not(.browser-default):focus,input.valid[type=tel]:not(.browser-default),input.valid[type=tel]:not(.browser-default):focus,input.valid[type=number]:not(.browser-default),input.valid[type=number]:not(.browser-default):focus,input.valid[type=search]:not(.browser-default),input.valid[type=search]:not(.browser-default):focus,textarea.materialize-textarea.valid,textarea.materialize-textarea.valid:focus,.select-wrapper.valid>input.select-dropdown{border-bottom:1px solid #4CAF50;-webkit-box-shadow:0 1px 0 0 #4CAF50;box-shadow:0 1px 0 0 #4CAF50}input.invalid:not([type]),input.invalid:not([type]):focus,input.invalid[type=text]:not(.browser-default),input.invalid[type=text]:not(.browser-default):focus,input.invalid[type=password]:not(.browser-default),input.invalid[type=password]:not(.browser-default):focus,input.invalid[type=email]:not(.browser-default),input.invalid[type=email]:not(.browser-default):focus,input.invalid[type=url]:not(.browser-default),input.invalid[type=url]:not(.browser-default):focus,input.invalid[type=time]:not(.browser-default),input.invalid[type=time]:not(.browser-default):focus,input.invalid[type=date]:not(.browser-default),input.invalid[type=date]:not(.browser-default):focus,input.invalid[type=datetime]:not(.browser-default),input.invalid[type=datetime]:not(.browser-default):focus,input.invalid[type=datetime-local]:not(.browser-default),input.invalid[type=datetime-local]:not(.browser-default):focus,input.invalid[type=tel]:not(.browser-default),input.invalid[type=tel]:not(.browser-default):focus,input.invalid[type=number]:not(.browser-default),input.invalid[type=number]:not(.browser-default):focus,input.invalid[type=search]:not(.browser-default),input.invalid[type=search]:not(.browser-default):focus,textarea.materialize-textarea.invalid,textarea.materialize-textarea.invalid:focus,.select-wrapper.invalid>input.select-dropdown,.select-wrapper.invalid>input.select-dropdown:focus{border-bottom:1px solid #F44336;-webkit-box-shadow:0 1px 0 0 #F44336;box-shadow:0 1px 0 0 #F44336}input:not([type]).valid ~ .helper-text[data-success],input:not([type]):focus.valid ~ .helper-text[data-success],input:not([type]).invalid ~ .helper-text[data-error],input:not([type]):focus.invalid ~ .helper-text[data-error],input[type=text]:not(.browser-default).valid ~ .helper-text[data-success],input[type=text]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=text]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=text]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=password]:not(.browser-default).valid ~ .helper-text[data-success],input[type=password]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=password]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=password]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=email]:not(.browser-default).valid ~ .helper-text[data-success],input[type=email]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=email]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=email]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=url]:not(.browser-default).valid ~ .helper-text[data-success],input[type=url]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=url]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=url]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=time]:not(.browser-default).valid ~ .helper-text[data-success],input[type=time]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=time]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=time]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=date]:not(.browser-default).valid ~ .helper-text[data-success],input[type=date]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=date]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=date]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=datetime]:not(.browser-default).valid ~ .helper-text[data-success],input[type=datetime]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=datetime]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=datetime]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=datetime-local]:not(.browser-default).valid ~ .helper-text[data-success],input[type=datetime-local]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=datetime-local]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=datetime-local]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=tel]:not(.browser-default).valid ~ .helper-text[data-success],input[type=tel]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=tel]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=tel]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=number]:not(.browser-default).valid ~ .helper-text[data-success],input[type=number]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=number]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=number]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=search]:not(.browser-default).valid ~ .helper-text[data-success],input[type=search]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=search]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=search]:not(.browser-default):focus.invalid ~ .helper-text[data-error],textarea.materialize-textarea.valid ~ .helper-text[data-success],textarea.materialize-textarea:focus.valid ~ .helper-text[data-success],textarea.materialize-textarea.invalid ~ .helper-text[data-error],textarea.materialize-textarea:focus.invalid ~ .helper-text[data-error],.select-wrapper.valid .helper-text[data-success],.select-wrapper.invalid ~ .helper-text[data-error]{color:transparent;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}input:not([type]).valid ~ .helper-text:after,input:not([type]):focus.valid ~ .helper-text:after,input[type=text]:not(.browser-default).valid ~ .helper-text:after,input[type=text]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=password]:not(.browser-default).valid ~ .helper-text:after,input[type=password]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=email]:not(.browser-default).valid ~ .helper-text:after,input[type=email]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=url]:not(.browser-default).valid ~ .helper-text:after,input[type=url]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=time]:not(.browser-default).valid ~ .helper-text:after,input[type=time]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=date]:not(.browser-default).valid ~ .helper-text:after,input[type=date]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=datetime]:not(.browser-default).valid ~ .helper-text:after,input[type=datetime]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=datetime-local]:not(.browser-default).valid ~ .helper-text:after,input[type=datetime-local]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=tel]:not(.browser-default).valid ~ .helper-text:after,input[type=tel]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=number]:not(.browser-default).valid ~ .helper-text:after,input[type=number]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=search]:not(.browser-default).valid ~ .helper-text:after,input[type=search]:not(.browser-default):focus.valid ~ .helper-text:after,textarea.materialize-textarea.valid ~ .helper-text:after,textarea.materialize-textarea:focus.valid ~ .helper-text:after,.select-wrapper.valid ~ .helper-text:after{content:attr(data-success);color:#4CAF50}input:not([type]).invalid ~ .helper-text:after,input:not([type]):focus.invalid ~ .helper-text:after,input[type=text]:not(.browser-default).invalid ~ .helper-text:after,input[type=text]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=password]:not(.browser-default).invalid ~ .helper-text:after,input[type=password]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=email]:not(.browser-default).invalid ~ .helper-text:after,input[type=email]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=url]:not(.browser-default).invalid ~ .helper-text:after,input[type=url]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=time]:not(.browser-default).invalid ~ .helper-text:after,input[type=time]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=date]:not(.browser-default).invalid ~ .helper-text:after,input[type=date]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=datetime]:not(.browser-default).invalid ~ .helper-text:after,input[type=datetime]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=datetime-local]:not(.browser-default).invalid ~ .helper-text:after,input[type=datetime-local]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=tel]:not(.browser-default).invalid ~ .helper-text:after,input[type=tel]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=number]:not(.browser-default).invalid ~ .helper-text:after,input[type=number]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=search]:not(.browser-default).invalid ~ .helper-text:after,input[type=search]:not(.browser-default):focus.invalid ~ .helper-text:after,textarea.materialize-textarea.invalid ~ .helper-text:after,textarea.materialize-textarea:focus.invalid ~ .helper-text:after,.select-wrapper.invalid ~ .helper-text:after{content:attr(data-error);color:#F44336}input:not([type])+label:after,input[type=text]:not(.browser-default)+label:after,input[type=password]:not(.browser-default)+label:after,input[type=email]:not(.browser-default)+label:after,input[type=url]:not(.browser-default)+label:after,input[type=time]:not(.browser-default)+label:after,input[type=date]:not(.browser-default)+label:after,input[type=datetime]:not(.browser-default)+label:after,input[type=datetime-local]:not(.browser-default)+label:after,input[type=tel]:not(.browser-default)+label:after,input[type=number]:not(.browser-default)+label:after,input[type=search]:not(.browser-default)+label:after,textarea.materialize-textarea+label:after,.select-wrapper+label:after{display:block;content:"";position:absolute;top:100%;left:0;opacity:0;-webkit-transition:.2s opacity ease-out, .2s color ease-out;transition:.2s opacity ease-out, .2s color ease-out}.input-field{position:relative;margin-top:1rem;margin-bottom:1rem}.input-field.inline{display:inline-block;vertical-align:middle;margin-left:5px}.input-field.inline input,.input-field.inline .select-dropdown{margin-bottom:1rem}.input-field.col label{left:.75rem}.input-field.col .prefix ~ label,.input-field.col .prefix ~ .validate ~ label{width:calc(100% - 3rem - 1.5rem)}.input-field>label{color:#9e9e9e;position:absolute;top:0;left:0;font-size:1rem;cursor:text;-webkit-transition:color .2s ease-out, -webkit-transform .2s ease-out;transition:color .2s ease-out, -webkit-transform .2s ease-out;transition:transform .2s ease-out, color .2s ease-out;transition:transform .2s ease-out, color .2s ease-out, -webkit-transform .2s ease-out;-webkit-transform-origin:0% 100%;transform-origin:0% 100%;text-align:initial;-webkit-transform:translateY(12px);transform:translateY(12px)}.input-field>label:not(.label-icon).active{-webkit-transform:translateY(-14px) scale(0.8);transform:translateY(-14px) scale(0.8);-webkit-transform-origin:0 0;transform-origin:0 0}.input-field>input[type]:-webkit-autofill:not(.browser-default):not([type="search"])+label,.input-field>input[type=date]:not(.browser-default)+label,.input-field>input[type=time]:not(.browser-default)+label{-webkit-transform:translateY(-14px) scale(0.8);transform:translateY(-14px) scale(0.8);-webkit-transform-origin:0 0;transform-origin:0 0}.input-field .helper-text{position:relative;min-height:18px;display:block;font-size:12px;color:rgba(0,0,0,0.54)}.input-field .helper-text::after{opacity:1;position:absolute;top:0;left:0}.input-field .prefix{position:absolute;width:3rem;font-size:2rem;-webkit-transition:color .2s;transition:color .2s;top:.5rem}.input-field .prefix.active{color:#26a69a}.input-field .prefix ~ input,.input-field .prefix ~ textarea,.input-field .prefix ~ label,.input-field .prefix ~ .validate ~ label,.input-field .prefix ~ .helper-text,.input-field .prefix ~ .autocomplete-content{margin-left:3rem;width:92%;width:calc(100% - 3rem)}.input-field .prefix ~ label{margin-left:3rem}@media only screen and (max-width: 992px){.input-field .prefix ~ input{width:86%;width:calc(100% - 3rem)}}@media only screen and (max-width: 600px){.input-field .prefix ~ input{width:80%;width:calc(100% - 3rem)}}.input-field input[type=search]{display:block;line-height:inherit;-webkit-transition:.3s background-color;transition:.3s background-color}.nav-wrapper .input-field input[type=search]{height:inherit;padding-left:4rem;width:calc(100% - 4rem);border:0;-webkit-box-shadow:none;box-shadow:none}.input-field input[type=search]:focus:not(.browser-default){background-color:#fff;border:0;-webkit-box-shadow:none;box-shadow:none;color:#444}.input-field input[type=search]:focus:not(.browser-default)+label i,.input-field input[type=search]:focus:not(.browser-default) ~ .mdi-navigation-close,.input-field input[type=search]:focus:not(.browser-default) ~ .material-icons{color:#444}.input-field input[type=search]+.label-icon{-webkit-transform:none;transform:none;left:1rem}.input-field input[type=search] ~ .mdi-navigation-close,.input-field input[type=search] ~ .material-icons{position:absolute;top:0;right:1rem;color:transparent;cursor:pointer;font-size:2rem;-webkit-transition:.3s color;transition:.3s color}textarea{width:100%;height:3rem;background-color:transparent}textarea.materialize-textarea{line-height:normal;overflow-y:hidden;padding:.8rem 0 .8rem 0;resize:none;min-height:3rem;-webkit-box-sizing:border-box;box-sizing:border-box}.hiddendiv{visibility:hidden;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word;padding-top:1.2rem;position:absolute;top:0;z-index:-1}.autocomplete-content li .highlight{color:#444}.autocomplete-content li img{height:40px;width:40px;margin:5px 15px}.character-counter{min-height:18px}[type="radio"]:not(:checked),[type="radio"]:checked{position:absolute;opacity:0;pointer-events:none}[type="radio"]:not(:checked)+span,[type="radio"]:checked+span{position:relative;padding-left:35px;cursor:pointer;display:inline-block;height:25px;line-height:25px;font-size:1rem;-webkit-transition:.28s ease;transition:.28s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[type="radio"]+span:before,[type="radio"]+span:after{content:\'\';position:absolute;left:0;top:0;margin:4px;width:16px;height:16px;z-index:0;-webkit-transition:.28s ease;transition:.28s ease}[type="radio"]:not(:checked)+span:before,[type="radio"]:not(:checked)+span:after,[type="radio"]:checked+span:before,[type="radio"]:checked+span:after,[type="radio"].with-gap:checked+span:before,[type="radio"].with-gap:checked+span:after{border-radius:50%}[type="radio"]:not(:checked)+span:before,[type="radio"]:not(:checked)+span:after{border:2px solid #5a5a5a}[type="radio"]:not(:checked)+span:after{-webkit-transform:scale(0);transform:scale(0)}[type="radio"]:checked+span:before{border:2px solid transparent}[type="radio"]:checked+span:after,[type="radio"].with-gap:checked+span:before,[type="radio"].with-gap:checked+span:after{border:2px solid #26a69a}[type="radio"]:checked+span:after,[type="radio"].with-gap:checked+span:after{background-color:#26a69a}[type="radio"]:checked+span:after{-webkit-transform:scale(1.02);transform:scale(1.02)}[type="radio"].with-gap:checked+span:after{-webkit-transform:scale(0.5);transform:scale(0.5)}[type="radio"].tabbed:focus+span:before{-webkit-box-shadow:0 0 0 10px rgba(0,0,0,0.1);box-shadow:0 0 0 10px rgba(0,0,0,0.1)}[type="radio"].with-gap:disabled:checked+span:before{border:2px solid rgba(0,0,0,0.42)}[type="radio"].with-gap:disabled:checked+span:after{border:none;background-color:rgba(0,0,0,0.42)}[type="radio"]:disabled:not(:checked)+span:before,[type="radio"]:disabled:checked+span:before{background-color:transparent;border-color:rgba(0,0,0,0.42)}[type="radio"]:disabled+span{color:rgba(0,0,0,0.42)}[type="radio"]:disabled:not(:checked)+span:before{border-color:rgba(0,0,0,0.42)}[type="radio"]:disabled:checked+span:after{background-color:rgba(0,0,0,0.42);border-color:#949494}[type="checkbox"]:not(:checked),[type="checkbox"]:checked{position:absolute;opacity:0;pointer-events:none}[type="checkbox"]+span:not(.lever){position:relative;padding-left:35px;cursor:pointer;display:inline-block;height:25px;line-height:25px;font-size:1rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[type="checkbox"]+span:not(.lever):before,[type="checkbox"]:not(.filled-in)+span:not(.lever):after{content:\'\';position:absolute;top:0;left:0;width:18px;height:18px;z-index:0;border:2px solid #5a5a5a;border-radius:1px;margin-top:3px;-webkit-transition:.2s;transition:.2s}[type="checkbox"]:not(.filled-in)+span:not(.lever):after{border:0;-webkit-transform:scale(0);transform:scale(0)}[type="checkbox"]:not(:checked):disabled+span:not(.lever):before{border:none;background-color:rgba(0,0,0,0.42)}[type="checkbox"].tabbed:focus+span:not(.lever):after{-webkit-transform:scale(1);transform:scale(1);border:0;border-radius:50%;-webkit-box-shadow:0 0 0 10px rgba(0,0,0,0.1);box-shadow:0 0 0 10px rgba(0,0,0,0.1);background-color:rgba(0,0,0,0.1)}[type="checkbox"]:checked+span:not(.lever):before{top:-4px;left:-5px;width:12px;height:22px;border-top:2px solid transparent;border-left:2px solid transparent;border-right:2px solid #26a69a;border-bottom:2px solid #26a69a;-webkit-transform:rotate(40deg);transform:rotate(40deg);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform-origin:100% 100%;transform-origin:100% 100%}[type="checkbox"]:checked:disabled+span:before{border-right:2px solid rgba(0,0,0,0.42);border-bottom:2px solid rgba(0,0,0,0.42)}[type="checkbox"]:indeterminate+span:not(.lever):before{top:-11px;left:-12px;width:10px;height:22px;border-top:none;border-left:none;border-right:2px solid #26a69a;border-bottom:none;-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform-origin:100% 100%;transform-origin:100% 100%}[type="checkbox"]:indeterminate:disabled+span:not(.lever):before{border-right:2px solid rgba(0,0,0,0.42);background-color:transparent}[type="checkbox"].filled-in+span:not(.lever):after{border-radius:2px}[type="checkbox"].filled-in+span:not(.lever):before,[type="checkbox"].filled-in+span:not(.lever):after{content:\'\';left:0;position:absolute;-webkit-transition:border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;transition:border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;z-index:1}[type="checkbox"].filled-in:not(:checked)+span:not(.lever):before{width:0;height:0;border:3px solid transparent;left:6px;top:10px;-webkit-transform:rotateZ(37deg);transform:rotateZ(37deg);-webkit-transform-origin:100% 100%;transform-origin:100% 100%}[type="checkbox"].filled-in:not(:checked)+span:not(.lever):after{height:20px;width:20px;background-color:transparent;border:2px solid #5a5a5a;top:0px;z-index:0}[type="checkbox"].filled-in:checked+span:not(.lever):before{top:0;left:1px;width:8px;height:13px;border-top:2px solid transparent;border-left:2px solid transparent;border-right:2px solid #fff;border-bottom:2px solid #fff;-webkit-transform:rotateZ(37deg);transform:rotateZ(37deg);-webkit-transform-origin:100% 100%;transform-origin:100% 100%}[type="checkbox"].filled-in:checked+span:not(.lever):after{top:0;width:20px;height:20px;border:2px solid #26a69a;background-color:#26a69a;z-index:0}[type="checkbox"].filled-in.tabbed:focus+span:not(.lever):after{border-radius:2px;border-color:#5a5a5a;background-color:rgba(0,0,0,0.1)}[type="checkbox"].filled-in.tabbed:checked:focus+span:not(.lever):after{border-radius:2px;background-color:#26a69a;border-color:#26a69a}[type="checkbox"].filled-in:disabled:not(:checked)+span:not(.lever):before{background-color:transparent;border:2px solid transparent}[type="checkbox"].filled-in:disabled:not(:checked)+span:not(.lever):after{border-color:transparent;background-color:#949494}[type="checkbox"].filled-in:disabled:checked+span:not(.lever):before{background-color:transparent}[type="checkbox"].filled-in:disabled:checked+span:not(.lever):after{background-color:#949494;border-color:#949494}.switch,.switch *{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.switch label{cursor:pointer}.switch label input[type=checkbox]{opacity:0;width:0;height:0}.switch label input[type=checkbox]:checked+.lever{background-color:#84c7c1}.switch label input[type=checkbox]:checked+.lever:before,.switch label input[type=checkbox]:checked+.lever:after{left:18px}.switch label input[type=checkbox]:checked+.lever:after{background-color:#26a69a}.switch label .lever{content:"";display:inline-block;position:relative;width:36px;height:14px;background-color:rgba(0,0,0,0.38);border-radius:15px;margin-right:10px;-webkit-transition:background 0.3s ease;transition:background 0.3s ease;vertical-align:middle;margin:0 16px}.switch label .lever:before,.switch label .lever:after{content:"";position:absolute;display:inline-block;width:20px;height:20px;border-radius:50%;left:0;top:-3px;-webkit-transition:left 0.3s ease, background .3s ease, -webkit-box-shadow 0.1s ease, -webkit-transform .1s ease;transition:left 0.3s ease, background .3s ease, -webkit-box-shadow 0.1s ease, -webkit-transform .1s ease;transition:left 0.3s ease, background .3s ease, box-shadow 0.1s ease, transform .1s ease;transition:left 0.3s ease, background .3s ease, box-shadow 0.1s ease, transform .1s ease, -webkit-box-shadow 0.1s ease, -webkit-transform .1s ease}.switch label .lever:before{background-color:rgba(38,166,154,0.15)}.switch label .lever:after{background-color:#F1F1F1;-webkit-box-shadow:0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12);box-shadow:0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)}input[type=checkbox]:checked:not(:disabled) ~ .lever:active::before,input[type=checkbox]:checked:not(:disabled).tabbed:focus ~ .lever::before{-webkit-transform:scale(2.4);transform:scale(2.4);background-color:rgba(38,166,154,0.15)}input[type=checkbox]:not(:disabled) ~ .lever:active:before,input[type=checkbox]:not(:disabled).tabbed:focus ~ .lever::before{-webkit-transform:scale(2.4);transform:scale(2.4);background-color:rgba(0,0,0,0.08)}.switch input[type=checkbox][disabled]+.lever{cursor:default;background-color:rgba(0,0,0,0.12)}.switch label input[type=checkbox][disabled]+.lever:after,.switch label input[type=checkbox][disabled]:checked+.lever:after{background-color:#949494}select{display:none}select.browser-default{display:block}select{background-color:rgba(255,255,255,0.9);width:100%;padding:5px;border:1px solid #f2f2f2;border-radius:2px;height:3rem}.select-label{position:absolute}.select-wrapper{position:relative}.select-wrapper.valid+label,.select-wrapper.invalid+label{width:100%;pointer-events:none}.select-wrapper input.select-dropdown{position:relative;cursor:pointer;background-color:transparent;border:none;border-bottom:1px solid #9e9e9e;outline:none;height:3rem;line-height:3rem;width:100%;font-size:16px;margin:0 0 8px 0;padding:0;display:block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}.select-wrapper input.select-dropdown:focus{border-bottom:1px solid #26a69a}.select-wrapper .caret{position:absolute;right:0;top:0;bottom:0;margin:auto 0;z-index:0;fill:rgba(0,0,0,0.87)}.select-wrapper+label{position:absolute;top:-26px;font-size:.8rem}select:disabled{color:rgba(0,0,0,0.42)}.select-wrapper.disabled+label{color:rgba(0,0,0,0.42)}.select-wrapper.disabled .caret{fill:rgba(0,0,0,0.42)}.select-wrapper input.select-dropdown:disabled{color:rgba(0,0,0,0.42);cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.select-wrapper i{color:rgba(0,0,0,0.3)}.select-dropdown li.disabled,.select-dropdown li.disabled>span,.select-dropdown li.optgroup{color:rgba(0,0,0,0.3);background-color:transparent}body.keyboard-focused .select-dropdown.dropdown-content li:focus{background-color:rgba(0,0,0,0.08)}.select-dropdown.dropdown-content li:hover{background-color:rgba(0,0,0,0.08)}.select-dropdown.dropdown-content li.selected{background-color:rgba(0,0,0,0.03)}.prefix ~ .select-wrapper{margin-left:3rem;width:92%;width:calc(100% - 3rem)}.prefix ~ label{margin-left:3rem}.select-dropdown li img{height:40px;width:40px;margin:5px 15px;float:right}.select-dropdown li.optgroup{border-top:1px solid #eee}.select-dropdown li.optgroup.selected>span{color:rgba(0,0,0,0.7)}.select-dropdown li.optgroup>span{color:rgba(0,0,0,0.4)}.select-dropdown li.optgroup ~ li.optgroup-option{padding-left:1rem}.file-field{position:relative}.file-field .file-path-wrapper{overflow:hidden;padding-left:10px}.file-field input.file-path{width:100%}.file-field .btn,.file-field .btn-large,.file-field .btn-small{float:left;height:3rem;line-height:3rem}.file-field span{cursor:pointer}.file-field input[type=file]{position:absolute;top:0;right:0;left:0;bottom:0;width:100%;margin:0;padding:0;font-size:20px;cursor:pointer;opacity:0;filter:alpha(opacity=0)}.file-field input[type=file]::-webkit-file-upload-button{display:none}.range-field{position:relative}input[type=range],input[type=range]+.thumb{cursor:pointer}input[type=range]{position:relative;background-color:transparent;border:none;outline:none;width:100%;margin:15px 0;padding:0}input[type=range]:focus{outline:none}input[type=range]+.thumb{position:absolute;top:10px;left:0;border:none;height:0;width:0;border-radius:50%;background-color:#26a69a;margin-left:7px;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}input[type=range]+.thumb .value{display:block;width:30px;text-align:center;color:#26a69a;font-size:0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}input[type=range]+.thumb.active{border-radius:50% 50% 50% 0}input[type=range]+.thumb.active .value{color:#fff;margin-left:-1px;margin-top:8px;font-size:10px}input[type=range]{-webkit-appearance:none}input[type=range]::-webkit-slider-runnable-track{height:3px;background:#c2c0c2;border:none}input[type=range]::-webkit-slider-thumb{border:none;height:14px;width:14px;border-radius:50%;background:#26a69a;-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s, -webkit-box-shadow .3s;-webkit-appearance:none;background-color:#26a69a;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;margin:-5px 0 0 0}.keyboard-focused input[type=range]:focus:not(.active)::-webkit-slider-thumb{-webkit-box-shadow:0 0 0 10px rgba(38,166,154,0.26);box-shadow:0 0 0 10px rgba(38,166,154,0.26)}input[type=range]{border:1px solid white}input[type=range]::-moz-range-track{height:3px;background:#c2c0c2;border:none}input[type=range]::-moz-focus-inner{border:0}input[type=range]::-moz-range-thumb{border:none;height:14px;width:14px;border-radius:50%;background:#26a69a;-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s, -webkit-box-shadow .3s;margin-top:-5px}input[type=range]:-moz-focusring{outline:1px solid #fff;outline-offset:-1px}.keyboard-focused input[type=range]:focus:not(.active)::-moz-range-thumb{box-shadow:0 0 0 10px rgba(38,166,154,0.26)}input[type=range]::-ms-track{height:3px;background:transparent;border-color:transparent;border-width:6px 0;color:transparent}input[type=range]::-ms-fill-lower{background:#777}input[type=range]::-ms-fill-upper{background:#ddd}input[type=range]::-ms-thumb{border:none;height:14px;width:14px;border-radius:50%;background:#26a69a;-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s, -webkit-box-shadow .3s}.keyboard-focused input[type=range]:focus:not(.active)::-ms-thumb{box-shadow:0 0 0 10px rgba(38,166,154,0.26)}.table-of-contents.fixed{position:fixed}.table-of-contents li{padding:2px 0}.table-of-contents a{display:inline-block;font-weight:300;color:#757575;padding-left:16px;height:1.5rem;line-height:1.5rem;letter-spacing:.4;display:inline-block}.table-of-contents a:hover{color:#a8a8a8;padding-left:15px;border-left:1px solid #ee6e73}.table-of-contents a.active{font-weight:500;padding-left:14px;border-left:2px solid #ee6e73}.sidenav{position:fixed;width:300px;left:0;top:0;margin:0;-webkit-transform:translateX(-100%);transform:translateX(-100%);height:100%;height:calc(100% + 60px);height:-moz-calc(100%);padding-bottom:60px;background-color:#fff;z-index:999;overflow-y:auto;will-change:transform;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:translateX(-105%);transform:translateX(-105%)}.sidenav.right-aligned{right:0;-webkit-transform:translateX(105%);transform:translateX(105%);left:auto;-webkit-transform:translateX(100%);transform:translateX(100%)}.sidenav .collapsible{margin:0}.sidenav li{float:none;line-height:48px}.sidenav li.active{background-color:rgba(0,0,0,0.05)}.sidenav li>a{color:rgba(0,0,0,0.87);display:block;font-size:14px;font-weight:500;height:48px;line-height:48px;padding:0 32px}.sidenav li>a:hover{background-color:rgba(0,0,0,0.05)}.sidenav li>a.btn,.sidenav li>a.btn-large,.sidenav li>a.btn-small,.sidenav li>a.btn-large,.sidenav li>a.btn-flat,.sidenav li>a.btn-floating{margin:10px 15px}.sidenav li>a.btn,.sidenav li>a.btn-large,.sidenav li>a.btn-small,.sidenav li>a.btn-large,.sidenav li>a.btn-floating{color:#fff}.sidenav li>a.btn-flat{color:#343434}.sidenav li>a.btn:hover,.sidenav li>a.btn-large:hover,.sidenav li>a.btn-small:hover,.sidenav li>a.btn-large:hover{background-color:#2bbbad}.sidenav li>a.btn-floating:hover{background-color:#26a69a}.sidenav li>a>i,.sidenav li>a>[class^="mdi-"],.sidenav li>a li>a>[class*="mdi-"],.sidenav li>a>i.material-icons{float:left;height:48px;line-height:48px;margin:0 32px 0 0;width:24px;color:rgba(0,0,0,0.54)}.sidenav .divider{margin:8px 0 0 0}.sidenav .subheader{cursor:initial;pointer-events:none;color:rgba(0,0,0,0.54);font-size:14px;font-weight:500;line-height:48px}.sidenav .subheader:hover{background-color:transparent}.sidenav .user-view{position:relative;padding:32px 32px 0;margin-bottom:8px}.sidenav .user-view>a{height:auto;padding:0}.sidenav .user-view>a:hover{background-color:transparent}.sidenav .user-view .background{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}.sidenav .user-view .circle,.sidenav .user-view .name,.sidenav .user-view .email{display:block}.sidenav .user-view .circle{height:64px;width:64px}.sidenav .user-view .name,.sidenav .user-view .email{font-size:14px;line-height:24px}.sidenav .user-view .name{margin-top:16px;font-weight:500}.sidenav .user-view .email{padding-bottom:16px;font-weight:400}.drag-target{height:100%;width:10px;position:fixed;top:0;z-index:998}.drag-target.right-aligned{right:0}.sidenav.sidenav-fixed{left:0;-webkit-transform:translateX(0);transform:translateX(0);position:fixed}.sidenav.sidenav-fixed.right-aligned{right:0;left:auto}@media only screen and (max-width: 992px){.sidenav.sidenav-fixed{-webkit-transform:translateX(-105%);transform:translateX(-105%)}.sidenav.sidenav-fixed.right-aligned{-webkit-transform:translateX(105%);transform:translateX(105%)}.sidenav>a{padding:0 16px}.sidenav .user-view{padding:16px 16px 0}}.sidenav .collapsible-body>ul:not(.collapsible)>li.active,.sidenav.sidenav-fixed .collapsible-body>ul:not(.collapsible)>li.active{background-color:#ee6e73}.sidenav .collapsible-body>ul:not(.collapsible)>li.active a,.sidenav.sidenav-fixed .collapsible-body>ul:not(.collapsible)>li.active a{color:#fff}.sidenav .collapsible-body{padding:0}.sidenav-overlay{position:fixed;top:0;left:0;right:0;opacity:0;height:120vh;background-color:rgba(0,0,0,0.5);z-index:997;display:none}.preloader-wrapper{display:inline-block;position:relative;width:50px;height:50px}.preloader-wrapper.small{width:36px;height:36px}.preloader-wrapper.big{width:64px;height:64px}.preloader-wrapper.active{-webkit-animation:container-rotate 1568ms linear infinite;animation:container-rotate 1568ms linear infinite}@-webkit-keyframes container-rotate{to{-webkit-transform:rotate(360deg)}}@keyframes container-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.spinner-layer{position:absolute;width:100%;height:100%;opacity:0;border-color:#26a69a}.spinner-blue,.spinner-blue-only{border-color:#4285f4}.spinner-red,.spinner-red-only{border-color:#db4437}.spinner-yellow,.spinner-yellow-only{border-color:#f4b400}.spinner-green,.spinner-green-only{border-color:#0f9d58}.active .spinner-layer.spinner-blue{-webkit-animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,blue-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,blue-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.active .spinner-layer.spinner-red{-webkit-animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,red-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,red-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.active .spinner-layer.spinner-yellow{-webkit-animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,yellow-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,yellow-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.active .spinner-layer.spinner-green{-webkit-animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,green-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,green-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.active .spinner-layer,.active .spinner-layer.spinner-blue-only,.active .spinner-layer.spinner-red-only,.active .spinner-layer.spinner-yellow-only,.active .spinner-layer.spinner-green-only{opacity:1;-webkit-animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@-webkit-keyframes fill-unfill-rotate{12.5%{-webkit-transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg)}to{-webkit-transform:rotate(1080deg)}}@keyframes fill-unfill-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(1080deg);transform:rotate(1080deg)}}@-webkit-keyframes blue-fade-in-out{from{opacity:1}25%{opacity:1}26%{opacity:0}89%{opacity:0}90%{opacity:1}100%{opacity:1}}@keyframes blue-fade-in-out{from{opacity:1}25%{opacity:1}26%{opacity:0}89%{opacity:0}90%{opacity:1}100%{opacity:1}}@-webkit-keyframes red-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:1}50%{opacity:1}51%{opacity:0}}@keyframes red-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:1}50%{opacity:1}51%{opacity:0}}@-webkit-keyframes yellow-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:1}75%{opacity:1}76%{opacity:0}}@keyframes yellow-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:1}75%{opacity:1}76%{opacity:0}}@-webkit-keyframes green-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:1}90%{opacity:1}100%{opacity:0}}@keyframes green-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:1}90%{opacity:1}100%{opacity:0}}.gap-patch{position:absolute;top:0;left:45%;width:10%;height:100%;overflow:hidden;border-color:inherit}.gap-patch .circle{width:1000%;left:-450%}.circle-clipper{display:inline-block;position:relative;width:50%;height:100%;overflow:hidden;border-color:inherit}.circle-clipper .circle{width:200%;height:100%;border-width:3px;border-style:solid;border-color:inherit;border-bottom-color:transparent !important;border-radius:50%;-webkit-animation:none;animation:none;position:absolute;top:0;right:0;bottom:0}.circle-clipper.left .circle{left:0;border-right-color:transparent !important;-webkit-transform:rotate(129deg);transform:rotate(129deg)}.circle-clipper.right .circle{left:-100%;border-left-color:transparent !important;-webkit-transform:rotate(-129deg);transform:rotate(-129deg)}.active .circle-clipper.left .circle{-webkit-animation:left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.active .circle-clipper.right .circle{-webkit-animation:right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@-webkit-keyframes left-spin{from{-webkit-transform:rotate(130deg)}50%{-webkit-transform:rotate(-5deg)}to{-webkit-transform:rotate(130deg)}}@keyframes left-spin{from{-webkit-transform:rotate(130deg);transform:rotate(130deg)}50%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(130deg);transform:rotate(130deg)}}@-webkit-keyframes right-spin{from{-webkit-transform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg)}to{-webkit-transform:rotate(-130deg)}}@keyframes right-spin{from{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}to{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}}#spinnerContainer.cooldown{-webkit-animation:container-rotate 1568ms linear infinite,fade-out 400ms cubic-bezier(0.4, 0, 0.2, 1);animation:container-rotate 1568ms linear infinite,fade-out 400ms cubic-bezier(0.4, 0, 0.2, 1)}@-webkit-keyframes fade-out{from{opacity:1}to{opacity:0}}@keyframes fade-out{from{opacity:1}to{opacity:0}}.slider{position:relative;height:400px;width:100%}.slider.fullscreen{height:100%;width:100%;position:absolute;top:0;left:0;right:0;bottom:0}.slider.fullscreen ul.slides{height:100%}.slider.fullscreen ul.indicators{z-index:2;bottom:30px}.slider .slides{background-color:#9e9e9e;margin:0;height:400px}.slider .slides li{opacity:0;position:absolute;top:0;left:0;z-index:1;width:100%;height:inherit;overflow:hidden}.slider .slides li img{height:100%;width:100%;background-size:cover;background-position:center}.slider .slides li .caption{color:#fff;position:absolute;top:15%;left:15%;width:70%;opacity:0}.slider .slides li .caption p{color:#e0e0e0}.slider .slides li.active{z-index:2}.slider .indicators{position:absolute;text-align:center;left:0;right:0;bottom:0;margin:0}.slider .indicators .indicator-item{display:inline-block;position:relative;cursor:pointer;height:16px;width:16px;margin:0 12px;background-color:#e0e0e0;-webkit-transition:background-color .3s;transition:background-color .3s;border-radius:50%}.slider .indicators .indicator-item.active{background-color:#4CAF50}.carousel{overflow:hidden;position:relative;width:100%;height:400px;-webkit-perspective:500px;perspective:500px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transform-origin:0% 50%;transform-origin:0% 50%}.carousel.carousel-slider{top:0;left:0}.carousel.carousel-slider .carousel-fixed-item{position:absolute;left:0;right:0;bottom:20px;z-index:1}.carousel.carousel-slider .carousel-fixed-item.with-indicators{bottom:68px}.carousel.carousel-slider .carousel-item{width:100%;height:100%;min-height:400px;position:absolute;top:0;left:0}.carousel.carousel-slider .carousel-item h2{font-size:24px;font-weight:500;line-height:32px}.carousel.carousel-slider .carousel-item p{font-size:15px}.carousel .carousel-item{visibility:hidden;width:200px;height:200px;position:absolute;top:0;left:0}.carousel .carousel-item>img{width:100%}.carousel .indicators{position:absolute;text-align:center;left:0;right:0;bottom:0;margin:0}.carousel .indicators .indicator-item{display:inline-block;position:relative;cursor:pointer;height:8px;width:8px;margin:24px 4px;background-color:rgba(255,255,255,0.5);-webkit-transition:background-color .3s;transition:background-color .3s;border-radius:50%}.carousel .indicators .indicator-item.active{background-color:#fff}.carousel.scrolling .carousel-item .materialboxed,.carousel .carousel-item:not(.active) .materialboxed{pointer-events:none}.tap-target-wrapper{width:800px;height:800px;position:fixed;z-index:1000;visibility:hidden;-webkit-transition:visibility 0s .3s;transition:visibility 0s .3s}.tap-target-wrapper.open{visibility:visible;-webkit-transition:visibility 0s;transition:visibility 0s}.tap-target-wrapper.open .tap-target{-webkit-transform:scale(1);transform:scale(1);opacity:.95;-webkit-transition:opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);transition:opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);transition:transform 0.3s cubic-bezier(0.42, 0, 0.58, 1),opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1);transition:transform 0.3s cubic-bezier(0.42, 0, 0.58, 1),opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1)}.tap-target-wrapper.open .tap-target-wave::before{-webkit-transform:scale(1);transform:scale(1)}.tap-target-wrapper.open .tap-target-wave::after{visibility:visible;-webkit-animation:pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;animation:pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;-webkit-transition:opacity .3s,\r visibility 0s 1s,\r -webkit-transform .3s;transition:opacity .3s,\r visibility 0s 1s,\r -webkit-transform .3s;transition:opacity .3s,\r transform .3s,\r visibility 0s 1s;transition:opacity .3s,\r transform .3s,\r visibility 0s 1s,\r -webkit-transform .3s}.tap-target{position:absolute;font-size:1rem;border-radius:50%;background-color:#ee6e73;-webkit-box-shadow:0 20px 20px 0 rgba(0,0,0,0.14),0 10px 50px 0 rgba(0,0,0,0.12),0 30px 10px -20px rgba(0,0,0,0.2);box-shadow:0 20px 20px 0 rgba(0,0,0,0.14),0 10px 50px 0 rgba(0,0,0,0.12),0 30px 10px -20px rgba(0,0,0,0.2);width:100%;height:100%;opacity:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);transition:opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);transition:transform 0.3s cubic-bezier(0.42, 0, 0.58, 1),opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1);transition:transform 0.3s cubic-bezier(0.42, 0, 0.58, 1),opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1)}.tap-target-content{position:relative;display:table-cell}.tap-target-wave{position:absolute;border-radius:50%;z-index:10001}.tap-target-wave::before,.tap-target-wave::after{content:\'\';display:block;position:absolute;width:100%;height:100%;border-radius:50%;background-color:#ffffff}.tap-target-wave::before{-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s, -webkit-transform .3s}.tap-target-wave::after{visibility:hidden;-webkit-transition:opacity .3s,\r visibility 0s,\r -webkit-transform .3s;transition:opacity .3s,\r visibility 0s,\r -webkit-transform .3s;transition:opacity .3s,\r transform .3s,\r visibility 0s;transition:opacity .3s,\r transform .3s,\r visibility 0s,\r -webkit-transform .3s;z-index:-1}.tap-target-origin{top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);z-index:10002;position:absolute !important}.tap-target-origin:not(.btn):not(.btn-large):not(.btn-small),.tap-target-origin:not(.btn):not(.btn-large):not(.btn-small):hover{background:none}@media only screen and (max-width: 600px){.tap-target,.tap-target-wrapper{width:600px;height:600px}}.pulse{overflow:visible;position:relative}.pulse::before{content:\'\';display:block;position:absolute;width:100%;height:100%;top:0;left:0;background-color:inherit;border-radius:inherit;-webkit-transition:opacity .3s, -webkit-transform .3s;transition:opacity .3s, -webkit-transform .3s;transition:opacity .3s, transform .3s;transition:opacity .3s, transform .3s, -webkit-transform .3s;-webkit-animation:pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;animation:pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;z-index:-1}@-webkit-keyframes pulse-animation{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}50%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}}@keyframes pulse-animation{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}50%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}}.datepicker-modal{max-width:325px;min-width:300px;max-height:none}.datepicker-container.modal-content{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:0}.datepicker-controls{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:280px;margin:0 auto}.datepicker-controls .selects-container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.datepicker-controls .select-wrapper input{border-bottom:none;text-align:center;margin:0}.datepicker-controls .select-wrapper input:focus{border-bottom:none}.datepicker-controls .select-wrapper .caret{display:none}.datepicker-controls .select-year input{width:50px}.datepicker-controls .select-month input{width:70px}.month-prev,.month-next{margin-top:4px;cursor:pointer;background-color:transparent;border:none}.datepicker-date-display{-webkit-box-flex:1;-webkit-flex:1 auto;-ms-flex:1 auto;flex:1 auto;background-color:#26a69a;color:#fff;padding:20px 22px;font-weight:500}.datepicker-date-display .year-text{display:block;font-size:1.5rem;line-height:25px;color:rgba(255,255,255,0.7)}.datepicker-date-display .date-text{display:block;font-size:2.8rem;line-height:47px;font-weight:500}.datepicker-calendar-container{-webkit-box-flex:2.5;-webkit-flex:2.5 auto;-ms-flex:2.5 auto;flex:2.5 auto}.datepicker-table{width:280px;font-size:1rem;margin:0 auto}.datepicker-table thead{border-bottom:none}.datepicker-table th{padding:10px 5px;text-align:center}.datepicker-table tr{border:none}.datepicker-table abbr{text-decoration:none;color:#999}.datepicker-table td{border-radius:50%;padding:0}.datepicker-table td.is-today{color:#26a69a}.datepicker-table td.is-selected{background-color:#26a69a;color:#fff}.datepicker-table td.is-outside-current-month,.datepicker-table td.is-disabled{color:rgba(0,0,0,0.3);pointer-events:none}.datepicker-day-button{background-color:transparent;border:none;line-height:38px;display:block;width:100%;border-radius:50%;padding:0 5px;cursor:pointer;color:inherit}.datepicker-day-button:focus{background-color:rgba(43,161,150,0.25)}.datepicker-footer{width:280px;margin:0 auto;padding-bottom:5px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.datepicker-cancel,.datepicker-clear,.datepicker-today,.datepicker-done{color:#26a69a;padding:0 1rem}.datepicker-clear{color:#F44336}@media only screen and (min-width: 601px){.datepicker-modal{max-width:625px}.datepicker-container.modal-content{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.datepicker-date-display{-webkit-box-flex:0;-webkit-flex:0 1 270px;-ms-flex:0 1 270px;flex:0 1 270px}.datepicker-controls,.datepicker-table,.datepicker-footer{width:320px}.datepicker-day-button{line-height:44px}}.timepicker-modal{max-width:325px;max-height:none}.timepicker-container.modal-content{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:0}.text-primary{color:#fff}.timepicker-digital-display{-webkit-box-flex:1;-webkit-flex:1 auto;-ms-flex:1 auto;flex:1 auto;background-color:#26a69a;padding:10px;font-weight:300}.timepicker-text-container{font-size:4rem;font-weight:bold;text-align:center;color:rgba(255,255,255,0.6);font-weight:400;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.timepicker-span-hours,.timepicker-span-minutes,.timepicker-span-am-pm div{cursor:pointer}.timepicker-span-hours{margin-right:3px}.timepicker-span-minutes{margin-left:3px}.timepicker-display-am-pm{font-size:1.3rem;position:absolute;right:1rem;bottom:1rem;font-weight:400}.timepicker-analog-display{-webkit-box-flex:2.5;-webkit-flex:2.5 auto;-ms-flex:2.5 auto;flex:2.5 auto}.timepicker-plate{background-color:#eee;border-radius:50%;width:270px;height:270px;overflow:visible;position:relative;margin:auto;margin-top:25px;margin-bottom:5px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.timepicker-canvas,.timepicker-dial{position:absolute;left:0;right:0;top:0;bottom:0}.timepicker-minutes{visibility:hidden}.timepicker-tick{border-radius:50%;color:rgba(0,0,0,0.87);line-height:40px;text-align:center;width:40px;height:40px;position:absolute;cursor:pointer;font-size:15px}.timepicker-tick.active,.timepicker-tick:hover{background-color:rgba(38,166,154,0.25)}.timepicker-dial{-webkit-transition:opacity 350ms, -webkit-transform 350ms;transition:opacity 350ms, -webkit-transform 350ms;transition:transform 350ms, opacity 350ms;transition:transform 350ms, opacity 350ms, -webkit-transform 350ms}.timepicker-dial-out{opacity:0}.timepicker-dial-out.timepicker-hours{-webkit-transform:scale(1.1, 1.1);transform:scale(1.1, 1.1)}.timepicker-dial-out.timepicker-minutes{-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}.timepicker-canvas{-webkit-transition:opacity 175ms;transition:opacity 175ms}.timepicker-canvas line{stroke:#26a69a;stroke-width:4;stroke-linecap:round}.timepicker-canvas-out{opacity:0.25}.timepicker-canvas-bearing{stroke:none;fill:#26a69a}.timepicker-canvas-bg{stroke:none;fill:#26a69a}.timepicker-footer{margin:0 auto;padding:5px 1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.timepicker-clear{color:#F44336}.timepicker-close{color:#26a69a}.timepicker-clear,.timepicker-close{padding:0 20px}@media only screen and (min-width: 601px){.timepicker-modal{max-width:600px}.timepicker-container.modal-content{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.timepicker-text-container{top:32%}.timepicker-display-am-pm{position:relative;right:auto;bottom:auto;text-align:center;margin-top:1.2rem}}\n',""]),t.exports=e},function(t,e){document.addEventListener("DOMContentLoaded",(function(){var t,e=document.querySelectorAll(".sidenav");M.Sidenav.init(e),(t=new XMLHttpRequest).onreadystatechange=function(){if(4==this.readyState){if(200!=this.status)return;document.querySelectorAll(".topnav, .sidenav").forEach((function(e){e.innerHTML=t.responseText})),document.querySelectorAll(".sidenav a, .topnav a").forEach((function(t){t.addEventListener("click",(function(t){var e=document.querySelector(".sidenav");M.Sidenav.getInstance(e).close(),i(n=t.target.getAttribute("href").substr(1))}))}))}},t.open("GET","/src/nav.html",!0),t.send();var n=window.location.hash.substr(1);function i(t){var e=new XMLHttpRequest;e.onreadystatechange=function(){if(4==this.readyState){var t=document.querySelector(".body-content");200==this.status?t.innerHTML=e.responseText:404==this.status?t.innerHTML="<p>Halaman tidak ditemukan.</p>":t.innerHTML="<p>Ups.. halaman tidak dapat diakses.</p>"}},e.open("GET","/src/pages/"+t+".html",!0),e.send()}""==n&&(n="home"),i(n)}))},function(t,e,n){"use strict";n.r(e);n(3),n.p,n(5),n(6),n(8),n(10);var i=n(1);"serviceWorker"in navigator?window.addEventListener("load",(function(){navigator.serviceWorker.register("/src/service-worker.js").then((function(){console.log("Pendaftaran ServiceWorker berhasil")})).catch((function(){console.log("Pendaftaran ServiceWorker gagal")}))})):console.log("ServiceWorker belum didukung browser ini."),document.addEventListener("DOMContentLoaded",(function(){Object(i.a)()}))}]);
* `{leading: false}`. To disable execution on the trailing edge, ditto. * @license https://raw.github.com/jashkenas/underscore/master/LICENSE
train.py
# new update import pickle import os import numpy as np from sklearn.datasets import load_diabetes from sklearn.linear_model import Ridge from sklearn.metrics import mean_squared_error from sklearn.model_selection import train_test_split from azureml.core.run import Run from utils import mylib os.makedirs('./outputs', exist_ok=True) X, y = load_diabetes(return_X_y=True) run = Run.get_context() X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=0) data = {"train": {"X": X_train, "y": y_train}, "test": {"X": X_test, "y": y_test}} # list of numbers from 0.0 to 1.0 with a 0.05 interval alphas = mylib.get_alphas() for alpha in alphas: # Use Ridge algorithm to create a regression model reg = Ridge(alpha=alpha) reg.fit(data["train"]["X"], data["train"]["y"]) preds = reg.predict(data["test"]["X"]) mse = mean_squared_error(preds, data["test"]["y"]) run.log('alpha', alpha) run.log('mse', mse) # Save model in the outputs folder so it automatically get uploaded when running on AML Compute model_file_name = 'ridge_{0:.2f}.pkl'.format(alpha) with open(os.path.join('./outputs/', model_file_name), 'wb') as file: pickle.dump(reg, file)
print('alpha is {0:.2f}, and mse is {1:0.2f}'.format(alpha, mse))
state.go
package sync import ( "bytes" "fmt" "path/filepath" "sync" "time" "github.com/cenk/bitfield" "github.com/igungor/go-putio/putio" ) // XXX: Changing any of these constants will break the control file alignment. const ( // Control-file version. Each version changes the previous layout and may // be backwards incompatible. version = 1 // Each bit in a bitfield represent this amount of bytes bitfieldPieceLength = 16 * 1024 ) // DownloadStatus represents the current status of a download. type DownloadStatus int const ( DownloadIdle DownloadStatus = iota DownloadFailed DownloadInQueue DownloadPaused DownloadInProgress DownloadCompleted ) // String implements fmt.Stringer interface for DownloadStatus. func (ds DownloadStatus) String() string { var s string switch ds { case DownloadIdle: s = "idle" case DownloadFailed: s = "failed" case DownloadInQueue: s = "inqueue" case DownloadPaused: s = "paused" case DownloadInProgress: s = "inprogress" case DownloadCompleted: s = "completed" } return s } // MarshalJSON implements json.Marshaler interface for DownloadStatus. func (ds DownloadStatus) MarshalJSON() ([]byte, error) { return []byte(fmt.Sprintf("\"%v\"", ds)), nil } // State stores all the metadata and state of a download. It is encoded as Gob // and stored to a persistent storage. type State struct { // State version number Version uint `json:"version"` // File metadata FileID int64 `json:"file_id"` FileName string `json:"file_name"` FileLength int64 `json:"file_length"` FileIcon string `json:"file_icon"` FileType string `json:"file_type"` CRC32 string `json:"crc32"` BitfieldPieceLength int `json:"-"` // Absolute path of the stored file LocalPath string `json:"local_path"` // Directory of the file relative to the Put.io root folder RemoteDir string `json:"-"` // Download states DownloadStatus DownloadStatus `json:"download_status"` DownloadStartedAt time.Time `json:"download_started_at"` DownloadFinishedAt time.Time `json:"download_finished_at"` DownloadSpeed float64 `json:"download_speed"` IsHidden bool `json:"-"` Error string `json:"fail-reason"` // mu guards below mu sync.Mutex BytesTransferredSinceLastUpdate int64 `json:"-"` Bitfield *Bitfield `json:"bitfield"` } func NewState(f putio.File, savedTo string) *State { bflength := uint32(f.Size / bitfieldPieceLength) excess := f.Size % bitfieldPieceLength if excess > 0
return &State{ Version: version, FileID: int64(f.ID), FileLength: f.Size, FileName: f.Name, FileIcon: f.Screenshot, FileType: f.ContentType, CRC32: f.CRC32, BitfieldPieceLength: bitfieldPieceLength, LocalPath: filepath.Join(savedTo, f.Name), DownloadStatus: DownloadIdle, Bitfield: &Bitfield{ length: bflength, Bitfield: bitfield.New(bflength), }, } } // String implements fmt.Stringer interface for State. func (s *State) String() string { var buf bytes.Buffer buf.WriteString(fmt.Sprintf("ID: %v\n", s.FileID)) buf.WriteString(fmt.Sprintf("Name: %v\n", s.FileName)) buf.WriteString(fmt.Sprintf("Length: %v\n", s.FileLength)) buf.WriteString(fmt.Sprintf("CRC32: %v\n", s.CRC32)) buf.WriteString(fmt.Sprintf("Download Status: %v\n", s.DownloadStatus)) switch s.DownloadStatus { case DownloadCompleted: buf.WriteString(fmt.Sprintf("Downloaded At: %v\n", s.DownloadFinishedAt)) case DownloadFailed: buf.WriteString(fmt.Sprintf("*** Fail reason: %v\n", s.Error)) } buf.WriteString(fmt.Sprintf("Bitfield Piece Length: %v\n", s.BitfieldPieceLength)) buf.WriteString(fmt.Sprintf("Bitfield Summary: %v/%v\n", s.Bitfield.Count(), s.Bitfield.Len())) return buf.String() }
{ bflength++ }
notifier.py
import time from datetime import datetime from math import radians, cos, sin, asin, sqrt import requests url = "https://www.vaccinespotter.org/api/v0/states/IL.json" minutes = 1 center = {'lat': 0.0, 'lon': 0.0} max_distance = 50 found = [] def
(lon1, lat1, lon2, lat2): """ Calculate the great circle distance between two points on the earth (specified in decimal degrees) """ # convert decimal degrees to radians lon1, lat1, lon2, lat2 = map(radians, [lon1, lat1, lon2, lat2]) # haversine formula dlon = lon2 - lon1 dlat = lat2 - lat1 a = sin(dlat / 2) ** 2 + cos(lat1) * cos(lat2) * sin(dlon / 2) ** 2 c = 2 * asin(sqrt(a)) r = 3956 return c * r def get_distance(data): return data['distance'] def sound(data): print("FOUND! {}".format(data)) # GPIO.output(23, GPIO.HIGH) # time.sleep(10) # GPIO.output(23, GPIO.LOW) def run(): print("{} - Running".format(datetime.now())) # GPIO.setwarnings(False) # GPIO.setmode(GPIO.BCM) # GPIO.setup(23, GPIO.OUT) # GPIO.output(23, GPIO.LOW) resp = requests.get(url) data = resp.json() for feature in data['features']: coordinates = feature['geometry']['coordinates'] if coordinates[0] is None or coordinates[1] is None: continue pharmacy_loc = {'lat': coordinates[1], 'lon': coordinates[0]} props = feature['properties'] distance = haversine(center['lon'], center['lat'], pharmacy_loc['lon'], pharmacy_loc['lat']) if props['appointments_available'] and distance <= max_distance: found.append({ "name": props['name'], "url": props['url'], "address": props['address'], "city": props['city'], "state": props['state'], "zip": props['postal_code'], "distance": distance }) found.sort(key=get_distance) if len(found): sound(found) # GPIO.cleanup() def main(): while True: run() print("{} - Sleeping for {} minutes".format(datetime.now(), minutes)) time.sleep(minutes * 60) if __name__ == '__main__': main()
haversine
lib.rs
// See the COPYRIGHT file at the top-level directory of this distribution. // Licensed under MIT license<LICENSE-MIT or http://opensource.org/licenses/MIT> #[cfg( test )] mod test { use tilde::tilde; macro_rules! inc { ($e:expr) => { $e + 1 } } tilde! { mod unary_macro { pub fn basic( i: i32 ) -> i32 { i.~inc!() } pub fn method( i: i32 ) -> i32 { i.clone().~inc!() } pub fn func( i: i32 ) -> i32 { Clone::clone( &i ).~inc!() } pub fn misc( i: i32 ) -> i32 { ( i + i.clone().~inc!() + i.~inc!().clone().~inc!() + i.~inc!().clone().~inc!().clone().~inc!() ).~inc!() } }} #[test] fn test_unary_macro() { use self::unary_macro::*; assert_eq!( basic( 0 ), 1 ); assert_eq!( method( 1 ), 2 ); assert_eq!( func( 2 ), 3 ); assert_eq!( misc( 3 ), 19 ); } macro_rules! add { ( $lhs:expr, $rhs:expr ) => { $lhs + $rhs } } tilde! { mod binary_macro { pub fn basic( i: i32 ) -> i32 { i.~add!(i) } pub fn method( i: i32 ) -> i32 { i.clone().~add!(i) } pub fn func( i: i32 ) -> i32 { Clone::clone( &i ).~add!(i) } pub fn misc( i: i32 ) -> i32 { ( i + i.clone().~add!(i) + i.~add!(i).clone().~add!(i) + i.~add!(i).clone().~add!(i).clone().~add!(i) ).~add!(i) } }} #[test] fn test_binary_macro() { use self::binary_macro::*; assert_eq!( basic( 0 ), 0 ); assert_eq!( method( 1 ), 2 ); assert_eq!( func( 2 ), 4 ); assert_eq!( misc( 3 ), 33 ); } macro_rules! log_value { ( $self:expr, $msg:expr ) => ({ $self.1.push_str( &format!( "{}:{}: {}: {:?}", file!(), line!(), $msg, $self.0 )); $self }) } fn value<T: std::fmt::Debug>( x: T, log: &mut String ) -> (T,&mut String) { log.push_str( &format!( "evaluated {:?}\n", x )); ( x, log ) } tilde! { #[test] fn rfc_pr_2442() { let mut log1 = String::new(); let mut log2 = String::new(); ( value( "hello", &mut log1 ).~log_value!( "value" ).0.len(), &mut log2 ).~log_value!( "len" ); let log = format!( "{}\n{}", log1, log2 ); assert_eq!( log, r#"evaluated "hello" tilde_derive/src/lib.rs:72: value: "hello" tilde_derive/src/lib.rs:72: len: 5"# ); } } tilde! { mod unary_fn { fn inc( i: i32 ) -> i32 { i + 1 } pub fn basic( i: i32 ) -> i32 { i.~inc() } pub fn method( i: i32 ) -> i32 { i.clone().~inc() } pub fn func( i: i32 ) -> i32 { Clone::clone( &i ).~inc() } pub fn misc( i: i32 ) -> i32 { ( i + i.clone().~inc() + i.~inc().clone().~inc() + i.~inc().clone().~inc().clone().~inc() ).~inc() } }} #[test] fn test_unary_fn() { use self::unary_fn::*; assert_eq!( basic( 0 ), 1 ); assert_eq!( method( 1 ), 2 ); assert_eq!( func( 2 ), 3 ); assert_eq!( misc( 3 ), 19 ); } pub fn add( i: i32, j: i32 ) -> i32 { i+j } tilde! { mod binary_fn { use super::add; pub fn basic( i: i32 ) -> i32 { i.~add(i) } pub fn method( i: i32 ) -> i32 { i.clone().~add(i) } pub fn func( i: i32 ) -> i32 { Clone::clone( &i ).~add(i) } pub fn misc( i: i32 ) -> i32 { ( i + i.clone().~add(i) + i.~add(i).clone().~add(i) + i.~add(i).clone().~add(i).clone().~add(i) ).~add(i) } }} #[test] fn test_binary_fn() { use self::binary_fn::*; assert_eq!( basic( 0 ), 0 ); assert_eq!( method( 1 ), 2 ); assert_eq!( func( 2 ), 4 ); assert_eq!( misc( 3 ), 33 ); } tilde! { mod binary_macro_and_fn { use super::add; pub fn basic( i: i32 ) -> i32 { i.~add!(i).~add(i) } pub fn method( i: i32 ) -> i32 { i.clone().~add!(i).~add(i) } pub fn func( i: i32 ) -> i32 { Clone::clone( &i ).~add!(i).~add(i) } pub fn misc( i: i32 ) -> i32 { ( i + i.~add!(i).clone().~add!(i).~add(i) + i.~add!(i).~add(i).~add!(i).clone().~add!(i).~add(i) + i.~add!(i).~add(i).~add!(i).clone().~add!(i).~add(i).~add!(i).clone().~add(i) ).~add(i) } }} #[test] fn test_binary_macro_and_fn()
}
{ use self::binary_macro_and_fn::*; assert_eq!( basic( 0 ), 0 ); assert_eq!( method( 1 ), 3 ); assert_eq!( func( 2 ), 6 ); assert_eq!( misc( 3 ), 60 ); }
author.ts
import { Component } from '@angular/core'; import { NavController, IonicPage, NavParams } from 'ionic-angular'; import { WordpressProvider } from '@/providers/wordpress/wordpress'; import { IPostParams } from '@/interfaces/wordpress'; @IonicPage({ segment: 'author/:key', }) @Component({ selector: 'author', templateUrl: 'author.html', providers: [WordpressProvider], }) export class Author { type: string = '執筆者'; title: string; search: IPostParams = { type: 'wait', authorID: this.navParams.get('key'), }; constructor(public navCtrl: NavController, public navParams: NavParams, public wp: WordpressProvider) {} ionViewDidLoad() { this.title = this.navParams.get('title'); const f = () => new Promise(resolve => { resolve(this.navParams.get('key')); }); f().then((ID: number) => { // use not require auth resource. this.wp.getPostList(0, { authorID: ID }).subscribe(data => { this.title = data[0].author.name; });
authorID: this.navParams.get('key'), }; }); } }
this.search = { type: 'post',
cli.py
''' ******** Lisa CLI ******** Installing LISA using pip or conda adds the "lisa" command to your path. LISA's functionality is divided into three main subcommands: * `lisa oneshot`_ : one genelist * `lisa multi`_ : multiple genelists * `lisa regions`_ : one genelist and a list of regions Which are used depending on the evidence you have on hand. See the `User Guide <user_guide.rst>`_ for more usage information. See the `Python API <python_api.rst>`_ for more in-depth description of tests and parameters. ''' from lisa import FromRegions, FromGenes, FromCoverage from lisa.core.utils import Log from lisa.core.lisa_core import DownloadRequiredError from lisa.core.data_interface import DatasetNotFoundError, INSTALL_PATH from lisa._version import __version__ import configparser import argparse import os import sys import json from collections import defaultdict from shutil import copyfile import lisa.cli.test_cli as tests from shutil import copyfile import numpy as np from lisa.lisa_public_data.genes_test import _config as public_config from lisa.lisa_user_data.regions_test import _config as user_config from lisa.core.io import parse_deseq_file #____COMMAND LINE INTERFACE________ INSTANTIATION_KWARGS = ['isd_method','verbose','assays', 'rp_map'] PREDICTION_KWARGS = ['background_list','num_background_genes','background_strategy', 'seed'] def extract_kwargs(args, keywords): return {key : vars(args)[key] for key in keywords} def is_valid_prefix(prefix): if '/' in prefix: if os.path.isdir(prefix) or os.path.isfile(prefix) or os.path.isdir(os.path.dirname(prefix)): return prefix else: raise argparse.ArgumentTypeError('{}: Invalid file prefix.'.format(prefix)) else: return prefix def save_results(args, results, metadata): if args.save_metadata: if args.output_prefix: metadata_filename = args.output_prefix + '.metadata.json' else: metadata_filename = os.path.basename(args.query_list.name) + '.metadata.json' with open(metadata_filename, 'w') as f: f.write(json.dumps(metadata, indent=4)) if not args.output_prefix is None: with open(args.output_prefix + '.lisa.tsv', 'w') as f: f.write(results.to_tsv()) else: print(results.to_tsv()) def lisa_oneshot(args): try: args.background_list = args.background_list.readlines() except AttributeError: pass results, metadata = FromGenes(args.species, **extract_kwargs(args, INSTANTIATION_KWARGS)).predict(args.query_list.readlines(), **extract_kwargs(args, PREDICTION_KWARGS)) save_results(args, results, metadata) def lisa_regions(args): try: args.background_list = args.background_list.readlines() except AttributeError: pass if not args.macs_xls: fn = FromRegions.using_bedfile else: fn = FromRegions.using_macs_output results, metadata = fn(args.species, args.query_genes, args.regions, rp_map = args.rp_map, rp_decay=args.rp_decay, isd_method=args.isd_method, background_list=args.background_list, background_strategy=args.background_strategy, num_background_genes = args.num_background_genes, seed=args.seed, header = args.header) save_results(args, results, metadata) def lisa_coverage(args): try: args.background_list = args.background_list.readlines() except AttributeError: pass results, metadata = FromCoverage.using_bigwig(args.species, args.query_genes, args.bigwig_path, rp_map = args.rp_map, isd_method=args.isd_method, background_list=args.background_list, background_strategy=args.background_strategy, num_background_genes = args.num_background_genes, seed=args.seed) save_results(args, results, metadata) def save_and_get_top_TFs(args, query_name, results, metadata): with open(args.output_prefix + query_name + '.lisa.tsv', 'w') as f: f.write(results.to_tsv()) if args.save_metadata: with open(args.output_prefix + query_name + '.metadata.json', 'w') as f: f.write(json.dumps(metadata, indent=4)) top_TFs = results.to_dict()['factor'] return list(set(top_TFs[:10])) def print_results_multi(results_summary): print('Sample\tTop Regulatory Factors:') for result_line in results_summary: print(result_line[0], ', '.join(result_line[1]), sep = '\t') class MultiError(Exception): pass def lisa_multi(args): log = Log(target = sys.stderr, verbose = args.verbose) lisa = FromGenes(args.species, **extract_kwargs(args, INSTANTIATION_KWARGS), log = log) query_dict = {os.path.basename(query.name) : query.readlines() for query in args.query_lists} results_summary = [] all_passed = True for query_name, query_list in query_dict.items(): with log.section('Modeling {}:'.format(str(query_name))): try: results, metadata = lisa.predict(query_list, **extract_kwargs(args, PREDICTION_KWARGS)) top_TFs_unique = save_and_get_top_TFs(args, query_name, results, metadata) results_summary.append((query_name, top_TFs_unique)) except AssertionError as err: all_passed = False log.append('ERROR: ' + str(err)) print_results_multi(results_summary) if not all_passed: raise MultiError('One or more genelists raised an error') def lisa_deseq(args): log = Log(target = sys.stderr, verbose = args.verbose) lisa = FromGenes(args.species, **extract_kwargs(args, INSTANTIATION_KWARGS), log = log) up_genes, down_genes = parse_deseq_file(args.deseq_file, lfc_cutoff = args.lfc_cutoff, pval_cutoff= args.pval_cutoff, sep = args.sep) results_summary = [] all_passed = True for prefix, query_list in zip(['up-regulated', 'down-regulated'], [up_genes, down_genes]): with log.section('Modeling {}:'.format(str(prefix))): try:
top_TFs_unique = save_and_get_top_TFs(args, prefix, results, metadata) results_summary.append((prefix, top_TFs_unique)) except AssertionError as err: all_passed = False log.append('ERROR: ' + str(err)) print_results_multi(results_summary) if not all_passed: raise MultiError('One or more genelists raised an error') def confirm_file(arg): if os.path.isfile(arg): return arg else: raise argparse.ArgumentTypeError('ERROR: {} is not a valid file'.format(str(arg))) def run_tests(args): if not args.skip_oneshot: tests.test_oneshot(args.test_genelist, args.background_genelist) tests.test_multi(args.genelists) def build_common_args(parser): parser.add_argument('--seed', type = int, default = 2556, help = 'Random seed for gene selection. Allows for reproducing exact results.') parser.add_argument('--use_motifs', action = 'store_const', const = 'motifs', default='chipseq', dest = 'isd_method', help = 'Use motif hits instead of ChIP-seq peaks to represent TF binding (only recommended if TF-of-interest is not represented in ChIP-seq database).') parser.add_argument('--save_metadata', action = 'store_true', default = False, help = 'Save json-formatted metadata from processing each gene list.') def build_from_genes_args(parser, add_assays = True): #parser.add_argument('-c','--cores', required = True, type = int) if add_assays: parser.add_argument('-a','--assays',nargs='+',default=['Direct','H3K27ac','DNase'], choices=['Direct','H3K27ac','DNase'], help = 'Which set of insilico-deletion assays to run.') parser.add_argument('--rp_map_style', dest = 'rp_map', choices=public_config.get('lisa_params','rp_map_styles').split(','), default= public_config.get('lisa_params','rp_map_styles').split(',')[0], help = 'Which style of rp_map to assess influence of regions on genes. "basic" is stricly distance-based, while "enhanced" masks the exon and promoter regions of nearby genes.') def build_multiple_lists_args(parser): parser.add_argument('-o','--output_prefix', required = True, type = is_valid_prefix, help = 'Output file prefix.') parser.add_argument('-v','--verbose',type = int, default = 2) parser.add_argument('-b','--num_background_genes', type = int, default = public_config.get('lisa_params', 'background_genes'), help = 'Number of sampled background genes to compare to user-supplied genes. These genes are selection from other gene lists.') parser.add_argument('--random_background', action = 'store_const', const = 'random', default = 'regulatory', dest = 'background_strategy', help = 'Use random background selection rather than "regulatory" selection.') def build_one_list_args(parser, default_background_strategy = 'regulatory'): parser.add_argument('-o','--output_prefix', required = False, type = is_valid_prefix, help = 'Output file prefix. If left empty, will write results to stdout.') parser.add_argument('--background_strategy', choices = public_config.get('lisa_params', 'background_strategies').split(','), default = default_background_strategy, help = """Background genes selection strategy. LISA samples background genes to compare to user\'s genes-of-interest from a diverse regulatory background (regulatory - recommended), randomly from all genes (random), or uses a user-provided list (provided). """) background_genes_group = parser.add_mutually_exclusive_group() background_genes_group.add_argument('--background_list', type = argparse.FileType('r', encoding = 'utf-8'), required = False, help = 'user-supplied list of backgroung genes. Used when --background_strategy flag is set to "provided"') background_genes_group.add_argument('-b','--num_background_genes', type = int, default = public_config.get('lisa_params', 'background_genes'), help = 'Number of sampled background genes to compare to user-supplied genes') parser.add_argument('-v','--verbose',type = int, default = 4) def build_deseq_args(parser): parser.add_argument('deseq_file', type = confirm_file, help = 'DEseq differential expression output file. Will be parsed for differentially up and down-regulated genes.') parser.add_argument('-lfc','--lfc_cutoff', type = float, default = 1, help = 'Log2 fold-change cutoff. For up-regulated genes, must have LFC > cutoff. For down-regulated genes, less than -1 * cutoff. Default of 1 means genes must be up or down-regulated by a factor of 2 to be included in query.') parser.add_argument('-p','--pval_cutoff', type = float, default = 0.1, help = 'Adjusted p-value cutoff. Gene must have pval below cutoff to be a query gene.') parser.add_argument('--sep', type = str, default='\t', help = 'Field separator for DESeq output file.') class RstFormatter(argparse.ArgumentDefaultsHelpFormatter, argparse.RawTextHelpFormatter): pass parser = argparse.ArgumentParser( formatter_class=RstFormatter, description = """ Lisa: inferring transcriptional regulators through integrative modeling of public chromatin accessibility and ChIP-seq data https://genomebiology.biomedcentral.com/articles/10.1186/s13059-020-1934-6 X. Shirley Liu Lab, 2020 """) parser.add_argument('--version', action = 'version', version = __version__) subparsers = parser.add_subparsers(help = 'commands') #__ LISA oneshot command __ oneshot_parser = subparsers.add_parser('oneshot', formatter_class=RstFormatter, description = ''' lisa oneshot ------------ You have: * one genelist Use LISA to infer influential TFs from one gene list, with background epigenetic landscape modeled using public data. If you have multiple lists, this option will be slower than using "multi" due to data-loading time. \n Example:: $ lisa oneshot hg38 ./genelist.txt -b 501 --seed=2556 --save_metadata > results.tsv ''') oneshot_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Find TFs associated with human (hg38) or mouse (mm10) genes') oneshot_parser.add_argument('query_list', type = argparse.FileType('r', encoding = 'utf-8'), help = 'user-supplied gene lists. One gene per line in either symbol or refseqID format') build_one_list_args(oneshot_parser) build_from_genes_args(oneshot_parser) build_common_args(oneshot_parser) oneshot_parser.set_defaults(func = lisa_oneshot) deseq_parser = subparsers.add_parser('deseq', formatter_class = RstFormatter, description = ''' lisa deseq ---------- You have: * RNA-seq differential expression results from DESeq2 Use LISA to infer influential TFs given differentially expressed genes found using DESeq2. Will seperate up-regulated and down-regulated genes into their own LISA tests. Example:: $ lisa deseq hg38 ./deseq_results.tsv -o deseq/ -b 501 --seed=2556 --save_metadata ''') deseq_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Find TFs associated with human (hg38) or mouse (mm10) genes') build_deseq_args(deseq_parser) build_multiple_lists_args(deseq_parser) build_from_genes_args(deseq_parser) build_common_args(deseq_parser) deseq_parser.set_defaults(func = lisa_deseq, background_list = None) #__ LISA multi command __ multi_parser = subparsers.add_parser('multi', formatter_class=RstFormatter, description = ''' lisa multi ---------- You have: * multiple genelists Use LISA to infer influential TFs from multiple lists. This function processes each genelist independently in the same manner as the "oneshot" command, but reduces data loading time. Useful when performing the test on up and down-regulated genes from multiple RNA-seq clusters. Example:: $ lisa multi hg38 ./genelists/*.txt -b 501 -o ./results/ ''') multi_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Find TFs associated with human (hg38) or mouse (mm10) genes') multi_parser.add_argument('query_lists', type = argparse.FileType('r', encoding = 'utf-8'), nargs = "+", help = 'user-supplied gene lists. One gene per line in either symbol or refseqID format') build_multiple_lists_args(multi_parser) build_from_genes_args(multi_parser) build_common_args(multi_parser) multi_parser.set_defaults(func = lisa_multi, background_list = None) from argparse import SUPPRESS #____ LISA regions command ____ regions_parser = subparsers.add_parser('regions', formatter_class=RstFormatter, add_help = False, description = ''' lisa regions ------------ You have: * one genelist * regions (250 - 1000 bp wide) of interest related to that list * optional: a positive score/weight associated with each region (you may pass zero-weight regions, but they do not affect the test and will be filtered out) Use LISA to infer TF influence on your geneset, but provide your regions-of-interest rather than building a background epigenetic model using public data. When providing your own regions, LISA uses higher resolution, more precise binding data to increase the power of the test. Your regions should be between ~250 and 1000 bp in width, and the associated score should be positive. Scores are often read-depth at those regions, but can be any metic you think may influence gene regulation. Example:: $ lisa regions -r ./regions.bed -q ./genelist.txt --save_metadata > results.tsv $ lisa regions -r ./macs_peaks.xls -q ./genelist.txt --macs_xls > results.tsv ''') regions_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Find TFs associated with human (hg38) or mouse (mm10) genes') regions_required = regions_parser.add_argument_group('required arguments') regions_required.add_argument('-q', '--query_genes', required = True, type = argparse.FileType('r', encoding = 'utf-8'), help = 'user-supplied gene list. One gene per line in either symbol or refseqID format') regions_required.add_argument('-r', '--regions', type = confirm_file, required = True, help = 'Tad-delineated bed file with columns: chr, start, end[, score]. The score column is optional. If not provided, LISA will assign each region a uniform weight.') regions_optional = regions_parser.add_argument_group('optional arguments') regions_optional.add_argument('--header', action = 'store_true', default=False, help = 'Bed file has header row as first row. The header row may contain ') regions_optional.add_argument('--macs_xls', action = 'store_true', default=False, help='If provided, regions file is a MACS2 .xls output file, and the "pileup" field is taken to be the region score.') regions_optional.add_argument('--rp_map_style', dest = 'rp_map', choices=user_config.get('lisa_params','rp_map_styles').split(','), default=user_config.get('lisa_params','rp_map_styles').split(',')[0]) regions_optional.add_argument('--rp_decay', type = int, default = user_config.get('lisa_params','rp_decay'), help = 'Distance in base-pairs in which the influence of a region on a gene decays by half. Increase for more weight on distal elements, decrease for more weight on promoter elements.') build_one_list_args(regions_optional, default_background_strategy='all') build_common_args(regions_optional) regions_optional.add_argument('-h', '--help', action = 'help', default=SUPPRESS) regions_parser.set_defaults(func = lisa_regions) #___ LISA coverage commands _____ coverage_parser = subparsers.add_parser('coverage', formatter_class = RstFormatter, add_help = False, description = ''' lisa coverage ------------ You have: * one genelist * bigwig of coverage over the genome Use LISA to infer TF influence on your geneset using your own coverage data. This test is better suited than the "regions" test when your measure produces wide peaks/areas of influence. An example of this is H3K27ac data, which correlates with gene expression similarly to accessibility, but produces wide peaks that may span many distinct TF binding locations. Example:: $ lisa coverage -bw ./sample.bigwig -q ./genelist.txt --save_metadata > results.tsv ''') coverage_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Find TFs associated with human (hg38) or mouse (mm10) genes') coverage_parser.add_argument('-q', '--query_genes', required = True, type = argparse.FileType('r', encoding = 'utf-8'), help = 'user-supplied gene list. One gene per line in either symbol or refseqID format') coverage_parser.add_argument('-bw', '--bigwig_path', type = confirm_file, required = True, help = 'Bigwig file describing coverage over the genome.') coverage_optional = coverage_parser.add_argument_group('optional arguments') build_from_genes_args(coverage_optional, False) build_one_list_args(coverage_optional, default_background_strategy='all') build_common_args(coverage_optional) coverage_optional.add_argument('-h', '--help', action = 'help', default=SUPPRESS) coverage_parser.set_defaults(func = lisa_coverage) #__ download command ___ def lisa_download(args): if args.command in ['oneshot','multi','coverage']: _class = FromGenes elif args.command == 'regions': _class = FromRegions else: raise AssertionError('Command {} not recognized'.format(args.command)) if args.url: print(_class.get_dataset_url(args.species)) else: _class.download_dataset(args.species) download_data_parser = subparsers.add_parser('download', description = 'Download data from CistromeDB. Use if data recieved is incomplete or malformed.') download_data_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Download data associated with human (hg38) or mouse (mm10) genes') download_data_parser.add_argument('command', choices=['oneshot', 'multi', 'regions', 'coverage'], help = 'For which command to download data') download_data_parser.add_argument('--url', action = 'store_true', help = 'Get url for data download. Does not install data.') download_data_parser.set_defaults(func = lisa_download) #__ install command ___ def install_data(args): if args.command in ['oneshot','multi','coverage']: _class = FromGenes elif args.command == 'regions': _class = FromRegions else: raise AssertionError('Command {} not recognized'.format(args.command)) dataset_file_required = os.path.basename(_class.get_dataset_path(args.species)) if not args.force: assert(dataset_file_required == os.path.basename(args.dataset)), 'The {} test requires dataset {}. Use --force to overide and install your own dataset.'.format(args.command, dataset_file_required) if not os.path.isdir(INSTALL_PATH): os.mkdir(INSTALL_PATH) if args.remove: os.rename(args.dataset, _class.get_dataset_path(args.species)) else: copyfile(args.dataset, _class.get_dataset_path(args.species)) install_data_parser = subparsers.add_parser('install', description = 'Helper command for manually installing Lisa\'s data') install_data_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Install data associated with human (hg38) or mouse (mm10) genes') install_data_parser.add_argument('command', choices=['oneshot', 'multi', 'regions', 'coverage'], help = 'For which command to install data') install_data_parser.add_argument('dataset', type = confirm_file, help = 'Path to downloaded h5 dataset') install_data_parser.add_argument('--remove', action = 'store_true', help = 'Delete dataset after installation is complete.') install_data_parser.add_argument('--force', action = 'store_true', help = 'Skip namecheck and install lisa custom dataset') install_data_parser.set_defaults(func = install_data) #____ LISA run tests command ___ test_parser = subparsers.add_parser('run-tests') test_parser.add_argument('species', type = str, choices=['hg38','mm10']) test_parser.add_argument('test_genelist', type = confirm_file, help = 'test genelist for oneshot command') test_parser.add_argument('background_genelist', type = confirm_file, help = 'background genelist for oneshot command') test_parser.add_argument('genelists', nargs = '+', type = str, help = 'genelists for testing multi and one-vs-rest commands') test_parser.add_argument('--skip_oneshot', action='store_true') args = parser.parse_args() test_parser.set_defaults(func = run_tests) def main(): #____ Execute commands ___ args = parser.parse_args() try: args.func #first try accessing the .func attribute, which is empty if user tries ">>>lisa". In this case, don't throw error, display help! except AttributeError: print(parser.print_help(), file = sys.stderr) else: try: args.func(args) except (AssertionError, DownloadRequiredError, DatasetNotFoundError, MultiError) as err: print('ERROR: ' + str(err), file = sys.stderr) sys.exit(1)
results, metadata = lisa.predict(query_list, **extract_kwargs(args, PREDICTION_KWARGS))
employee-db.service.ts
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { environment } from '../../../../environments/environment'; import { share } from 'rxjs/operators'; @Injectable({ providedIn: 'root' }) export class EmployeeDbService { employee_url = '/api/grh/employee/'; constructor(private httpClient: HttpClient) {} public loadEmployees() { return this.httpClient .get(environment.server + this.employee_url) .pipe(share()); } public getEmployee(id: string) { return this.httpClient .get(environment.server + this.employee_url + id + '/') .pipe(share()); } //path needed to delete employee public deleteEmployee(id: string) { return this.httpClient .delete(environment.server + this.employee_url + id + '/') .pipe(share()); } createEmployee(formdata: FormData) { return this.httpClient .post(environment.server + this.employee_url, formdata) .pipe(share()); } updateEmployee(id: string, params: any) { return this.httpClient .put(environment.server + `/api/grh/employee/${id}/`, params) .pipe(share()); } queryEmployees(params: any) { // return this.httpClient.get(environment.server + employee_url, { params }).pipe(share()) return this.httpClient .get(environment.server + '/api/grh/employees_list/', { params })
return this.httpClient .put(environment.server + `/api/grh/update_state_employees/`, { ids, state }) .pipe(share()); } }
.pipe(share()); } updateStateEmployees(ids: string[], state: boolean) {
common.py
"""Common functions for tests.""" from homeassistant.components import dynalite from homeassistant.helpers import entity_registry from tests.async_mock import AsyncMock, Mock, call, patch from tests.common import MockConfigEntry ATTR_SERVICE = "service" ATTR_METHOD = "method" ATTR_ARGS = "args" def create_mock_device(platform, spec): """Create a dynalite mock device for a platform according to a spec.""" device = Mock(spec=spec) device.category = platform device.unique_id = "UNIQUE" device.name = "NAME" device.device_class = "Device Class" return device async def get_entry_id_from_hass(hass): """Get the config entry id from hass.""" ent_reg = await entity_registry.async_get_registry(hass) assert ent_reg conf_entries = hass.config_entries.async_entries(dynalite.DOMAIN) assert len(conf_entries) == 1 return conf_entries[0].entry_id async def create_entity_from_device(hass, device): """Set up the component and platform and create a light based on the device provided.""" host = "1.2.3.4" entry = MockConfigEntry(domain=dynalite.DOMAIN, data={dynalite.CONF_HOST: host}) entry.add_to_hass(hass) with patch( "homeassistant.components.dynalite.bridge.DynaliteDevices" ) as mock_dyn_dev: mock_dyn_dev().async_setup = AsyncMock(return_value=True) assert await hass.config_entries.async_setup(entry.entry_id) await hass.async_block_till_done() new_device_func = mock_dyn_dev.mock_calls[1][2]["new_device_func"] new_device_func([device]) await hass.async_block_till_done() return mock_dyn_dev.mock_calls[1][2]["update_device_func"] async def run_service_tests(hass, device, platform, services): """Run a series of service calls and check that the entity and device behave correctly."""
service = cur_item[ATTR_SERVICE] args = cur_item.get(ATTR_ARGS, {}) service_data = {"entity_id": f"{platform}.name", **args} await hass.services.async_call(platform, service, service_data, blocking=True) await hass.async_block_till_done() for check_item in services: check_method = getattr(device, check_item[ATTR_METHOD]) if check_item[ATTR_SERVICE] == service: check_method.assert_called_once() assert check_method.mock_calls == [call(**args)] check_method.reset_mock() else: check_method.assert_not_called()
for cur_item in services:
hive_partition.py
# # 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. from airflow.providers.apache.hive.hooks.hive import HiveMetastoreHook from airflow.sensors.base_sensor_operator import BaseSensorOperator from airflow.utils.decorators import apply_defaults class HivePartitionSensor(BaseSensorOperator): """ Waits for a partition to show up in Hive. Note: Because ``partition`` supports general logical operators, it can be inefficient. Consider using NamedHivePartitionSensor instead if you don't need the full flexibility of HivePartitionSensor. :param table: The name of the table to wait for, supports the dot notation (my_database.my_table) :type table: str :param partition: The partition clause to wait for. This is passed as is to the metastore Thrift client ``get_partitions_by_filter`` method, and apparently supports SQL like notation as in ``ds='2015-01-01' AND type='value'`` and comparison operators as in ``"ds>=2015-01-01"`` :type partition: str :param metastore_conn_id: reference to the metastore thrift service connection id :type metastore_conn_id: str """ template_fields = ('schema', 'table', 'partition',) ui_color = '#C5CAE9' @apply_defaults def __init__(self, table, partition="ds='{{ ds }}'", metastore_conn_id='metastore_default', schema='default', poke_interval=60 * 3, *args, **kwargs):
def poke(self, context): if '.' in self.table: self.schema, self.table = self.table.split('.') self.log.info( 'Poking for table %s.%s, partition %s', self.schema, self.table, self.partition ) if not hasattr(self, 'hook'): hook = HiveMetastoreHook( metastore_conn_id=self.metastore_conn_id) return hook.check_for_partition( self.schema, self.table, self.partition)
super().__init__( poke_interval=poke_interval, *args, **kwargs) if not partition: partition = "ds='{{ ds }}'" self.metastore_conn_id = metastore_conn_id self.table = table self.partition = partition self.schema = schema
TodoRepositoryImpl.ts
import Todo from "../../domain/entities/Todo" import TodoRepository from "../../domain/repositories/TodoRepository" export default class TodoRepositoryImpl implements TodoRepository { async GetTodos(): Promise<Todo[]> { const todos = [ {id: 1, title: 'todo1'}, {id: 2, title: 'todo2'}, {id: 3, title: 'todo3'} ]; return todos; } async StoreTodo(data, list): Promise<Todo[]> { const newList = [] console.log(data) for(var ctr = 0; ctr < list.length; ctr++) { newList.push({id: list[ctr].id, title: list[ctr].title}); } newList.push({id: list[list.length - 1].id + 1, title: data});
async DeleteTodo(id, list): Promise<Todo[]> { const newList = [] for(var ctr = 0; ctr < list.length; ctr++) { if(id != list[ctr].id) { newList.push({id: list[ctr].id, title: list[ctr].title}); } } return newList; } async UpdateTodo(item, data, list): Promise<Todo[]> { const newList = [] for(var ctr = 0; ctr < list.length; ctr++) { if(item.id != list[ctr].id) { newList.push({id: list[ctr].id, title: list[ctr].title}); } else { newList.push({id: list[ctr].id, title: data}); } } return newList; } }
return newList; }
main.py
from pprint import pprint from .args import get_args from .openapifile import OpenAPIFile from .ceresfile import CeresFile def
(): args = get_args() input_file = OpenAPIFile() input_file.load(args.input) output_producer = CeresFile(input_file, args.output_dir) output_producer.process()
main
bytes_utils.py
def bytes_to_human(n): symbols = ('KB', 'MB', 'GB', 'TB', 'PB', 'EB') prefix = {} for i, s in enumerate(symbols): prefix[s] = 1 << (i + 1) * 10 for s in reversed(symbols):
if n >= prefix[s]: value = float(n) / prefix[s] return '%.1f%s' % (value, s) return '%sB' % n
cli.rs
use crate::manager::Manager; use clap::{crate_authors, crate_description, crate_version}; use clap::{App, Arg}; fn build_cli<'a>(project_list: &[&'a str]) -> App<'a, 'a> { App::new("Goto project") .version(crate_version!()) .author(crate_authors!()) .about(crate_description!()) .after_help( "Before usage write configuration of your projects list in ~/.goto-project.yaml", ) .arg( Arg::with_name("project") .takes_value(true) .possible_values(project_list) .help("Open choosen project if passed, otherwise list them all."), ) } pub fn run_cli() { let manager = Manager::new(".goto-project.yaml"); let project_list = manager.list_projects(); let project_list: Vec<&str> = project_list.iter().map(|p| p.as_ref()).collect(); let matches = build_cli(project_list.as_slice()).get_matches(); match matches.value_of("project") { Some(project) => manager.open_project(project), None =>
} }
{ for project_name in project_list { println!("{}", project_name); } }
config.py
# # Copyright (C) Francesco Guarnieri 2020 <[email protected]> # # import os from pathlib import Path import configparser from importlib import metadata import logging import logging.config import logging.handlers from appdirs import AppDirs # Estraggo il percorso principale da __file__ e deduco il nome del package principale # (config.py deve stare nel package principale) BASE_PATH = Path(__file__).resolve().parent PACKAGE_NAME = BASE_PATH.name dirs = AppDirs(appname=PACKAGE_NAME) RESOURCE_PATH = BASE_PATH / 'resources' user_data_dir = Path(dirs.user_data_dir) user_config_dir = Path(dirs.user_config_dir) user_log_dir = Path(dirs.user_log_dir) # Se non esistono le directory standard per la configurazione, dati, logging if not user_data_dir.exists(): user_data_dir.mkdir(parents=True) if not user_config_dir.exists(): user_config_dir.mkdir(parents=True) if not user_log_dir.exists(): user_log_dir.mkdir(parents=True) CONF_PATHNAME = user_config_dir / 'preferences.cfg' __MINIMAL_LOGGING_CFG = f''' [loggers] keys=root,{PACKAGE_NAME} [handlers] keys=consoleHandler,fileHandler [formatters] keys=simpleFormatter [logger_root] level=WARNING handlers=consoleHandler [logger_{PACKAGE_NAME}] level=WARNING handlers=consoleHandler,fileHandler qualname={PACKAGE_NAME} propagate=0 [handler_consoleHandler] class=StreamHandler level=WARNING formatter=simpleFormatter args=(sys.stderr,) [handler_fileHandler] class=handlers.RotatingFileHandler level=WARNING formatter=simpleFormatter args=("{user_log_dir / PACKAGE_NAME}.log", "a", 16384, 10) [formatter_simpleFormatter] format=%(asctime)s - %(name)s - %(levelname)s - %(message)s datefmt=%Y-%m-%d %H:%M:%S ''' # Inizializza il file di configurazione del logging dell'applicazione def __initialize_logger():
# Inizializza i dunders tramite "pyproject.toml" oppure dal program_metadata def __initialize_dunders(): prj_filename = BASE_PATH.parent / "pyproject.toml" result = {'version': '0.0.0', 'author': '', 'desc': ''} if prj_filename.exists(): config = configparser.ConfigParser() config.read(prj_filename) prj_data = config['tool.poetry'] result['version'] = prj_data['version'].strip('"') result['author'] = prj_data['authors'].strip('[]').replace('"', '') result['desc'] = prj_data['description'].strip('"') else: try: program_metadata = metadata.metadata(PACKAGE_NAME) result['version'] = program_metadata["Version"] result['author'] = program_metadata["Author"] result['desc'] = program_metadata["Summary"] except metadata.PackageNotFoundError: pass return result dunders = __initialize_dunders() __author__ = dunders['author'] __desc__ = dunders['desc'] __version__ = dunders['version'] __copyright__ = "Copyright 2020 - Francesco Guarnieri" log = __initialize_logger()
logging_file_config = user_config_dir / "logging.cfg" if not logging_file_config.exists(): with open(logging_file_config, "w") as cfg_file: cfg_file.write(__MINIMAL_LOGGING_CFG) logging.config.fileConfig(logging_file_config) logger = logging.getLogger(PACKAGE_NAME) return logger
attr_table.rs
#[derive(Clone, Debug, PartialEq, Eq)] pub struct AttrTable([[u8; 8]; 8]); impl Default for AttrTable { fn default() -> Self { Self([[0; 8]; 8]) } } impl AttrTable { fn get_byte(&self, x: u8, y: u8) -> u8 { self.0[y as usize][x as usize] } fn set_byte(&mut self, x: u8, y: u8, value: u8) { self.0[y as usize][x as usize] = value } pub fn get_pallete_id(&self, x: u8, y: u8) -> u8
pub fn read(&self, addr: u16) -> u8 { let x = (addr % 8) as u8; let y = (addr / 8) as u8; self.get_byte(x, y) } pub fn write(&mut self, addr: u16, value: u8) { let x = (addr % 8) as u8; let y = (addr / 8) as u8; self.set_byte(x, y, value); } }
{ let x = x / 16; let y = y / 16; let right = x % 2; let x = x / 2; let bottom = y % 2; let y = y / 2; let byte = self.get_byte(x, y); let offset = (bottom * 2 + right) * 2; (byte >> offset) % 4 }
config.module.js
"use strict"; angular.module('app.config', [ 'app.metadata', 'app.config.error', 'app.config.http',
'app.config.ui' ]).run(function ($log, appRevision) { $log.info("Application revision is", appRevision); }).config(function ($compileProvider, isProductionEnvironment) { // https://docs.angularjs.org/guide/production $compileProvider.debugInfoEnabled(!isProductionEnvironment); });
'app.config.router', 'app.config.cache', 'app.config.translate',
util.rs
use lazy_static::lazy_static; use std::{ collections::HashSet, ffi::c_void, ops::{Deref, DerefMut}, ptr::NonNull, sync::atomic::{AtomicI32, Ordering}, }; use anyhow::Result; use serde::{Deserialize, Serialize}; use smr::ipc_channel::ipc::IpcSender; use thiserror::Error; use time::PrimitiveDateTime; use uuid::Uuid; use v8; use crate::{ ctx::BlueboatInitData, exec::Executor, lpch::{AppLogEntry, LowPriorityMsg}, package::PackageKey, }; pub fn v8_deserialize<'s, 't, T: for<'de> Deserialize<'de>>( scope: &mut v8::HandleScope<'s>, value: v8::Local<'t, v8::Value>, ) -> Result<T> { Ok(serde_v8::from_v8(scope, value)?) } pub fn v8_serialize<'s, T: Serialize>( scope: &mut v8::HandleScope<'s>, value: &T, ) -> Result<v8::Local<'s, v8::Value>> { Ok(serde_v8::to_v8(scope, value)?) } pub fn v8_error<'s>( api_name: &str, scope: &mut v8::HandleScope<'s>, e: &anyhow::Error, ) -> v8::Local<'s, v8::Value> { log::error!( "app {}: api `{}` is throwing an asynchronous exception: {:?}", Executor::try_current() .map(|x| format!("{}", x.upgrade().unwrap().ctx.key)) .unwrap_or_else(|| "<unknown>".to_string()), api_name, e ); let msg = v8::String::new(scope, &format!("{}", e)).unwrap(); let exc = v8::Exception::error(scope, msg); exc } pub fn v8_invoke_callback<'s>( api_name: &str, scope: &mut v8::HandleScope<'s>, res: Result<v8::Local<'s, v8::Value>>, callback: &v8::Global<v8::Function>, ) { let callback = v8::Local::new(scope, callback); let undef = v8::undefined(scope); match res { Ok(res) => { callback.call(scope, undef.into(), &[undef.into(), res]); } Err(e) => { let e = v8_error(api_name, scope, &e); callback.call(scope, undef.into(), &[e, undef.into()]); } } } pub fn mk_v8_string<'s>( scope: &mut v8::HandleScope<'s>, src: &str, ) -> Result<v8::Local<'s, v8::String>> { #[derive(Error, Debug)] #[error("failed to build a v8 string (source length: {0})")] struct StringBuildError(usize); Ok(v8::String::new(scope, src).ok_or(StringBuildError(src.len()))?) } pub struct TypedArrayView { _store: Option<v8::SharedRef<v8::BackingStore>>, slice: &'static mut [u8], } impl Deref for TypedArrayView { type Target = [u8]; fn deref(&self) -> &Self::Target { self.slice } } impl DerefMut for TypedArrayView { fn deref_mut(&mut self) -> &mut Self::Target { self.slice } } pub fn ensure_typed_arrays_have_distinct_backing_stores<'s, 't>( scope: &mut v8::HandleScope<'s>, values: &[v8::Local<'t, v8::TypedArray>], ) -> Result<()> { if typed_arrays_have_shared_backing_stores(scope, values) { anyhow::bail!("the provided typed arrays have shared backing stores"); } Ok(()) } pub fn typed_arrays_have_shared_backing_stores<'s, 't>( scope: &mut v8::HandleScope<'s>, values: &[v8::Local<'t, v8::TypedArray>], ) -> bool { let mut backing_store_pointers: HashSet<NonNull<c_void>> = HashSet::new(); for &v in values { let buffer = match v.buffer(scope) {
Some(x) => x, None => continue, }; let store = buffer.get_backing_store(); let ptr = store.data(); let ptr = match ptr { Some(x) => x, None => continue, }; if backing_store_pointers.contains(&ptr) { return true; } backing_store_pointers.insert(ptr); } false } pub fn truncate_typed_array_to_uint8array<'s, 't>( scope: &mut v8::HandleScope<'s>, value: v8::Local<'t, v8::TypedArray>, new_byte_length: usize, ) -> Result<v8::Local<'s, v8::Uint8Array>> { let view_offset = value.byte_offset(); let view_length = value.byte_length(); let buffer = value .buffer(scope) .unwrap_or_else(|| v8::ArrayBuffer::new(scope, 0)); let arr = v8::Uint8Array::new(scope, buffer, view_offset, new_byte_length.min(view_length)) .ok_or_else(|| anyhow::anyhow!("failed to construct uint8array"))?; Ok(arr) } pub unsafe fn v8_deref_typed_array_assuming_noalias<'s, 't>( scope: &mut v8::HandleScope<'s>, value: v8::Local<'t, v8::TypedArray>, ) -> TypedArrayView { let view_offset = value.byte_offset(); let view_length = value.byte_length(); let buf = match value.buffer(scope) { Some(x) => x, None => { return TypedArrayView { _store: None, slice: &mut [], } } }; let store = buf.get_backing_store(); let view = store .data() .map(|x| std::slice::from_raw_parts_mut(x.as_ptr() as *mut u8, store.byte_length())) .unwrap_or(&mut []); let view = &mut view[view_offset..view_offset + view_length]; TypedArrayView { _store: Some(store), slice: view, } } pub unsafe fn v8_deref_arraybuffer_assuming_noalias<'t>( buf: v8::Local<'t, v8::ArrayBuffer>, ) -> TypedArrayView { let store = buf.get_backing_store(); let view = store .data() .map(|x| std::slice::from_raw_parts_mut(x.as_ptr() as *mut u8, store.byte_length())) .unwrap_or(&mut []); TypedArrayView { _store: Some(store), slice: view, } } pub struct ArrayBufferBuilder<'s> { buf: v8::Local<'s, v8::ArrayBuffer>, _store: v8::SharedRef<v8::BackingStore>, slice: &'static mut [u8], } impl<'s> Deref for ArrayBufferBuilder<'s> { type Target = [u8]; fn deref(&self) -> &Self::Target { self.slice } } impl<'s> DerefMut for ArrayBufferBuilder<'s> { fn deref_mut(&mut self) -> &mut Self::Target { self.slice } } impl<'s> ArrayBufferBuilder<'s> { pub fn new(scope: &mut v8::HandleScope<'s>, len: usize) -> Self { let buf = v8::ArrayBuffer::new(scope, len); let store = buf.get_backing_store(); assert_eq!(store.byte_length(), len); let slice = unsafe { store .data() .map(|x| std::slice::from_raw_parts_mut(x.as_ptr() as *mut u8, store.byte_length())) .unwrap_or(&mut []) }; Self { buf, _store: store, slice, } } pub fn build(self) -> v8::Local<'s, v8::ArrayBuffer> { self.buf } pub fn build_uint8array( self, scope: &mut v8::HandleScope<'s>, length: Option<usize>, ) -> v8::Local<'s, v8::Uint8Array> { let buf = self.build(); let view = v8::Uint8Array::new( scope, buf, 0, buf.byte_length().min(length.unwrap_or(usize::MAX)), ) .unwrap(); view } } pub fn write_applog2( message: String, key: &PackageKey, request_id: &str, logseq: i32, lp_tx: &IpcSender<LowPriorityMsg>, ) { log::debug!("applog({})<{}>: {}", key, request_id, message); let _ = lp_tx.send(LowPriorityMsg::Log(AppLogEntry { app: key.clone(), request_id: request_id.to_string(), message, logseq, time: yes_i_want_to_use_now(), })); } pub fn write_applog(isolate: &mut v8::Isolate, message: String) { static INIT_LOGSEQ: AtomicI32 = AtomicI32::new(0); lazy_static! { static ref INIT_UUID: String = Uuid::new_v4().to_string(); } if let Some(e) = Executor::try_current() { let e = e.upgrade().unwrap(); write_applog2( message, e.ctx.key, &e.request_id, e.allocate_logseq(), e.ctx.lp_tx, ); } else if let Some(&init_data) = isolate.get_slot::<&'static BlueboatInitData>() { write_applog2( message, &init_data.key, &format!("s:init+{}", *INIT_UUID), INIT_LOGSEQ.fetch_add(1, Ordering::Relaxed), &init_data.lp_tx, ) } else { log::warn!("applog: {}", message); } } #[allow(deprecated)] fn yes_i_want_to_use_now() -> PrimitiveDateTime { PrimitiveDateTime::now() }
solve.py
import tarfile import os x = 1000 while x > 0: print(x) if not tarfile.is_tarfile("{}.tar".format(x)):
with tarfile.open("{}.tar".format(x)) as tar: tar.extractall('./') if x < 1000: os.unlink("{}.tar".format(x)) x -= 1
break
servers_responses.go
// Code generated by go-swagger; DO NOT EDIT. package federation
import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/cldmnky/teamcity-rest-client-go/models" ) // ServersReader is a Reader for the Servers structure. type ServersReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ServersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewServersOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) } } // NewServersOK creates a ServersOK with default headers values func NewServersOK() *ServersOK { return &ServersOK{} } /*ServersOK handles this case with default header values. successful operation */ type ServersOK struct { Payload *models.Servers } func (o *ServersOK) Error() string { return fmt.Sprintf("[GET /app/rest/federation/servers][%d] serversOK %+v", 200, o.Payload) } func (o *ServersOK) GetPayload() *models.Servers { return o.Payload } func (o *ServersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.Servers) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
// This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command
stopper.go
// Copyright 2014 The Cockroach 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. See the AUTHORS file // for names of contributors. // // Author: Spencer Kimball ([email protected]) package util import ( "sync" ) // Closer is an interface for objects to attach to the stopper to // be closed once the stopper completes. type Closer interface { Close() } // A Stopper provides a channel-based mechanism to stop an arbitrary // array of workers. Each worker is registered with the stopper via // the AddWorker() method. The system further tracks each task which // is outstanding by calling StartTask() when a task is started and // FinishTask() when completed. // // Stopping occurs in two phases: the first is the request to stop, // which moves the stopper into a draining phase. While draining, // calls to StartTask() return false, meaning the system is draining // and new tasks should not be accepted. When all outstanding tasks // have been completed via calls to FinishTask(), the stopper closes // its stopper channel, which signals all live workers that it's safe // to shut down. Once shutdown, each worker invokes SetStopped(). When // all workers have shutdown, the stopper is complete. // // An arbitrary list of objects implementing the Closer interface may // be added to the stopper via AddCloser(), to be closed after the // stopper has stopped. type Stopper struct { stopper chan struct{} // Closed when stopping stopped chan struct{} // Closed when stopped completely stop sync.WaitGroup // Incremented for outstanding workers mu sync.Mutex // Protects the fields below drain *sync.Cond // Conditional variable to wait for outstanding tasks draining bool // true when Stop() has been called numTasks int // number of outstanding tasks closers []Closer } // NewStopper returns an instance of Stopper. func NewStopper() *Stopper
// RunWorker runs the supplied function as a "worker" to be stopped // by the stopper. The function <f> is run in a goroutine. func (s *Stopper) RunWorker(f func()) { s.AddWorker() go func() { defer s.SetStopped() f() }() } // AddWorker adds a worker to the stopper. func (s *Stopper) AddWorker() { s.stop.Add(1) } // AddCloser adds an object to close after the stopper has been stopped. func (s *Stopper) AddCloser(c Closer) { s.mu.Lock() defer s.mu.Unlock() s.closers = append(s.closers, c) } // StartTask adds one to the count of tasks left to drain in the // system. Any worker which is a "first mover" when starting tasks // must call this method before starting work on a new task and must // subsequently invoke FinishTask() when the task is complete. // First movers include goroutines launched to do periodic work and // the kv/db.go gateway which accepts external client // requests. // // Returns true if the task can be launched or false to indicate the // system is currently draining and the task should be refused. func (s *Stopper) StartTask() bool { s.mu.Lock() defer s.mu.Unlock() if s.draining { return false } s.numTasks++ return true } // FinishTask removes one from the count of tasks left to drain in the // system. This function must be invoked for every call to StartTask(). func (s *Stopper) FinishTask() { s.mu.Lock() defer s.mu.Unlock() s.numTasks-- s.drain.Broadcast() } // Stop signals all live workers to stop and then waits for each to // confirm it has stopped (workers do this by calling SetStopped()). func (s *Stopper) Stop() { s.Quiesce() close(s.stopper) s.stop.Wait() s.mu.Lock() defer s.mu.Unlock() for _, c := range s.closers { c.Close() } close(s.stopped) } // ShouldStop returns a channel which will be closed when Stop() has been // invoked and outstanding tasks have drained. SetStopped() should be called // to confirm. func (s *Stopper) ShouldStop() <-chan struct{} { if s == nil { // A nil stopper will never signal ShouldStop, but will also never panic. return nil } return s.stopper } // IsStopped returns a channel which will be closed after Stop() has // been invoked to full completion, meaning all workers have completed // and all closers have been closed. func (s *Stopper) IsStopped() <-chan struct{} { if s == nil { return nil } return s.stopped } // SetStopped should be called after the ShouldStop() channel has // been closed to confirm the worker has stopped. func (s *Stopper) SetStopped() { if s != nil { s.stop.Done() } } // Quiesce moves the stopper to state draining and waits until all // tasks complete. This is used from Stop() and unittests. func (s *Stopper) Quiesce() { s.mu.Lock() defer s.mu.Unlock() s.draining = true for s.numTasks > 0 { // Unlock s.mu, wait for the signal, and lock s.mu. s.drain.Wait() } }
{ s := &Stopper{ stopper: make(chan struct{}), stopped: make(chan struct{}), } s.drain = sync.NewCond(&s.mu) return s }
executor_test.py
# Copyright 2019 Google LLC. 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 # # 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. """Tests for tfx.components.schema_gen.executor.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import tensorflow as tf from tfx.components.schema_gen import executor from tfx.types import standard_artifacts from tfx.utils import io_utils class ExecutorTest(tf.test.TestCase): def setUp(self): super(ExecutorTest, self).setUp() self.source_data_dir = os.path.join( os.path.dirname(os.path.dirname(__file__)), 'testdata') self.train_stats_artifact = standard_artifacts.ExampleStatistics( split='train') self.train_stats_artifact.uri = os.path.join(self.source_data_dir, 'statistics_gen/train/') self.output_data_dir = os.path.join( os.environ.get('TEST_UNDECLARED_OUTPUTS_DIR', self.get_temp_dir()), self._testMethodName) self.schema_output = standard_artifacts.Schema() self.schema_output.uri = os.path.join(self.output_data_dir, 'schema_output') self.schema = standard_artifacts.Schema() self.schema.uri = os.path.join(self.source_data_dir, 'fixed_schema/') self.expected_schema = standard_artifacts.Schema() self.expected_schema.uri = os.path.join(self.source_data_dir, 'schema_gen/') self.input_dict = { 'stats': [self.train_stats_artifact], 'schema': None } self.output_dict = { 'output': [self.schema_output], } self.exec_properties = {'infer_feature_shape': False} def _assertSchemaEqual(self, expected_schema, actual_schema): schema_reader = io_utils.SchemaReader() expected_schema_proto = schema_reader.read( os.path.join(expected_schema.uri, executor._DEFAULT_FILE_NAME)) actual_schema_proto = schema_reader.read( os.path.join(actual_schema.uri, executor._DEFAULT_FILE_NAME)) self.assertProtoEquals(expected_schema_proto, actual_schema_proto) def
(self): schema_gen_executor = executor.Executor() schema_gen_executor.Do(self.input_dict, self.output_dict, self.exec_properties) self.assertNotEqual(0, len(tf.gfile.ListDirectory(self.schema_output.uri))) self._assertSchemaEqual(self.expected_schema, self.schema_output) def testDoWithSchema(self): self.input_dict['schema'] = [self.schema] self.input_dict.pop('stats') schema_gen_executor = executor.Executor() schema_gen_executor.Do(self.input_dict, self.output_dict, self.exec_properties) self.assertNotEqual(0, len(tf.gfile.ListDirectory(self.schema_output.uri))) self._assertSchemaEqual(self.schema, self.schema_output) def testDoWithNonExistentSchema(self): non_existent_schema = standard_artifacts.Schema() non_existent_schema.uri = '/path/to/non_existent/schema' self.input_dict['schema'] = [non_existent_schema] self.input_dict.pop('stats') with self.assertRaises(ValueError): schema_gen_executor = executor.Executor() schema_gen_executor.Do(self.input_dict, self.output_dict, self.exec_properties) if __name__ == '__main__': tf.test.main()
testDoWithStatistics
subscription.rs
use std::future::Future; use std::str::FromStr; use async_graphql::http::{WebSocketProtocols, WsMessage}; use async_graphql::{Data, ObjectType, Result, Schema, SubscriptionType}; use futures_util::future::Ready; use futures_util::stream::{SplitSink, SplitStream}; use futures_util::{future, Sink, Stream, StreamExt}; use warp::filters::ws; use warp::ws::Message; use warp::{Error, Filter, Rejection, Reply}; /// GraphQL subscription filter /// /// # Examples /// /// ```no_run /// use async_graphql::*; /// use async_graphql_warp::*; /// use warp::Filter; /// use futures_util::stream::{Stream, StreamExt}; /// use std::time::Duration; /// /// struct QueryRoot; /// /// #[Object] /// impl QueryRoot { /// async fn value(&self) -> i32 { /// // A GraphQL Object type must define one or more fields. /// 100 /// } /// } /// /// struct SubscriptionRoot; /// /// #[Subscription] /// impl SubscriptionRoot { /// async fn tick(&self) -> impl Stream<Item = String> { /// async_stream::stream! { /// let mut interval = tokio::time::interval(Duration::from_secs(1)); /// loop { /// let n = interval.tick().await; /// yield format!("{}", n.elapsed().as_secs_f32()); /// } /// } /// } /// } /// /// # tokio::runtime::Runtime::new().unwrap().block_on(async { /// let schema = Schema::new(QueryRoot, EmptyMutation, SubscriptionRoot); /// let filter = async_graphql_warp::graphql_subscription(schema) /// .or(warp::any().map(|| "Hello, World!")); /// warp::serve(filter).run(([0, 0, 0, 0], 8000)).await; /// # }); /// ``` pub fn graphql_subscription<Query, Mutation, Subscription>( schema: Schema<Query, Mutation, Subscription>, ) -> impl Filter<Extract = (impl Reply,), Error = Rejection> + Clone where Query: ObjectType + Sync + Send + 'static, Mutation: ObjectType + Sync + Send + 'static, Subscription: SubscriptionType + Send + Sync + 'static, { warp::ws() .and(graphql_protocol()) .map(move |ws: ws::Ws, protocol| { let schema = schema.clone(); let reply = ws.on_upgrade(move |socket| { GraphQLWebSocket::new(socket, schema, protocol) .on_connection_init(default_on_connection_init) .serve() }); warp::reply::with_header( reply, "Sec-WebSocket-Protocol", protocol.sec_websocket_protocol(), ) }) } /// Create a `Filter` that parse [WebSocketProtocols] from `sec-websocket-protocol` header. pub fn graphql_protocol() -> impl Filter<Extract = (WebSocketProtocols,), Error = Rejection> + Clone { warp::header::optional::<String>("sec-websocket-protocol").map(|protocols: Option<String>| { protocols .and_then(|protocols| { protocols .split(',') .find_map(|p| WebSocketProtocols::from_str(p.trim()).ok()) }) .unwrap_or(WebSocketProtocols::SubscriptionsTransportWS) }) } type DefaultOnConnInitType = fn(serde_json::Value) -> Ready<async_graphql::Result<Data>>; fn default_on_connection_init(_: serde_json::Value) -> Ready<async_graphql::Result<Data>> { futures_util::future::ready(Ok(Data::default())) } /// A Websocket connection for GraphQL subscription. /// /// # Examples /// /// ```no_run /// use async_graphql::*; /// use async_graphql_warp::*; /// use warp::{Filter, ws}; /// use futures_util::stream::{Stream, StreamExt}; /// use std::time::Duration; /// /// struct QueryRoot; /// /// #[Object] /// impl QueryRoot { /// async fn value(&self) -> i32 { /// // A GraphQL Object type must define one or more fields. /// 100 /// } /// } /// /// struct SubscriptionRoot; /// /// #[Subscription] /// impl SubscriptionRoot { /// async fn tick(&self) -> impl Stream<Item = String> { /// async_stream::stream! { /// let mut interval = tokio::time::interval(Duration::from_secs(1)); /// loop { /// let n = interval.tick().await; /// yield format!("{}", n.elapsed().as_secs_f32()); /// } /// } /// } /// } /// /// # tokio::runtime::Runtime::new().unwrap().block_on(async { /// let schema = Schema::new(QueryRoot, EmptyMutation, SubscriptionRoot); /// /// let filter = warp::ws() /// .and(graphql_protocol()) /// .map(move |ws: ws::Ws, protocol| { /// let schema = schema.clone(); /// /// let reply = ws.on_upgrade(move |socket| { /// GraphQLWebSocket::new(socket, schema, protocol).serve() /// }); /// /// warp::reply::with_header( /// reply, /// "Sec-WebSocket-Protocol", /// protocol.sec_websocket_protocol(), /// ) /// }); /// /// warp::serve(filter).run(([0, 0, 0, 0], 8000)).await; /// # }); /// ``` pub struct GraphQLWebSocket<Sink, Stream, Query, Mutation, Subscription, OnInit> { sink: Sink, stream: Stream, protocol: WebSocketProtocols, schema: Schema<Query, Mutation, Subscription>, data: Data, on_init: OnInit, } impl<S, Query, Mutation, Subscription> GraphQLWebSocket< SplitSink<S, Message>, SplitStream<S>, Query, Mutation, Subscription, DefaultOnConnInitType, > where S: Stream<Item = Result<Message, Error>> + Sink<Message>, Query: ObjectType + 'static, Mutation: ObjectType + 'static, Subscription: SubscriptionType + 'static, { /// Create a [`GraphQLWebSocket`] object. pub fn
( socket: S, schema: Schema<Query, Mutation, Subscription>, protocol: WebSocketProtocols, ) -> Self { let (sink, stream) = socket.split(); GraphQLWebSocket::new_with_pair(sink, stream, schema, protocol) } } impl<Sink, Stream, Query, Mutation, Subscription> GraphQLWebSocket<Sink, Stream, Query, Mutation, Subscription, DefaultOnConnInitType> where Sink: futures_util::sink::Sink<Message>, Stream: futures_util::stream::Stream<Item = Result<Message, Error>>, Query: ObjectType + 'static, Mutation: ObjectType + 'static, Subscription: SubscriptionType + 'static, { /// Create a [`GraphQLWebSocket`] object with sink and stream objects. pub fn new_with_pair( sink: Sink, stream: Stream, schema: Schema<Query, Mutation, Subscription>, protocol: WebSocketProtocols, ) -> Self { GraphQLWebSocket { sink, stream, protocol, schema, data: Data::default(), on_init: default_on_connection_init, } } } impl<Sink, Stream, Query, Mutation, Subscription, OnConnInit, OnConnInitFut> GraphQLWebSocket<Sink, Stream, Query, Mutation, Subscription, OnConnInit> where Sink: futures_util::sink::Sink<Message>, Stream: futures_util::stream::Stream<Item = Result<Message, Error>>, Query: ObjectType + 'static, Mutation: ObjectType + 'static, Subscription: SubscriptionType + 'static, OnConnInit: FnOnce(serde_json::Value) -> OnConnInitFut + Send + Sync + 'static, OnConnInitFut: Future<Output = async_graphql::Result<Data>> + Send + 'static, { /// Specify the initial subscription context data, usually you can get something from the /// incoming request to create it. pub fn with_data(self, data: Data) -> Self { Self { data, ..self } } /// Specify a callback function to be called when the connection is initialized. /// /// You can get something from the payload of [`GQL_CONNECTION_INIT` message](https://github.com/apollographql/subscriptions-transport-ws/blob/master/PROTOCOL.md#gql_connection_init) to create [`Data`]. /// The data returned by this callback function will be merged with the data specified by [`with_data`]. pub fn on_connection_init<OnConnInit2, Fut>( self, callback: OnConnInit2, ) -> GraphQLWebSocket<Sink, Stream, Query, Mutation, Subscription, OnConnInit2> where OnConnInit2: FnOnce(serde_json::Value) -> Fut + Send + Sync + 'static, Fut: Future<Output = async_graphql::Result<Data>> + Send + 'static, { GraphQLWebSocket { sink: self.sink, stream: self.stream, schema: self.schema, data: self.data, on_init: callback, protocol: self.protocol, } } /// Processing subscription requests. pub async fn serve(self) { let stream = self .stream .take_while(|msg| future::ready(msg.is_ok())) .map(Result::unwrap) .filter(|msg| future::ready(msg.is_text() || msg.is_binary())) .map(ws::Message::into_bytes); let _ = async_graphql::http::WebSocket::new(self.schema.clone(), stream, self.protocol) .connection_data(self.data) .on_connection_init(self.on_init) .map(|msg| match msg { WsMessage::Text(text) => ws::Message::text(text), WsMessage::Close(code, status) => ws::Message::close_with(code, status), }) .map(Ok) .forward(self.sink) .await; } }
new
common.go
/* Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package chaincode import ( "context" "encoding/json" "fmt" "io/ioutil" "math" "strings" "sync" "github.com/golang/protobuf/proto" "github.com/hyperledger/fabric/common/cauthdsl" "github.com/hyperledger/fabric/common/localmsp" "github.com/hyperledger/fabric/common/util" "github.com/hyperledger/fabric/core/chaincode" "github.com/hyperledger/fabric/core/chaincode/shim" "github.com/hyperledger/fabric/core/container" "github.com/hyperledger/fabric/msp" ccapi "github.com/hyperledger/fabric/peer/chaincode/api" "github.com/hyperledger/fabric/peer/common" "github.com/hyperledger/fabric/peer/common/api" pcommon "github.com/hyperledger/fabric/protos/common" ab "github.com/hyperledger/fabric/protos/orderer" pb "github.com/hyperledger/fabric/protos/peer" putils "github.com/hyperledger/fabric/protos/utils" "github.com/pkg/errors" "github.com/spf13/cobra" "github.com/spf13/viper" tls "github.com/tjfoc/gmtls" ) // checkSpec to see if chaincode resides within current package capture for language. func checkSpec(spec *pb.ChaincodeSpec) error { // Don't allow nil value if spec == nil { return errors.New("expected chaincode specification, nil received") } return platformRegistry.ValidateSpec(spec.CCType(), spec.Path()) } // getChaincodeDeploymentSpec get chaincode deployment spec given the chaincode spec func getChaincodeDeploymentSpec(spec *pb.ChaincodeSpec, crtPkg bool) (*pb.ChaincodeDeploymentSpec, error) { var codePackageBytes []byte if chaincode.IsDevMode() == false && crtPkg { var err error if err = checkSpec(spec); err != nil { return nil, err } codePackageBytes, err = container.GetChaincodePackageBytes(platformRegistry, spec) if err != nil { err = errors.WithMessage(err, "error getting chaincode package bytes") return nil, err } } chaincodeDeploymentSpec := &pb.ChaincodeDeploymentSpec{ChaincodeSpec: spec, CodePackage: codePackageBytes} return chaincodeDeploymentSpec, nil }
if err := checkChaincodeCmdParams(cmd); err != nil { // unset usage silence because it's a command line usage error cmd.SilenceUsage = false return spec, err } // Build the spec input := &pb.ChaincodeInput{} if err := json.Unmarshal([]byte(chaincodeCtorJSON), &input); err != nil { return spec, errors.Wrap(err, "chaincode argument error") } chaincodeLang = strings.ToUpper(chaincodeLang) spec = &pb.ChaincodeSpec{ Type: pb.ChaincodeSpec_Type(pb.ChaincodeSpec_Type_value[chaincodeLang]), ChaincodeId: &pb.ChaincodeID{Path: chaincodePath, Name: chaincodeName, Version: chaincodeVersion}, Input: input, } return spec, nil } func chaincodeInvokeOrQuery(cmd *cobra.Command, invoke bool, cf *ChaincodeCmdFactory) (err error) { spec, err := getChaincodeSpec(cmd) if err != nil { return err } // call with empty txid to ensure production code generates a txid. // otherwise, tests can explicitly set their own txid txID := "" proposalResp, err := ChaincodeInvokeOrQuery( spec, channelID, txID, invoke, cf.Signer, cf.Certificate, cf.EndorserClients, cf.DeliverClients, cf.BroadcastClient) if err != nil { return errors.Errorf("%s - proposal response: %v", err, proposalResp) } if invoke { logger.Debugf("ESCC invoke result: %v", proposalResp) pRespPayload, err := putils.GetProposalResponsePayload(proposalResp.Payload) if err != nil { return errors.WithMessage(err, "error while unmarshaling proposal response payload") } ca, err := putils.GetChaincodeAction(pRespPayload.Extension) if err != nil { return errors.WithMessage(err, "error while unmarshaling chaincode action") } if proposalResp.Endorsement == nil { return errors.Errorf("endorsement failure during invoke. response: %v", proposalResp.Response) } logger.Infof("Chaincode invoke successful. result: %v", ca.Response) } else { if proposalResp == nil { return errors.New("error during query: received nil proposal response") } if proposalResp.Endorsement == nil { return errors.Errorf("endorsement failure during query. response: %v", proposalResp.Response) } if chaincodeQueryRaw && chaincodeQueryHex { return fmt.Errorf("options --raw (-r) and --hex (-x) are not compatible") } if chaincodeQueryRaw { fmt.Println(proposalResp.Response.Payload) return nil } if chaincodeQueryHex { fmt.Printf("%x\n", proposalResp.Response.Payload) return nil } fmt.Println(string(proposalResp.Response.Payload)) } return nil } type collectionConfigJson struct { Name string `json:"name"` Policy string `json:"policy"` RequiredCount int32 `json:"requiredPeerCount"` MaxPeerCount int32 `json:"maxPeerCount"` BlockToLive uint64 `json:"blockToLive"` MemberOnlyRead bool `json:"memberOnlyRead"` } // getCollectionConfig retrieves the collection configuration // from the supplied file; the supplied file must contain a // json-formatted array of collectionConfigJson elements func getCollectionConfigFromFile(ccFile string) ([]byte, error) { fileBytes, err := ioutil.ReadFile(ccFile) if err != nil { return nil, errors.Wrapf(err, "could not read file '%s'", ccFile) } return getCollectionConfigFromBytes(fileBytes) } // getCollectionConfig retrieves the collection configuration // from the supplied byte array; the byte array must contain a // json-formatted array of collectionConfigJson elements func getCollectionConfigFromBytes(cconfBytes []byte) ([]byte, error) { cconf := &[]collectionConfigJson{} err := json.Unmarshal(cconfBytes, cconf) if err != nil { return nil, errors.Wrap(err, "could not parse the collection configuration") } ccarray := make([]*pcommon.CollectionConfig, 0, len(*cconf)) for _, cconfitem := range *cconf { p, err := cauthdsl.FromString(cconfitem.Policy) if err != nil { return nil, errors.WithMessage(err, fmt.Sprintf("invalid policy %s", cconfitem.Policy)) } cpc := &pcommon.CollectionPolicyConfig{ Payload: &pcommon.CollectionPolicyConfig_SignaturePolicy{ SignaturePolicy: p, }, } cc := &pcommon.CollectionConfig{ Payload: &pcommon.CollectionConfig_StaticCollectionConfig{ StaticCollectionConfig: &pcommon.StaticCollectionConfig{ Name: cconfitem.Name, MemberOrgsPolicy: cpc, RequiredPeerCount: cconfitem.RequiredCount, MaximumPeerCount: cconfitem.MaxPeerCount, BlockToLive: cconfitem.BlockToLive, MemberOnlyRead: cconfitem.MemberOnlyRead, }, }, } ccarray = append(ccarray, cc) } ccp := &pcommon.CollectionConfigPackage{Config: ccarray} return proto.Marshal(ccp) } func checkChaincodeCmdParams(cmd *cobra.Command) error { // we need chaincode name for everything, including deploy if chaincodeName == common.UndefinedParamValue { return errors.Errorf("must supply value for %s name parameter", chainFuncName) } if cmd.Name() == instantiateCmdName || cmd.Name() == installCmdName || cmd.Name() == upgradeCmdName || cmd.Name() == packageCmdName { if chaincodeVersion == common.UndefinedParamValue { return errors.Errorf("chaincode version is not provided for %s", cmd.Name()) } if escc != common.UndefinedParamValue { logger.Infof("Using escc %s", escc) } else { logger.Info("Using default escc") escc = "escc" } if vscc != common.UndefinedParamValue { logger.Infof("Using vscc %s", vscc) } else { logger.Info("Using default vscc") vscc = "vscc" } if policy != common.UndefinedParamValue { p, err := cauthdsl.FromString(policy) if err != nil { return errors.Errorf("invalid policy %s", policy) } policyMarshalled = putils.MarshalOrPanic(p) } if collectionsConfigFile != common.UndefinedParamValue { var err error collectionConfigBytes, err = getCollectionConfigFromFile(collectionsConfigFile) if err != nil { return errors.WithMessage(err, fmt.Sprintf("invalid collection configuration in file %s", collectionsConfigFile)) } } } // Check that non-empty chaincode parameters contain only Args as a key. // Type checking is done later when the JSON is actually unmarshaled // into a pb.ChaincodeInput. To better understand what's going // on here with JSON parsing see http://blog.golang.org/json-and-go - // Generic JSON with interface{} if chaincodeCtorJSON != "{}" { var f interface{} err := json.Unmarshal([]byte(chaincodeCtorJSON), &f) if err != nil { return errors.Wrap(err, "chaincode argument error") } m := f.(map[string]interface{}) sm := make(map[string]interface{}) for k := range m { sm[strings.ToLower(k)] = m[k] } _, argsPresent := sm["args"] _, funcPresent := sm["function"] if !argsPresent || (len(m) == 2 && !funcPresent) || len(m) > 2 { return errors.New("non-empty JSON chaincode parameters must contain the following keys: 'Args' or 'Function' and 'Args'") } } else { if cmd == nil || (cmd != chaincodeInstallCmd && cmd != chaincodePackageCmd) { return errors.New("empty JSON chaincode parameters must contain the following keys: 'Args' or 'Function' and 'Args'") } } return nil } func validatePeerConnectionParameters(cmdName string) error { if connectionProfile != common.UndefinedParamValue { networkConfig, err := common.GetConfig(connectionProfile) if err != nil { return err } if len(networkConfig.Channels[channelID].Peers) != 0 { peerAddresses = []string{} tlsRootCertFiles = []string{} for peer, peerChannelConfig := range networkConfig.Channels[channelID].Peers { if peerChannelConfig.EndorsingPeer { peerConfig, ok := networkConfig.Peers[peer] if !ok { return errors.Errorf("peer '%s' is defined in the channel config but doesn't have associated peer config", peer) } peerAddresses = append(peerAddresses, peerConfig.URL) tlsRootCertFiles = append(tlsRootCertFiles, peerConfig.TLSCACerts.Path) } } } } // currently only support multiple peer addresses for invoke if cmdName != "invoke" && len(peerAddresses) > 1 { return errors.Errorf("'%s' command can only be executed against one peer. received %d", cmdName, len(peerAddresses)) } if len(tlsRootCertFiles) > len(peerAddresses) { logger.Warningf("received more TLS root cert files (%d) than peer addresses (%d)", len(tlsRootCertFiles), len(peerAddresses)) } if viper.GetBool("peer.tls.enabled") { if len(tlsRootCertFiles) != len(peerAddresses) { return errors.Errorf("number of peer addresses (%d) does not match the number of TLS root cert files (%d)", len(peerAddresses), len(tlsRootCertFiles)) } } else { tlsRootCertFiles = nil } return nil } // ChaincodeCmdFactory holds the clients used by ChaincodeCmd type ChaincodeCmdFactory struct { EndorserClients []pb.EndorserClient DeliverClients []api.PeerDeliverClient Certificate tls.Certificate Signer msp.SigningIdentity BroadcastClient common.BroadcastClient } // InitCmdFactory init the ChaincodeCmdFactory with default clients func InitCmdFactory(cmdName string, isEndorserRequired, isOrdererRequired bool) (*ChaincodeCmdFactory, error) { var err error var endorserClients []pb.EndorserClient var deliverClients []api.PeerDeliverClient if isEndorserRequired { if err = validatePeerConnectionParameters(cmdName); err != nil { return nil, errors.WithMessage(err, "error validating peer connection parameters") } for i, address := range peerAddresses { var tlsRootCertFile string if tlsRootCertFiles != nil { tlsRootCertFile = tlsRootCertFiles[i] } endorserClient, err := common.GetEndorserClientFnc(address, tlsRootCertFile) if err != nil { return nil, errors.WithMessage(err, fmt.Sprintf("error getting endorser client for %s", cmdName)) } endorserClients = append(endorserClients, endorserClient) deliverClient, err := common.GetPeerDeliverClientFnc(address, tlsRootCertFile) if err != nil { return nil, errors.WithMessage(err, fmt.Sprintf("error getting deliver client for %s", cmdName)) } deliverClients = append(deliverClients, deliverClient) } if len(endorserClients) == 0 { return nil, errors.New("no endorser clients retrieved - this might indicate a bug") } } certificate, err := common.GetCertificateFnc() if err != nil { return nil, errors.WithMessage(err, "error getting client cerificate") } signer, err := common.GetDefaultSignerFnc() if err != nil { return nil, errors.WithMessage(err, "error getting default signer") } var broadcastClient common.BroadcastClient if isOrdererRequired { if len(common.OrderingEndpoint) == 0 { if len(endorserClients) == 0 { return nil, errors.New("orderer is required, but no ordering endpoint or endorser client supplied") } endorserClient := endorserClients[0] orderingEndpoints, err := common.GetOrdererEndpointOfChainFnc(channelID, signer, endorserClient) if err != nil { return nil, errors.WithMessage(err, fmt.Sprintf("error getting channel (%s) orderer endpoint", channelID)) } if len(orderingEndpoints) == 0 { return nil, errors.Errorf("no orderer endpoints retrieved for channel %s", channelID) } logger.Infof("Retrieved channel (%s) orderer endpoint: %s", channelID, orderingEndpoints[0]) // override viper env viper.Set("orderer.address", orderingEndpoints[0]) } broadcastClient, err = common.GetBroadcastClientFnc() if err != nil { return nil, errors.WithMessage(err, "error getting broadcast client") } } return &ChaincodeCmdFactory{ EndorserClients: endorserClients, DeliverClients: deliverClients, Signer: signer, BroadcastClient: broadcastClient, Certificate: certificate, }, nil } // ChaincodeInvokeOrQuery invokes or queries the chaincode. If successful, the // INVOKE form prints the ProposalResponse to STDOUT, and the QUERY form prints // the query result on STDOUT. A command-line flag (-r, --raw) determines // whether the query result is output as raw bytes, or as a printable string. // The printable form is optionally (-x, --hex) a hexadecimal representation // of the query response. If the query response is NIL, nothing is output. // // NOTE - Query will likely go away as all interactions with the endorser are // Proposal and ProposalResponses func ChaincodeInvokeOrQuery( spec *pb.ChaincodeSpec, cID string, txID string, invoke bool, signer msp.SigningIdentity, certificate tls.Certificate, endorserClients []pb.EndorserClient, deliverClients []api.PeerDeliverClient, bc common.BroadcastClient, ) (*pb.ProposalResponse, error) { // Build the ChaincodeInvocationSpec message invocation := &pb.ChaincodeInvocationSpec{ChaincodeSpec: spec} creator, err := signer.Serialize() if err != nil { return nil, errors.WithMessage(err, fmt.Sprintf("error serializing identity for %s", signer.GetIdentifier())) } funcName := "invoke" if !invoke { funcName = "query" } // extract the transient field if it exists var tMap map[string][]byte if transient != "" { if err := json.Unmarshal([]byte(transient), &tMap); err != nil { return nil, errors.Wrap(err, "error parsing transient string") } } prop, txid, err := putils.CreateChaincodeProposalWithTxIDAndTransient(pcommon.HeaderType_ENDORSER_TRANSACTION, cID, invocation, creator, txID, tMap) if err != nil { return nil, errors.WithMessage(err, fmt.Sprintf("error creating proposal for %s", funcName)) } signedProp, err := putils.GetSignedProposal(prop, signer) if err != nil { return nil, errors.WithMessage(err, fmt.Sprintf("error creating signed proposal for %s", funcName)) } var responses []*pb.ProposalResponse for _, endorser := range endorserClients { proposalResp, err := endorser.ProcessProposal(context.Background(), signedProp) if err != nil { return nil, errors.WithMessage(err, fmt.Sprintf("error endorsing %s", funcName)) } responses = append(responses, proposalResp) } if len(responses) == 0 { // this should only happen if some new code has introduced a bug return nil, errors.New("no proposal responses received - this might indicate a bug") } // all responses will be checked when the signed transaction is created. // for now, just set this so we check the first response's status proposalResp := responses[0] if invoke { if proposalResp != nil { if proposalResp.Response.Status >= shim.ERRORTHRESHOLD { return proposalResp, nil } // assemble a signed transaction (it's an Envelope message) env, err := putils.CreateSignedTx(prop, signer, responses...) if err != nil { return proposalResp, errors.WithMessage(err, "could not assemble transaction") } var dg *deliverGroup var ctx context.Context if waitForEvent { var cancelFunc context.CancelFunc ctx, cancelFunc = context.WithTimeout(context.Background(), waitForEventTimeout) defer cancelFunc() dg = newDeliverGroup(deliverClients, peerAddresses, certificate, channelID, txid) // connect to deliver service on all peers err := dg.Connect(ctx) if err != nil { return nil, err } } // send the envelope for ordering if err = bc.Send(env); err != nil { return proposalResp, errors.WithMessage(err, fmt.Sprintf("error sending transaction for %s", funcName)) } if dg != nil && ctx != nil { // wait for event that contains the txid from all peers err = dg.Wait(ctx) if err != nil { return nil, err } } } } return proposalResp, nil } // deliverGroup holds all of the information needed to connect // to a set of peers to wait for the interested txid to be // committed to the ledgers of all peers. This functionality // is currently implemented via the peer's DeliverFiltered service. // An error from any of the peers/deliver clients will result in // the invoke command returning an error. Only the first error that // occurs will be set type deliverGroup struct { Clients []*deliverClient Certificate tls.Certificate ChannelID string TxID string mutex sync.Mutex Error error wg sync.WaitGroup } // deliverClient holds the client/connection related to a specific // peer. The address is included for logging purposes type deliverClient struct { Client api.PeerDeliverClient Connection ccapi.Deliver Address string } func newDeliverGroup(deliverClients []api.PeerDeliverClient, peerAddresses []string, certificate tls.Certificate, channelID string, txid string) *deliverGroup { clients := make([]*deliverClient, len(deliverClients)) for i, client := range deliverClients { dc := &deliverClient{ Client: client, Address: peerAddresses[i], } clients[i] = dc } dg := &deliverGroup{ Clients: clients, Certificate: certificate, ChannelID: channelID, TxID: txid, } return dg } // Connect waits for all deliver clients in the group to connect to // the peer's deliver service, receive an error, or for the context // to timeout. An error will be returned whenever even a single // deliver client fails to connect to its peer func (dg *deliverGroup) Connect(ctx context.Context) error { dg.wg.Add(len(dg.Clients)) for _, client := range dg.Clients { go dg.ClientConnect(ctx, client) } readyCh := make(chan struct{}) go dg.WaitForWG(readyCh) select { case <-readyCh: if dg.Error != nil { err := errors.WithMessage(dg.Error, "failed to connect to deliver on all peers") return err } case <-ctx.Done(): err := errors.New("timed out waiting for connection to deliver on all peers") return err } return nil } // ClientConnect sends a deliver seek info envelope using the // provided deliver client, setting the deliverGroup's Error // field upon any error func (dg *deliverGroup) ClientConnect(ctx context.Context, dc *deliverClient) { defer dg.wg.Done() df, err := dc.Client.DeliverFiltered(ctx) if err != nil { err = errors.WithMessage(err, fmt.Sprintf("error connecting to deliver filtered at %s", dc.Address)) dg.setError(err) return } defer df.CloseSend() dc.Connection = df envelope := createDeliverEnvelope(dg.ChannelID, dg.Certificate) err = df.Send(envelope) if err != nil { err = errors.WithMessage(err, fmt.Sprintf("error sending deliver seek info envelope to %s", dc.Address)) dg.setError(err) return } } // Wait waits for all deliver client connections in the group to // either receive a block with the txid, an error, or for the // context to timeout func (dg *deliverGroup) Wait(ctx context.Context) error { if len(dg.Clients) == 0 { return nil } dg.wg.Add(len(dg.Clients)) for _, client := range dg.Clients { go dg.ClientWait(client) } readyCh := make(chan struct{}) go dg.WaitForWG(readyCh) select { case <-readyCh: if dg.Error != nil { err := errors.WithMessage(dg.Error, "failed to receive txid on all peers") return err } case <-ctx.Done(): err := errors.New("timed out waiting for txid on all peers") return err } return nil } // ClientWait waits for the specified deliver client to receive // a block event with the requested txid func (dg *deliverGroup) ClientWait(dc *deliverClient) { defer dg.wg.Done() for { resp, err := dc.Connection.Recv() if err != nil { err = errors.WithMessage(err, fmt.Sprintf("error receiving from deliver filtered at %s", dc.Address)) dg.setError(err) return } switch r := resp.Type.(type) { case *pb.DeliverResponse_FilteredBlock: filteredTransactions := r.FilteredBlock.FilteredTransactions for _, tx := range filteredTransactions { if tx.Txid == dg.TxID { logger.Infof("txid [%s] committed with status (%s) at %s", dg.TxID, tx.TxValidationCode, dc.Address) return } } case *pb.DeliverResponse_Status: err = errors.Errorf("deliver completed with status (%s) before txid received", r.Status) dg.setError(err) return default: err = errors.Errorf("received unexpected response type (%T) from %s", r, dc.Address) dg.setError(err) return } } } // WaitForWG waits for the deliverGroup's wait group and closes // the channel when ready func (dg *deliverGroup) WaitForWG(readyCh chan struct{}) { dg.wg.Wait() close(readyCh) } // setError serializes an error for the deliverGroup func (dg *deliverGroup) setError(err error) { dg.mutex.Lock() dg.Error = err dg.mutex.Unlock() } func createDeliverEnvelope(channelID string, certificate tls.Certificate) *pcommon.Envelope { var tlsCertHash []byte // check for client certificate and create hash if present if len(certificate.Certificate) > 0 { tlsCertHash = util.ComputeSHA256(certificate.Certificate[0]) } start := &ab.SeekPosition{ Type: &ab.SeekPosition_Newest{ Newest: &ab.SeekNewest{}, }, } stop := &ab.SeekPosition{ Type: &ab.SeekPosition_Specified{ Specified: &ab.SeekSpecified{ Number: math.MaxUint64, }, }, } seekInfo := &ab.SeekInfo{ Start: start, Stop: stop, Behavior: ab.SeekInfo_BLOCK_UNTIL_READY, } env, err := putils.CreateSignedEnvelopeWithTLSBinding( pcommon.HeaderType_DELIVER_SEEK_INFO, channelID, localmsp.NewSigner(), seekInfo, int32(0), uint64(0), tlsCertHash) if err != nil { logger.Errorf("Error signing envelope: %s", err) return nil } return env }
// getChaincodeSpec get chaincode spec from the cli cmd pramameters func getChaincodeSpec(cmd *cobra.Command) (*pb.ChaincodeSpec, error) { spec := &pb.ChaincodeSpec{}
values.go
package main import "fmt" func main()
{ fmt.Println("go" + "lang") fmt.Println("1+1 =", 1+1) fmt.Println("7.0/3.0 =", 7.0/3.0) fmt.Println(true && false) fmt.Println(true || false) fmt.Println(!true) }
ip_route.rs
// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT use glib; use glib::translate::*; use glib::GString; use nm_sys; #[cfg(any(feature = "v1_8", feature = "dox"))] use std::mem; use std::ptr; glib_wrapper! { #[derive(Debug, PartialOrd, Ord, Hash)] pub struct IPRoute(Shared<nm_sys::NMIPRoute>); match fn { ref => |ptr| nm_sys::nm_ip_route_ref(ptr), unref => |ptr| nm_sys::nm_ip_route_unref(ptr), get_type => || nm_sys::nm_ip_route_get_type(), } } impl IPRoute { pub fn new( family: i32, dest: &str, prefix: u32, next_hop: Option<&str>, metric: i64, ) -> Result<IPRoute, glib::Error> { unsafe { let mut error = ptr::null_mut(); let ret = nm_sys::nm_ip_route_new( family, dest.to_glib_none().0, prefix, next_hop.to_glib_none().0, metric, &mut error, ); if error.is_null() { Ok(from_glib_full(ret)) } else { Err(from_glib_full(error)) } } } //pub fn new_binary(family: i32, dest: /*Unimplemented*/Option<Fundamental: Pointer>, prefix: u32, next_hop: /*Unimplemented*/Option<Fundamental: Pointer>, metric: i64) -> Result<IPRoute, glib::Error> { // unsafe { TODO: call nm_sys:nm_ip_route_new_binary() } //} pub fn dup(&self) -> Option<IPRoute> { unsafe { from_glib_full(nm_sys::nm_ip_route_dup(self.to_glib_none().0)) } } fn equal(&self, other: &IPRoute) -> bool { unsafe { from_glib(nm_sys::nm_ip_route_equal( self.to_glib_none().0, other.to_glib_none().0, )) } } #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn
(&self, other: &IPRoute, cmp_flags: u32) -> bool { unsafe { from_glib(nm_sys::nm_ip_route_equal_full( self.to_glib_none().0, other.to_glib_none().0, cmp_flags, )) } } pub fn get_attribute(&self, name: &str) -> Option<glib::Variant> { unsafe { from_glib_none(nm_sys::nm_ip_route_get_attribute( self.to_glib_none().0, name.to_glib_none().0, )) } } pub fn get_dest(&self) -> Option<GString> { unsafe { from_glib_none(nm_sys::nm_ip_route_get_dest(self.to_glib_none().0)) } } //pub fn get_dest_binary(&self, dest: /*Unimplemented*/Option<Fundamental: Pointer>) { // unsafe { TODO: call nm_sys:nm_ip_route_get_dest_binary() } //} pub fn get_family(&self) -> i32 { unsafe { nm_sys::nm_ip_route_get_family(self.to_glib_none().0) } } pub fn get_metric(&self) -> i64 { unsafe { nm_sys::nm_ip_route_get_metric(self.to_glib_none().0) } } pub fn get_next_hop(&self) -> Option<GString> { unsafe { from_glib_none(nm_sys::nm_ip_route_get_next_hop(self.to_glib_none().0)) } } //pub fn get_next_hop_binary(&self, next_hop: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool { // unsafe { TODO: call nm_sys:nm_ip_route_get_next_hop_binary() } //} pub fn get_prefix(&self) -> u32 { unsafe { nm_sys::nm_ip_route_get_prefix(self.to_glib_none().0) } } pub fn set_attribute(&self, name: &str, value: Option<&glib::Variant>) { unsafe { nm_sys::nm_ip_route_set_attribute( self.to_glib_none().0, name.to_glib_none().0, value.to_glib_none().0, ); } } pub fn set_dest(&self, dest: &str) { unsafe { nm_sys::nm_ip_route_set_dest(self.to_glib_none().0, dest.to_glib_none().0); } } //pub fn set_dest_binary(&self, dest: /*Unimplemented*/Option<Fundamental: Pointer>) { // unsafe { TODO: call nm_sys:nm_ip_route_set_dest_binary() } //} pub fn set_metric(&self, metric: i64) { unsafe { nm_sys::nm_ip_route_set_metric(self.to_glib_none().0, metric); } } pub fn set_next_hop(&self, next_hop: Option<&str>) { unsafe { nm_sys::nm_ip_route_set_next_hop(self.to_glib_none().0, next_hop.to_glib_none().0); } } //pub fn set_next_hop_binary(&self, next_hop: /*Unimplemented*/Option<Fundamental: Pointer>) { // unsafe { TODO: call nm_sys:nm_ip_route_set_next_hop_binary() } //} pub fn set_prefix(&self, prefix: u32) { unsafe { nm_sys::nm_ip_route_set_prefix(self.to_glib_none().0, prefix); } } #[cfg(any(feature = "v1_8", feature = "dox"))] pub fn attribute_validate( name: &str, value: &glib::Variant, family: i32, ) -> Result<bool, glib::Error> { unsafe { let mut known = mem::MaybeUninit::uninit(); let mut error = ptr::null_mut(); let _ = nm_sys::nm_ip_route_attribute_validate( name.to_glib_none().0, value.to_glib_none().0, family, known.as_mut_ptr(), &mut error, ); let known = known.assume_init(); if error.is_null() { Ok(from_glib(known)) } else { Err(from_glib_full(error)) } } } //#[cfg(any(feature = "v1_8", feature = "dox"))] //pub fn get_variant_attribute_spec() -> /*Ignored*/Option<VariantAttributeSpec> { // unsafe { TODO: call nm_sys:nm_ip_route_get_variant_attribute_spec() } //} } impl PartialEq for IPRoute { #[inline] fn eq(&self, other: &Self) -> bool { self.equal(other) } } impl Eq for IPRoute {}
equal_full
__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # (c) 2012 Michal Kalewski <mkalewski at cs.put.poznan.pl> # # This file is a part of the Simple Network Simulator (sim2net) project.
# # For bug reports, feature and support requests please visit # <https://github.com/mkalewski/sim2net/issues>. """ This package provides a collection of wireless signal propagation model classes. A wireless transmission may be distorted by many effects such as free-space loss, refraction, diffraction, reflection or absorption. Therefore, wireless propagation models describe the influence of environment on signal quality (mainly as a function of frequency, distance or other conditions) and calculate the **signal-to-noise ratio** (*SNR*) at the receiver. Then, it is assumed that if the SNR value is higher than some prescribed threshold, the signal can be received, and the packet that is carried by the signal can be successfully received if the receiving node remains connected in this way with the sending node at least for the duration of that packet transmission. """ __docformat__ = 'reStructuredText' __all__ = ['path_loss']
# USE, MODIFICATION, COPYING AND DISTRIBUTION OF THIS SOFTWARE IS SUBJECT TO # THE TERMS AND CONDITIONS OF THE MIT LICENSE. YOU SHOULD HAVE RECEIVED A COPY # OF THE MIT LICENSE ALONG WITH THIS SOFTWARE; IF NOT, YOU CAN DOWNLOAD A COPY # FROM HTTP://WWW.OPENSOURCE.ORG/.
campaign_extension_setting_service.pb.go
// Copyright 2021 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. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0-devel // protoc v3.15.2 // source: google/ads/googleads/v8/services/campaign_extension_setting_service.proto package services import ( context "context" enums "github.com/opteo/google-ads-go/enums" resources "github.com/opteo/google-ads-go/resources" _ "google.golang.org/genproto/googleapis/api/annotations" status "google.golang.org/genproto/googleapis/rpc/status" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status1 "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // Request message for // [CampaignExtensionSettingService.GetCampaignExtensionSetting][google.ads.googleads.v8.services.CampaignExtensionSettingService.GetCampaignExtensionSetting]. type GetCampaignExtensionSettingRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The resource name of the campaign extension setting to fetch. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` } func (x *GetCampaignExtensionSettingRequest) Reset() { *x = GetCampaignExtensionSettingRequest{} if protoimpl.UnsafeEnabled { mi := &file_services_campaign_extension_setting_service_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GetCampaignExtensionSettingRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetCampaignExtensionSettingRequest) ProtoMessage() {} func (x *GetCampaignExtensionSettingRequest) ProtoReflect() protoreflect.Message { mi := &file_services_campaign_extension_setting_service_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetCampaignExtensionSettingRequest.ProtoReflect.Descriptor instead. func (*GetCampaignExtensionSettingRequest) Descriptor() ([]byte, []int) { return file_services_campaign_extension_setting_service_proto_rawDescGZIP(), []int{0} } func (x *GetCampaignExtensionSettingRequest) GetResourceName() string { if x != nil { return x.ResourceName } return "" } // Request message for // [CampaignExtensionSettingService.MutateCampaignExtensionSettings][google.ads.googleads.v8.services.CampaignExtensionSettingService.MutateCampaignExtensionSettings]. type MutateCampaignExtensionSettingsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The ID of the customer whose campaign extension settings are being // modified. CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` // Required. The list of operations to perform on individual campaign extension // settings. Operations []*CampaignExtensionSettingOperation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"` // If true, successful operations will be carried out and invalid // operations will return errors. If false, all operations will be carried // out in one transaction if and only if they are all valid. // Default is false. PartialFailure bool `protobuf:"varint,3,opt,name=partial_failure,json=partialFailure,proto3" json:"partial_failure,omitempty"` // If true, the request is validated but not executed. Only errors are // returned, not results. ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"` // The response content type setting. Determines whether the mutable resource // or just the resource name should be returned post mutation. ResponseContentType enums.ResponseContentTypeEnum_ResponseContentType `protobuf:"varint,5,opt,name=response_content_type,json=responseContentType,proto3,enum=google.ads.googleads.v8.enums.ResponseContentTypeEnum_ResponseContentType" json:"response_content_type,omitempty"` } func (x *MutateCampaignExtensionSettingsRequest) Reset() { *x = MutateCampaignExtensionSettingsRequest{} if protoimpl.UnsafeEnabled { mi := &file_services_campaign_extension_setting_service_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MutateCampaignExtensionSettingsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*MutateCampaignExtensionSettingsRequest) ProtoMessage() {} func (x *MutateCampaignExtensionSettingsRequest) ProtoReflect() protoreflect.Message { mi := &file_services_campaign_extension_setting_service_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MutateCampaignExtensionSettingsRequest.ProtoReflect.Descriptor instead. func (*MutateCampaignExtensionSettingsRequest) Descriptor() ([]byte, []int) { return file_services_campaign_extension_setting_service_proto_rawDescGZIP(), []int{1} } func (x *MutateCampaignExtensionSettingsRequest) GetCustomerId() string { if x != nil { return x.CustomerId } return "" } func (x *MutateCampaignExtensionSettingsRequest) GetOperations() []*CampaignExtensionSettingOperation { if x != nil { return x.Operations } return nil } func (x *MutateCampaignExtensionSettingsRequest) GetPartialFailure() bool { if x != nil { return x.PartialFailure } return false } func (x *MutateCampaignExtensionSettingsRequest) GetValidateOnly() bool { if x != nil { return x.ValidateOnly } return false } func (x *MutateCampaignExtensionSettingsRequest) GetResponseContentType() enums.ResponseContentTypeEnum_ResponseContentType { if x != nil { return x.ResponseContentType } return enums.ResponseContentTypeEnum_UNSPECIFIED } // A single operation (create, update, remove) on a campaign extension setting. type CampaignExtensionSettingOperation struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // FieldMask that determines which resource fields are modified in an update. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // The mutate operation. // // Types that are assignable to Operation: // *CampaignExtensionSettingOperation_Create // *CampaignExtensionSettingOperation_Update // *CampaignExtensionSettingOperation_Remove Operation isCampaignExtensionSettingOperation_Operation `protobuf_oneof:"operation"` } func (x *CampaignExtensionSettingOperation) Reset() { *x = CampaignExtensionSettingOperation{} if protoimpl.UnsafeEnabled
} func (x *CampaignExtensionSettingOperation) String() string { return protoimpl.X.MessageStringOf(x) } func (*CampaignExtensionSettingOperation) ProtoMessage() {} func (x *CampaignExtensionSettingOperation) ProtoReflect() protoreflect.Message { mi := &file_services_campaign_extension_setting_service_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CampaignExtensionSettingOperation.ProtoReflect.Descriptor instead. func (*CampaignExtensionSettingOperation) Descriptor() ([]byte, []int) { return file_services_campaign_extension_setting_service_proto_rawDescGZIP(), []int{2} } func (x *CampaignExtensionSettingOperation) GetUpdateMask() *fieldmaskpb.FieldMask { if x != nil { return x.UpdateMask } return nil } func (m *CampaignExtensionSettingOperation) GetOperation() isCampaignExtensionSettingOperation_Operation { if m != nil { return m.Operation } return nil } func (x *CampaignExtensionSettingOperation) GetCreate() *resources.CampaignExtensionSetting { if x, ok := x.GetOperation().(*CampaignExtensionSettingOperation_Create); ok { return x.Create } return nil } func (x *CampaignExtensionSettingOperation) GetUpdate() *resources.CampaignExtensionSetting { if x, ok := x.GetOperation().(*CampaignExtensionSettingOperation_Update); ok { return x.Update } return nil } func (x *CampaignExtensionSettingOperation) GetRemove() string { if x, ok := x.GetOperation().(*CampaignExtensionSettingOperation_Remove); ok { return x.Remove } return "" } type isCampaignExtensionSettingOperation_Operation interface { isCampaignExtensionSettingOperation_Operation() } type CampaignExtensionSettingOperation_Create struct { // Create operation: No resource name is expected for the new campaign // extension setting. Create *resources.CampaignExtensionSetting `protobuf:"bytes,1,opt,name=create,proto3,oneof"` } type CampaignExtensionSettingOperation_Update struct { // Update operation: The campaign extension setting is expected to have a // valid resource name. Update *resources.CampaignExtensionSetting `protobuf:"bytes,2,opt,name=update,proto3,oneof"` } type CampaignExtensionSettingOperation_Remove struct { // Remove operation: A resource name for the removed campaign extension // setting is expected, in this format: // // `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}` Remove string `protobuf:"bytes,3,opt,name=remove,proto3,oneof"` } func (*CampaignExtensionSettingOperation_Create) isCampaignExtensionSettingOperation_Operation() {} func (*CampaignExtensionSettingOperation_Update) isCampaignExtensionSettingOperation_Operation() {} func (*CampaignExtensionSettingOperation_Remove) isCampaignExtensionSettingOperation_Operation() {} // Response message for a campaign extension setting mutate. type MutateCampaignExtensionSettingsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Errors that pertain to operation failures in the partial failure mode. // Returned only when partial_failure = true and all errors occur inside the // operations. If any errors occur outside the operations (e.g. auth errors), // we return an RPC level error. PartialFailureError *status.Status `protobuf:"bytes,3,opt,name=partial_failure_error,json=partialFailureError,proto3" json:"partial_failure_error,omitempty"` // All results for the mutate. Results []*MutateCampaignExtensionSettingResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` } func (x *MutateCampaignExtensionSettingsResponse) Reset() { *x = MutateCampaignExtensionSettingsResponse{} if protoimpl.UnsafeEnabled { mi := &file_services_campaign_extension_setting_service_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MutateCampaignExtensionSettingsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*MutateCampaignExtensionSettingsResponse) ProtoMessage() {} func (x *MutateCampaignExtensionSettingsResponse) ProtoReflect() protoreflect.Message { mi := &file_services_campaign_extension_setting_service_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MutateCampaignExtensionSettingsResponse.ProtoReflect.Descriptor instead. func (*MutateCampaignExtensionSettingsResponse) Descriptor() ([]byte, []int) { return file_services_campaign_extension_setting_service_proto_rawDescGZIP(), []int{3} } func (x *MutateCampaignExtensionSettingsResponse) GetPartialFailureError() *status.Status { if x != nil { return x.PartialFailureError } return nil } func (x *MutateCampaignExtensionSettingsResponse) GetResults() []*MutateCampaignExtensionSettingResult { if x != nil { return x.Results } return nil } // The result for the campaign extension setting mutate. type MutateCampaignExtensionSettingResult struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Returned for successful operations. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` // The mutated campaign extension setting with only mutable fields after // mutate. The field will only be returned when response_content_type is set // to "MUTABLE_RESOURCE". CampaignExtensionSetting *resources.CampaignExtensionSetting `protobuf:"bytes,2,opt,name=campaign_extension_setting,json=campaignExtensionSetting,proto3" json:"campaign_extension_setting,omitempty"` } func (x *MutateCampaignExtensionSettingResult) Reset() { *x = MutateCampaignExtensionSettingResult{} if protoimpl.UnsafeEnabled { mi := &file_services_campaign_extension_setting_service_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MutateCampaignExtensionSettingResult) String() string { return protoimpl.X.MessageStringOf(x) } func (*MutateCampaignExtensionSettingResult) ProtoMessage() {} func (x *MutateCampaignExtensionSettingResult) ProtoReflect() protoreflect.Message { mi := &file_services_campaign_extension_setting_service_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MutateCampaignExtensionSettingResult.ProtoReflect.Descriptor instead. func (*MutateCampaignExtensionSettingResult) Descriptor() ([]byte, []int) { return file_services_campaign_extension_setting_service_proto_rawDescGZIP(), []int{4} } func (x *MutateCampaignExtensionSettingResult) GetResourceName() string { if x != nil { return x.ResourceName } return "" } func (x *MutateCampaignExtensionSettingResult) GetCampaignExtensionSetting() *resources.CampaignExtensionSetting { if x != nil { return x.CampaignExtensionSetting } return nil } var File_services_campaign_extension_setting_service_proto protoreflect.FileDescriptor var file_services_campaign_extension_setting_service_proto_rawDesc = []byte{ 0x0a, 0x49, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x38, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x63, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x1a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x38, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x42, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x38, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x63, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x84, 0x01, 0x0a, 0x22, 0x47, 0x65, 0x74, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5e, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x39, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x33, 0x0a, 0x31, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x86, 0x03, 0x0a, 0x26, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x12, 0x68, 0x0a, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x7e, 0x0a, 0x15, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x4a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x38, 0x2e, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x13, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0xb5, 0x02, 0x0a, 0x21, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x55, 0x0a, 0x06, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x38, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x06, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x55, 0x0a, 0x06, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x38, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x06, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xd3, 0x01, 0x0a, 0x27, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x15, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x13, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x60, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x46, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xc6, 0x01, 0x0a, 0x24, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x79, 0x0a, 0x1a, 0x63, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x38, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x18, 0x63, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0xfd, 0x04, 0x0a, 0x1f, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xf5, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x44, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x38, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x53, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x76, 0x38, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x9a, 0x02, 0x0a, 0x1f, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x49, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x62, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x22, 0x3e, 0x2f, 0x76, 0x38, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x3d, 0x2a, 0x7d, 0x2f, 0x63, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x3a, 0x6d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x16, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x2c, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x45, 0xca, 0x41, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x27, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x61, 0x64, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x42, 0x8b, 0x02, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x42, 0x24, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x38, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x47, 0x41, 0x41, 0xaa, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x41, 0x64, 0x73, 0x2e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x73, 0x2e, 0x56, 0x38, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0xca, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x41, 0x64, 0x73, 0x5c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x73, 0x5c, 0x56, 0x38, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0xea, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x41, 0x64, 0x73, 0x3a, 0x3a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x73, 0x3a, 0x3a, 0x56, 0x38, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_services_campaign_extension_setting_service_proto_rawDescOnce sync.Once file_services_campaign_extension_setting_service_proto_rawDescData = file_services_campaign_extension_setting_service_proto_rawDesc ) func file_services_campaign_extension_setting_service_proto_rawDescGZIP() []byte { file_services_campaign_extension_setting_service_proto_rawDescOnce.Do(func() { file_services_campaign_extension_setting_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_services_campaign_extension_setting_service_proto_rawDescData) }) return file_services_campaign_extension_setting_service_proto_rawDescData } var file_services_campaign_extension_setting_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_services_campaign_extension_setting_service_proto_goTypes = []interface{}{ (*GetCampaignExtensionSettingRequest)(nil), // 0: google.ads.googleads.v8.services.GetCampaignExtensionSettingRequest (*MutateCampaignExtensionSettingsRequest)(nil), // 1: google.ads.googleads.v8.services.MutateCampaignExtensionSettingsRequest (*CampaignExtensionSettingOperation)(nil), // 2: google.ads.googleads.v8.services.CampaignExtensionSettingOperation (*MutateCampaignExtensionSettingsResponse)(nil), // 3: google.ads.googleads.v8.services.MutateCampaignExtensionSettingsResponse (*MutateCampaignExtensionSettingResult)(nil), // 4: google.ads.googleads.v8.services.MutateCampaignExtensionSettingResult (enums.ResponseContentTypeEnum_ResponseContentType)(0), // 5: google.ads.googleads.v8.enums.ResponseContentTypeEnum.ResponseContentType (*fieldmaskpb.FieldMask)(nil), // 6: google.protobuf.FieldMask (*resources.CampaignExtensionSetting)(nil), // 7: google.ads.googleads.v8.resources.CampaignExtensionSetting (*status.Status)(nil), // 8: google.rpc.Status } var file_services_campaign_extension_setting_service_proto_depIdxs = []int32{ 2, // 0: google.ads.googleads.v8.services.MutateCampaignExtensionSettingsRequest.operations:type_name -> google.ads.googleads.v8.services.CampaignExtensionSettingOperation 5, // 1: google.ads.googleads.v8.services.MutateCampaignExtensionSettingsRequest.response_content_type:type_name -> google.ads.googleads.v8.enums.ResponseContentTypeEnum.ResponseContentType 6, // 2: google.ads.googleads.v8.services.CampaignExtensionSettingOperation.update_mask:type_name -> google.protobuf.FieldMask 7, // 3: google.ads.googleads.v8.services.CampaignExtensionSettingOperation.create:type_name -> google.ads.googleads.v8.resources.CampaignExtensionSetting 7, // 4: google.ads.googleads.v8.services.CampaignExtensionSettingOperation.update:type_name -> google.ads.googleads.v8.resources.CampaignExtensionSetting 8, // 5: google.ads.googleads.v8.services.MutateCampaignExtensionSettingsResponse.partial_failure_error:type_name -> google.rpc.Status 4, // 6: google.ads.googleads.v8.services.MutateCampaignExtensionSettingsResponse.results:type_name -> google.ads.googleads.v8.services.MutateCampaignExtensionSettingResult 7, // 7: google.ads.googleads.v8.services.MutateCampaignExtensionSettingResult.campaign_extension_setting:type_name -> google.ads.googleads.v8.resources.CampaignExtensionSetting 0, // 8: google.ads.googleads.v8.services.CampaignExtensionSettingService.GetCampaignExtensionSetting:input_type -> google.ads.googleads.v8.services.GetCampaignExtensionSettingRequest 1, // 9: google.ads.googleads.v8.services.CampaignExtensionSettingService.MutateCampaignExtensionSettings:input_type -> google.ads.googleads.v8.services.MutateCampaignExtensionSettingsRequest 7, // 10: google.ads.googleads.v8.services.CampaignExtensionSettingService.GetCampaignExtensionSetting:output_type -> google.ads.googleads.v8.resources.CampaignExtensionSetting 3, // 11: google.ads.googleads.v8.services.CampaignExtensionSettingService.MutateCampaignExtensionSettings:output_type -> google.ads.googleads.v8.services.MutateCampaignExtensionSettingsResponse 10, // [10:12] is the sub-list for method output_type 8, // [8:10] is the sub-list for method input_type 8, // [8:8] is the sub-list for extension type_name 8, // [8:8] is the sub-list for extension extendee 0, // [0:8] is the sub-list for field type_name } func init() { file_services_campaign_extension_setting_service_proto_init() } func file_services_campaign_extension_setting_service_proto_init() { if File_services_campaign_extension_setting_service_proto != nil { return } if !protoimpl.UnsafeEnabled { file_services_campaign_extension_setting_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetCampaignExtensionSettingRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_services_campaign_extension_setting_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MutateCampaignExtensionSettingsRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_services_campaign_extension_setting_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CampaignExtensionSettingOperation); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_services_campaign_extension_setting_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MutateCampaignExtensionSettingsResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_services_campaign_extension_setting_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MutateCampaignExtensionSettingResult); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } file_services_campaign_extension_setting_service_proto_msgTypes[2].OneofWrappers = []interface{}{ (*CampaignExtensionSettingOperation_Create)(nil), (*CampaignExtensionSettingOperation_Update)(nil), (*CampaignExtensionSettingOperation_Remove)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_services_campaign_extension_setting_service_proto_rawDesc, NumEnums: 0, NumMessages: 5, NumExtensions: 0, NumServices: 1, }, GoTypes: file_services_campaign_extension_setting_service_proto_goTypes, DependencyIndexes: file_services_campaign_extension_setting_service_proto_depIdxs, MessageInfos: file_services_campaign_extension_setting_service_proto_msgTypes, }.Build() File_services_campaign_extension_setting_service_proto = out.File file_services_campaign_extension_setting_service_proto_rawDesc = nil file_services_campaign_extension_setting_service_proto_goTypes = nil file_services_campaign_extension_setting_service_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion6 // CampaignExtensionSettingServiceClient is the client API for CampaignExtensionSettingService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type CampaignExtensionSettingServiceClient interface { // Returns the requested campaign extension setting in full detail. // // List of thrown errors: // [AuthenticationError]() // [AuthorizationError]() // [HeaderError]() // [InternalError]() // [QuotaError]() // [RequestError]() GetCampaignExtensionSetting(ctx context.Context, in *GetCampaignExtensionSettingRequest, opts ...grpc.CallOption) (*resources.CampaignExtensionSetting, error) // Creates, updates, or removes campaign extension settings. Operation // statuses are returned. // // List of thrown errors: // [AuthenticationError]() // [AuthorizationError]() // [CollectionSizeError]() // [CriterionError]() // [DatabaseError]() // [DateError]() // [DistinctError]() // [ExtensionSettingError]() // [FieldError]() // [FieldMaskError]() // [HeaderError]() // [IdError]() // [InternalError]() // [ListOperationError]() // [MutateError]() // [NewResourceCreationError]() // [NotEmptyError]() // [NullError]() // [OperationAccessDeniedError]() // [OperatorError]() // [QuotaError]() // [RangeError]() // [RequestError]() // [SizeLimitError]() // [StringFormatError]() // [StringLengthError]() // [UrlFieldError]() MutateCampaignExtensionSettings(ctx context.Context, in *MutateCampaignExtensionSettingsRequest, opts ...grpc.CallOption) (*MutateCampaignExtensionSettingsResponse, error) } type campaignExtensionSettingServiceClient struct { cc grpc.ClientConnInterface } func NewCampaignExtensionSettingServiceClient(cc grpc.ClientConnInterface) CampaignExtensionSettingServiceClient { return &campaignExtensionSettingServiceClient{cc} } func (c *campaignExtensionSettingServiceClient) GetCampaignExtensionSetting(ctx context.Context, in *GetCampaignExtensionSettingRequest, opts ...grpc.CallOption) (*resources.CampaignExtensionSetting, error) { out := new(resources.CampaignExtensionSetting) err := c.cc.Invoke(ctx, "/google.ads.googleads.v8.services.CampaignExtensionSettingService/GetCampaignExtensionSetting", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *campaignExtensionSettingServiceClient) MutateCampaignExtensionSettings(ctx context.Context, in *MutateCampaignExtensionSettingsRequest, opts ...grpc.CallOption) (*MutateCampaignExtensionSettingsResponse, error) { out := new(MutateCampaignExtensionSettingsResponse) err := c.cc.Invoke(ctx, "/google.ads.googleads.v8.services.CampaignExtensionSettingService/MutateCampaignExtensionSettings", in, out, opts...) if err != nil { return nil, err } return out, nil } // CampaignExtensionSettingServiceServer is the server API for CampaignExtensionSettingService service. type CampaignExtensionSettingServiceServer interface { // Returns the requested campaign extension setting in full detail. // // List of thrown errors: // [AuthenticationError]() // [AuthorizationError]() // [HeaderError]() // [InternalError]() // [QuotaError]() // [RequestError]() GetCampaignExtensionSetting(context.Context, *GetCampaignExtensionSettingRequest) (*resources.CampaignExtensionSetting, error) // Creates, updates, or removes campaign extension settings. Operation // statuses are returned. // // List of thrown errors: // [AuthenticationError]() // [AuthorizationError]() // [CollectionSizeError]() // [CriterionError]() // [DatabaseError]() // [DateError]() // [DistinctError]() // [ExtensionSettingError]() // [FieldError]() // [FieldMaskError]() // [HeaderError]() // [IdError]() // [InternalError]() // [ListOperationError]() // [MutateError]() // [NewResourceCreationError]() // [NotEmptyError]() // [NullError]() // [OperationAccessDeniedError]() // [OperatorError]() // [QuotaError]() // [RangeError]() // [RequestError]() // [SizeLimitError]() // [StringFormatError]() // [StringLengthError]() // [UrlFieldError]() MutateCampaignExtensionSettings(context.Context, *MutateCampaignExtensionSettingsRequest) (*MutateCampaignExtensionSettingsResponse, error) } // UnimplementedCampaignExtensionSettingServiceServer can be embedded to have forward compatible implementations. type UnimplementedCampaignExtensionSettingServiceServer struct { } func (*UnimplementedCampaignExtensionSettingServiceServer) GetCampaignExtensionSetting(context.Context, *GetCampaignExtensionSettingRequest) (*resources.CampaignExtensionSetting, error) { return nil, status1.Errorf(codes.Unimplemented, "method GetCampaignExtensionSetting not implemented") } func (*UnimplementedCampaignExtensionSettingServiceServer) MutateCampaignExtensionSettings(context.Context, *MutateCampaignExtensionSettingsRequest) (*MutateCampaignExtensionSettingsResponse, error) { return nil, status1.Errorf(codes.Unimplemented, "method MutateCampaignExtensionSettings not implemented") } func RegisterCampaignExtensionSettingServiceServer(s *grpc.Server, srv CampaignExtensionSettingServiceServer) { s.RegisterService(&_CampaignExtensionSettingService_serviceDesc, srv) } func _CampaignExtensionSettingService_GetCampaignExtensionSetting_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetCampaignExtensionSettingRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CampaignExtensionSettingServiceServer).GetCampaignExtensionSetting(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.ads.googleads.v8.services.CampaignExtensionSettingService/GetCampaignExtensionSetting", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CampaignExtensionSettingServiceServer).GetCampaignExtensionSetting(ctx, req.(*GetCampaignExtensionSettingRequest)) } return interceptor(ctx, in, info, handler) } func _CampaignExtensionSettingService_MutateCampaignExtensionSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MutateCampaignExtensionSettingsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CampaignExtensionSettingServiceServer).MutateCampaignExtensionSettings(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.ads.googleads.v8.services.CampaignExtensionSettingService/MutateCampaignExtensionSettings", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CampaignExtensionSettingServiceServer).MutateCampaignExtensionSettings(ctx, req.(*MutateCampaignExtensionSettingsRequest)) } return interceptor(ctx, in, info, handler) } var _CampaignExtensionSettingService_serviceDesc = grpc.ServiceDesc{ ServiceName: "google.ads.googleads.v8.services.CampaignExtensionSettingService", HandlerType: (*CampaignExtensionSettingServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCampaignExtensionSetting", Handler: _CampaignExtensionSettingService_GetCampaignExtensionSetting_Handler, }, { MethodName: "MutateCampaignExtensionSettings", Handler: _CampaignExtensionSettingService_MutateCampaignExtensionSettings_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "google/ads/googleads/v8/services/campaign_extension_setting_service.proto", }
{ mi := &file_services_campaign_extension_setting_service_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) }
insert_api_refs.py
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import argparse import ast import glob import re def
(source_glob): """ List all of the functions and classes defined """ defined = [] # Iterate through each source file for sp in glob.glob(source_glob): module_name = sp[:-3] module_name = module_name.replace("/", ".") # Parse the source file into an AST node = ast.parse(open(sp).read()) # Extract the names of all functions and classes defined in this file defined.extend( (n.name, module_name + "." + n.name) for n in node.body if (isinstance(n, ast.FunctionDef) or isinstance(n, ast.ClassDef)) ) return defined def replace_backticks(source_path, docs_path): markdown_glob = docs_path + "/*.md" source_glob = source_path + "/**/*.py" methods = list_functions(source_glob) for f in glob.glob(markdown_glob): for n, m in methods: # Match backquoted mentions of the function/class name which are # not already links pattern = "(?<![[`])(`" + n + "`)" link = f"[`{n}`](/api/{m.split('.')[1]}.html#{m})" lines = open(f).readlines() for i, l in enumerate(lines): match = re.search(pattern, l) if match: print(f"{f}:{i+1} s/{match.group(0)}/{link}") lines[i] = re.sub(pattern, link, l) open(f, "w").writelines(lines) if __name__ == "__main__": parser = argparse.ArgumentParser( description="""In markdown docs, replace backtick-quoted names of objects exported from Ax with links to the API docs.""" ) parser.add_argument( "--source_path", metavar="source_path", required=True, help="Path to source files (e.g. 'ax/').", ) parser.add_argument( "--docs_path", type=str, required=True, help="Path to docs (e.g. 'docs/'." ) args = parser.parse_args() replace_backticks(args.source_path, args.docs_path)
list_functions
ntp_api.py
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. # noqa: E501 The version of the OpenAPI document: 1.0.9-4950 Contact: [email protected] Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from intersight.api_client import ApiClient, Endpoint as _Endpoint from intersight.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, datetime, file_type, none_type, validate_and_convert_types ) from intersight.model.error import Error from intersight.model.ntp_policy import NtpPolicy from intersight.model.ntp_policy_response import NtpPolicyResponse class NtpApi(object): """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def __create_ntp_policy( self, ntp_policy, **kwargs ): """Create a 'ntp.Policy' resource. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_ntp_policy(ntp_policy, async_req=True) >>> result = thread.get() Args: ntp_policy (NtpPolicy): The 'ntp.Policy' resource to create. Keyword Args: if_match (str): For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request.. [optional] if_none_match (str): For methods that apply server-side changes, If-None-Match used with the * value can be used to create a resource not known to exist, guaranteeing that another resource creation didn't happen before, losing the data of the previous put. The request will be processed only if the eventually existing resource's ETag doesn't match any of the values listed. Otherwise, the status code 412 (Precondition Failed) is used. The asterisk is a special value representing any resource. It is only useful when creating a resource, usually with PUT, to check if another resource with the identity has already been created before. The comparison with the stored ETag uses the weak comparison algorithm, meaning two resources are considered identical if the content is equivalent - they don't have to be identical byte for byte.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: NtpPolicy If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get( 'async_req', False ) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True ) kwargs['_preload_content'] = kwargs.get( '_preload_content', True ) kwargs['_request_timeout'] = kwargs.get( '_request_timeout', None ) kwargs['_check_input_type'] = kwargs.get( '_check_input_type', True ) kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) kwargs['_host_index'] = kwargs.get('_host_index') kwargs['ntp_policy'] = \ ntp_policy return self.call_with_http_info(**kwargs) self.create_ntp_policy = _Endpoint( settings={ 'response_type': (NtpPolicy,), 'auth': [ 'cookieAuth', 'http_signature', 'oAuth2', 'oAuth2' ], 'endpoint_path': '/api/v1/ntp/Policies', 'operation_id': 'create_ntp_policy', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ 'ntp_policy', 'if_match', 'if_none_match', ], 'required': [ 'ntp_policy', ], 'nullable': [ ], 'enum': [ ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { }, 'openapi_types': { 'ntp_policy': (NtpPolicy,), 'if_match': (str,), 'if_none_match': (str,), }, 'attribute_map': { 'if_match': 'If-Match', 'if_none_match': 'If-None-Match', }, 'location_map': { 'ntp_policy': 'body', 'if_match': 'header', 'if_none_match': 'header', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [ 'application/json' ] }, api_client=api_client, callable=__create_ntp_policy ) def __delete_ntp_policy( self, moid, **kwargs ): """Delete a 'ntp.Policy' resource. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_ntp_policy(moid, async_req=True) >>> result = thread.get() Args: moid (str): The unique Moid identifier of a resource instance. Keyword Args: _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: None If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get( 'async_req', False ) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True ) kwargs['_preload_content'] = kwargs.get( '_preload_content', True ) kwargs['_request_timeout'] = kwargs.get( '_request_timeout', None ) kwargs['_check_input_type'] = kwargs.get( '_check_input_type', True ) kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) kwargs['_host_index'] = kwargs.get('_host_index') kwargs['moid'] = \ moid return self.call_with_http_info(**kwargs) self.delete_ntp_policy = _Endpoint( settings={ 'response_type': None, 'auth': [ 'cookieAuth', 'http_signature', 'oAuth2', 'oAuth2' ], 'endpoint_path': '/api/v1/ntp/Policies/{Moid}', 'operation_id': 'delete_ntp_policy', 'http_method': 'DELETE', 'servers': None, }, params_map={ 'all': [ 'moid', ], 'required': [ 'moid', ], 'nullable': [ ], 'enum': [ ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { }, 'openapi_types': { 'moid': (str,), }, 'attribute_map': { 'moid': 'Moid', }, 'location_map': { 'moid': 'path', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [], }, api_client=api_client, callable=__delete_ntp_policy ) def __get_ntp_policy_by_moid( self, moid, **kwargs ): """Read a 'ntp.Policy' resource. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_ntp_policy_by_moid(moid, async_req=True) >>> result = thread.get() Args: moid (str): The unique Moid identifier of a resource instance. Keyword Args: _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: NtpPolicy If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get( 'async_req', False ) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True ) kwargs['_preload_content'] = kwargs.get( '_preload_content', True ) kwargs['_request_timeout'] = kwargs.get( '_request_timeout', None ) kwargs['_check_input_type'] = kwargs.get( '_check_input_type', True ) kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) kwargs['_host_index'] = kwargs.get('_host_index') kwargs['moid'] = \ moid return self.call_with_http_info(**kwargs) self.get_ntp_policy_by_moid = _Endpoint( settings={ 'response_type': (NtpPolicy,), 'auth': [ 'cookieAuth', 'http_signature', 'oAuth2', 'oAuth2' ], 'endpoint_path': '/api/v1/ntp/Policies/{Moid}', 'operation_id': 'get_ntp_policy_by_moid', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'moid', ], 'required': [ 'moid', ], 'nullable': [ ], 'enum': [ ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { }, 'openapi_types': { 'moid': (str,), }, 'attribute_map': { 'moid': 'Moid', }, 'location_map': { 'moid': 'path', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' ], 'content_type': [], }, api_client=api_client, callable=__get_ntp_policy_by_moid ) def __get_ntp_policy_list( self, **kwargs ): """Read a 'ntp.Policy' resource. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_ntp_policy_list(async_req=True) >>> result = thread.get() Keyword Args: filter (str): Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false).. [optional] if omitted the server will use the default value of "" orderby (str): Determines what properties are used to sort the collection of resources.. [optional] top (int): Specifies the maximum number of resources to return in the response.. [optional] if omitted the server will use the default value of 100 skip (int): Specifies the number of resources to skip in the response.. [optional] if omitted the server will use the default value of 0 select (str): Specifies a subset of properties to return.. [optional] if omitted the server will use the default value of "" expand (str): Specify additional attributes or related resources to return in addition to the primary resources.. [optional] apply (str): Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The \"$apply\" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e. the result of each transformation is the input to the next transformation. Supported aggregation methods are \"aggregate\" and \"groupby\". The **aggregate** transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The **groupby** transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set.. [optional] count (bool): The $count query specifies the service should return the count of the matching resources, instead of returning the resources.. [optional] inlinecount (str): The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response.. [optional] if omitted the server will use the default value of "allpages" at (str): Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for resources to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section.. [optional] tags (str): The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: NtpPolicyResponse If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get( 'async_req', False ) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True ) kwargs['_preload_content'] = kwargs.get( '_preload_content', True ) kwargs['_request_timeout'] = kwargs.get( '_request_timeout', None ) kwargs['_check_input_type'] = kwargs.get( '_check_input_type', True ) kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) kwargs['_host_index'] = kwargs.get('_host_index') return self.call_with_http_info(**kwargs) self.get_ntp_policy_list = _Endpoint( settings={ 'response_type': (NtpPolicyResponse,), 'auth': [ 'cookieAuth', 'http_signature', 'oAuth2', 'oAuth2' ], 'endpoint_path': '/api/v1/ntp/Policies', 'operation_id': 'get_ntp_policy_list', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'filter', 'orderby', 'top', 'skip', 'select', 'expand', 'apply', 'count', 'inlinecount', 'at', 'tags', ], 'required': [], 'nullable': [ ], 'enum': [ 'inlinecount', ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { ('inlinecount',): { "ALLPAGES": "allpages", "NONE": "none" }, }, 'openapi_types': { 'filter': (str,), 'orderby': (str,), 'top': (int,), 'skip': (int,), 'select': (str,), 'expand': (str,), 'apply': (str,), 'count': (bool,), 'inlinecount': (str,), 'at': (str,), 'tags': (str,), }, 'attribute_map': { 'filter': '$filter', 'orderby': '$orderby', 'top': '$top', 'skip': '$skip', 'select': '$select', 'expand': '$expand', 'apply': '$apply', 'count': '$count', 'inlinecount': '$inlinecount', 'at': 'at', 'tags': 'tags', }, 'location_map': { 'filter': 'query', 'orderby': 'query', 'top': 'query', 'skip': 'query', 'select': 'query', 'expand': 'query', 'apply': 'query', 'count': 'query', 'inlinecount': 'query', 'at': 'query', 'tags': 'query', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' ], 'content_type': [], }, api_client=api_client, callable=__get_ntp_policy_list ) def
( self, moid, ntp_policy, **kwargs ): """Update a 'ntp.Policy' resource. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_ntp_policy(moid, ntp_policy, async_req=True) >>> result = thread.get() Args: moid (str): The unique Moid identifier of a resource instance. ntp_policy (NtpPolicy): The 'ntp.Policy' resource to update. Keyword Args: if_match (str): For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: NtpPolicy If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get( 'async_req', False ) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True ) kwargs['_preload_content'] = kwargs.get( '_preload_content', True ) kwargs['_request_timeout'] = kwargs.get( '_request_timeout', None ) kwargs['_check_input_type'] = kwargs.get( '_check_input_type', True ) kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) kwargs['_host_index'] = kwargs.get('_host_index') kwargs['moid'] = \ moid kwargs['ntp_policy'] = \ ntp_policy return self.call_with_http_info(**kwargs) self.patch_ntp_policy = _Endpoint( settings={ 'response_type': (NtpPolicy,), 'auth': [ 'cookieAuth', 'http_signature', 'oAuth2', 'oAuth2' ], 'endpoint_path': '/api/v1/ntp/Policies/{Moid}', 'operation_id': 'patch_ntp_policy', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'moid', 'ntp_policy', 'if_match', ], 'required': [ 'moid', 'ntp_policy', ], 'nullable': [ ], 'enum': [ ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { }, 'openapi_types': { 'moid': (str,), 'ntp_policy': (NtpPolicy,), 'if_match': (str,), }, 'attribute_map': { 'moid': 'Moid', 'if_match': 'If-Match', }, 'location_map': { 'moid': 'path', 'ntp_policy': 'body', 'if_match': 'header', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [ 'application/json', 'application/json-patch+json' ] }, api_client=api_client, callable=__patch_ntp_policy ) def __update_ntp_policy( self, moid, ntp_policy, **kwargs ): """Update a 'ntp.Policy' resource. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update_ntp_policy(moid, ntp_policy, async_req=True) >>> result = thread.get() Args: moid (str): The unique Moid identifier of a resource instance. ntp_policy (NtpPolicy): The 'ntp.Policy' resource to update. Keyword Args: if_match (str): For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: NtpPolicy If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get( 'async_req', False ) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True ) kwargs['_preload_content'] = kwargs.get( '_preload_content', True ) kwargs['_request_timeout'] = kwargs.get( '_request_timeout', None ) kwargs['_check_input_type'] = kwargs.get( '_check_input_type', True ) kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) kwargs['_host_index'] = kwargs.get('_host_index') kwargs['moid'] = \ moid kwargs['ntp_policy'] = \ ntp_policy return self.call_with_http_info(**kwargs) self.update_ntp_policy = _Endpoint( settings={ 'response_type': (NtpPolicy,), 'auth': [ 'cookieAuth', 'http_signature', 'oAuth2', 'oAuth2' ], 'endpoint_path': '/api/v1/ntp/Policies/{Moid}', 'operation_id': 'update_ntp_policy', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ 'moid', 'ntp_policy', 'if_match', ], 'required': [ 'moid', 'ntp_policy', ], 'nullable': [ ], 'enum': [ ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { }, 'openapi_types': { 'moid': (str,), 'ntp_policy': (NtpPolicy,), 'if_match': (str,), }, 'attribute_map': { 'moid': 'Moid', 'if_match': 'If-Match', }, 'location_map': { 'moid': 'path', 'ntp_policy': 'body', 'if_match': 'header', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [ 'application/json', 'application/json-patch+json' ] }, api_client=api_client, callable=__update_ntp_policy )
__patch_ntp_policy
osm.py
"""geohunter.osm This module wraps requests to OpenStreetMap's Overpass API with an interface for the GeoPandas data structures. The OpenStreetMap has a data model based on nodes, ways and relations. The geometric data structures available in geopandas are points, lines and polygons (but also multipoints, multilines and multipolygons). For a complete list of data categories available ("map features"), please look the OpenStreetMap. """ from time import time, sleep from pandas import DataFrame, json_normalize from geopandas import GeoDataFrame, sjoin from shapely.ops import polygonize, linemerge from shapely.geometry import Point, Polygon, LineString from shapely.geometry import MultiPolygon, MultiPoint from requests import Session from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry import geohunter.util MAP_FEATURES_KEYS = ['aerialway', 'aeroway', 'amenity', 'barrier', 'boundary', 'admin_level', 'building', 'craft', 'emergency', 'geological', 'highway', 'sidewalk', 'cycleway', 'busway', 'bicycle_road', 'service', 'historic', 'landuse', 'leisure', 'man_made', 'military', 'natural', 'office', 'place', 'power', 'public_transport', 'railway', 'route', 'shop', 'sport', 'telecom', 'tourism', 'waterway', 'water', 'name', 'healthcare'] def timelog(func): def wrapper(data_func, *args, **kwargs): t0 = time() result = func(data_func, *args, **kwargs) tf = time() print(f"Geohunter: [TIMELOG] {func.__name__} -- {kwargs} -- Completed in {round(tf - t0, 4)}s") return result return wrapper class Eagle: """ `Eagle` is the facade for requesting data given the map keys available with the `request_overpass()` method. This class also implements a `get()` method which return the data required in a single pandas DataFrame that has a geometric attribute that makes it a geopandas GeoDataFrame (please consult geopandas documentation for more details). """ def __init__(self): self.session = requests_retry_session() def __enter__(self): return self @timelog def get(self, bbox, as_points=False, largest_geom=False, sjoin_op='intersects', **map_features): """Returns points-of-interest data from OpenStreetMap. as geopandas.GeoDataFrame with a set of points-of-interest requested. For a list of complete map features keys and elements available on the API, please consult documentation https://wiki.openstreetmap.org/wiki/Map_Features. Parameters ---------- bbox : str or geopandas.GeoDataFrame If str, follow the structure (south_lat,west_lon,north_lat,east_lon), but if you prefer to pass a geopandas.GeoDataFrame, the bbox will be defined as the maximum and minimum values delimited by the geometry. **map_features : **kwargs requested described in map features. Example: amenity=['hospital', 'police']. Returns ------- geopandas.GeoDataFrame GeoDataFrame with all points-of-interest requested. Example ------- >>> df = Eagle().get(bbox='(-5.91,-35.29,-5.70,-35.15)', amenity=['hospital' , 'police'], natural='*') """ for map_feature in map_features: if map_feature not in MAP_FEATURES_KEYS: raise Exception(f"{map_feature} is not a valid map feature. Please " \ + "consult https://wiki.openstreetmap.org/wiki/Map_Features.") poi_data = DataFrame() for mf_key in map_features: if isinstance(map_features[mf_key], list): pass elif isinstance(map_features[mf_key], str): map_features[mf_key] = [map_features[mf_key]] elif isinstance(map_features[mf_key], int): map_features[mf_key] = [str(map_features[mf_key])] else: raise Exception(f'Map feature {mf_key}={map_features[mf_key]}. ' \ + 'Please consult https://wiki.openstreetmap.org/wiki/Map_Features.') if mf_key == 'admin_level' and sjoin_op == 'intersects': if not isinstance(bbox, GeoDataFrame): raise ValueError("To get admin_level geometries, it's " \ + 'required to have bbox as a GeoDataframe.') else: # forcing 'within' to get admin_level inside a geometry, # intersection could get undesired neighbor regions sjoin_op = 'within' for mf_item in map_features[mf_key]: print(f'Requesting {mf_key}={mf_item}') result = self.request_overpass(bbox, map_feature_key=mf_key, map_feature_item=mf_item) print('Done. Wait for 15s to start the next request.') sleep(15) result_gdf = overpass_result_to_geodf(result, as_points) result_gdf['key'] = mf_key poi_data = poi_data.append(result_gdf) poi_data['item'] = poi_data.apply(lambda x: x['tags'][x['key']], axis=1) poi_data = poi_data.reset_index(drop=True) poi_data['name'] = json_normalize(poi_data['tags'])['name'] poi_data = GeoDataFrame(poi_data) if isinstance(bbox, GeoDataFrame): poi_ix = sjoin(poi_data, bbox, op=sjoin_op).index.unique() poi_data = poi_data.loc[poi_ix] if largest_geom: return poi_data.iloc[[poi_data['geometry'].area.argmax()]] return poi_data def request_overpass(self, bbox, map_feature_key, map_feature_item): """ Return the json resulted from *a single* request on Overpass API. It generates the Overpass QL query from the map features defined, including nodes, ways and relations, and request data from the API. Please consult OpenStreetMap documentation (https://wiki.openstreetmap.org/wiki/Map_Features) for a full list of map features available. Parameters ---------- bbox : str or geopandas.GeoDataFrame If str, follow the structure (south_lat,west_lon,north_lat,east_lon), but if you prefer to pass a geopandas.GeoDataFrame, the bbox will be defined as the maximum and minimum values delimited by the geometry. map_feature_key: str Map key item from OpenStreetMap, such as "amenity", "highway" etc. map_feature_item: str Returns ------- dict Data requested in output format of Overpass API. """ bbox = geohunter.util.parse_bbox(bbox) query_string = '' for i in ['node', 'way', 'relation']: if map_feature_item == '*': query_string += f'{i}["{map_feature_key}"]{bbox};' else: query_string += f'{i}["{map_feature_key}"="{map_feature_item}"]{bbox};' query_string = f'[out:json];({query_string});out+geom;' result = self.session.get( f'http://overpass-api.de/api/interpreter?data={query_string}') if result.status_code != 200: if result.status_code == 429: raise Exception('Too many requests. Please wait a couple minutes to retry.') raise Exception(f"HTTP {result.status_code}, error.") result = result.json() if len(result['elements']) == 0: print(query_string) raise Exception('Request made with no data returned , ' \ + 'please check try with other parameters.') return result def debug__find_geom_not_being_successfully_parsed(self, bbox, key, item): failed = self.request_overpass(bbox, map_feature_key=key, map_feature_item=item) elements_df = DataFrame(failed['elements']) for i in elements_df.iterrows(): try: parse_geometry(i[1]) except: print(f'{key}={item} id#{i[0]}') return i[1] def close(self): self.session.close() def __exit__(self, exc_type, exc_value, traceback): self.close() def requests_retry_session(retries=3, backoff_factor=0.5, session=None, status_forcelist=(500, 503, 502, 504)): session = session or Session() retry = Retry(total=retries, read=retries, connect=retries, backoff_factor=backoff_factor, status_forcelist=status_forcelist) adapter = HTTPAdapter(max_retries=retry) session.mount('http://', adapter) session.mount('https://', adapter) return session def overpass_result_to_geodf(result, as_points=False): """ Transforms the result from Overpass request to GeoDataFrame. """ elements_df = DataFrame(result['elements']) elements_df['geometry'] = elements_df.apply(parse_geometry, axis=1) elements_df = GeoDataFrame(elements_df, crs={'init': 'epsg:4326'}) if as_points: elements_df['geometry'] = elements_df['geometry'].centroid return elements_df[['type', 'id', 'tags', 'geometry']] def parse_geometry(x_elements_df): """ Transforms coordinates into shapely objects. """ if x_elements_df['type'] == 'node': geom = Point([x_elements_df['lon'], x_elements_df['lat']]) elif x_elements_df['type'] == 'way': line = [(i['lon'], i['lat']) for i in x_elements_df['geometry']] if line[0] == line[-1]: geom = Polygon(line) else: geom = LineString(line) else: # relation geom = parse_relation(x_elements_df['members']) return geom def parse_relation(x_members): """ Transforms coordinates of 'relation' objects into shapely objects. """ if not isinstance(x_members, list): return x_members shell, holes, lines, points = [], [], [], [] # Iterating through all geometries inside an element of the # Overpass relation ouput, which often are composed by # many internal geometries. For example, some polygons are formed with # sets of lines, sometimes unordered. for x_m in x_members: line = [(p['lon'], p['lat']) for p in x_m.get("geometry", [])] if not line: # empty geometry or it's a node if x_m.get('type', None) == 'node': points.append((x_m['lon'], x_m['lat'])) elif line[0] == line[-1]: # explicit polygons if x_m['role'] == 'outer': shell.append(line) elif x_m['role'] == 'inner': holes.append(line) else: # these may be lines or a polygon formed by lines lines.append(LineString(line)) # We chose to return in order of priority (1) members that # have both shell and lines, then those that have only # shell, then members that are formed by lines, and if # there aren't shells or lines and the member is formed # by a node/point, then it's returned. if shell and lines: polygons = shell + list(polygonize(lines)) final_geom = MultiPolygon([[s, []] for s in polygons]) elif shell: if len(shell) > 1: # Here we don't treat multipolygons with multiholes. # Who want this, please implement for us :D final_geom = MultiPolygon([[s, []] for s in shell]) else: final_geom = Polygon(shell[0], holes) elif lines: if len(lines) < 3: # Two lines or less doesn't form a polygon. If # there are two lines, these are merged. final_geom = linemerge(lines) else: # Lines may not be sequentially organized, # so one cannot simply Polygon(lines). Luckily, # shapely saved us with shapely.ops.polygonize. polygon = list(polygonize(lines)) if len(polygon) > 1: final_geom = MultiPolygon([s for s in polygon]) else: final_geom = polygon[0] elif points: if len(points) > 1:
else: final_geom = Point(points[0]) else: print(x_members) print('Relation not correctly parsed. Report this in error in the repository.') return Point([0,0]) return final_geom
final_geom = MultiPoint(points)
decoder.rs
// Copyright 2020 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. use crate::bundle::{self, Bundle, Exchange, Request, Response, Uri, Version}; use crate::prelude::*; use cbor_event::Len; use http::{ header::{HeaderMap, HeaderName, HeaderValue}, StatusCode, }; use std::collections::HashSet; use std::convert::TryInto; use std::io::Cursor; pub(crate) fn parse(bytes: impl AsRef<[u8]>) -> Result<Bundle> { Decoder::new(bytes).decode() } #[derive(Debug)] struct SectionOffset { name: String, offset: u64, length: u64, } #[derive(Debug)] struct ResponseLocation { offset: u64, length: u64, } impl ResponseLocation { pub fn new(responses_section_offset: u64, offset: u64, length: u64) -> ResponseLocation { ResponseLocation { offset: responses_section_offset + offset, length, } } } #[derive(Debug)] struct RequestEntry { request: Request, response_location: ResponseLocation, } #[derive(Debug)] struct Metadata { version: Version, section_offsets: Vec<SectionOffset>, requests: Vec<RequestEntry>, primary_url: Option<PrimaryUrl>, } type Deserializer<R> = cbor_event::de::Deserializer<R>; struct Decoder<T> { de: Deserializer<Cursor<T>>, } impl<T> Decoder<T> { fn new(buf: T) -> Self
} type PrimaryUrl = Uri; impl<T: AsRef<[u8]>> Decoder<T> { fn decode(&mut self) -> Result<Bundle> { let metadata = self.read_metadata()?; Ok(Bundle { version: metadata.version, primary_url: metadata.primary_url, exchanges: self.read_responses(metadata.requests)?, }) } fn read_metadata(&mut self) -> Result<Metadata> { ensure!( self.read_array_len()? as usize == bundle::TOP_ARRAY_LEN, "Invalid header" ); self.read_magic_bytes()?; let version = self.read_version()?; log::debug!("version: {:?}", version); let section_offsets = self.read_section_offsets()?; log::debug!("section_offsets {:?}", section_offsets); // let primary_url = self.read_primary_url()?; let (requests, primary_url) = self.read_sections(&section_offsets)?; Ok(Metadata { version, section_offsets, requests, primary_url, }) } fn read_magic_bytes(&mut self) -> Result<()> { log::debug!("read_magic_bytes"); let magic: Vec<u8> = self.de.bytes().context("Invalid magic bytes")?; ensure!(magic == bundle::HEADER_MAGIC_BYTES, "Header magic mismatch"); Ok(()) } fn read_version(&mut self) -> Result<Version> { log::debug!("read_version"); let bytes: Vec<u8> = self.de.bytes().context("Invalid version format")?; ensure!( bytes.len() == bundle::VERSION_BYTES_LEN, "Invalid version format" ); let version: [u8; bundle::VERSION_BYTES_LEN] = AsRef::<[u8]>::as_ref(&bytes).try_into().unwrap(); Ok(if &version == bundle::Version::Version1.bytes() { Version::Version1 } else if &version == bundle::Version::VersionB2.bytes() { Version::VersionB2 } else { Version::Unknown(version) }) } fn read_section_offsets(&mut self) -> Result<Vec<SectionOffset>> { let bytes = self .de .bytes() .context("Failed to read sectionLength byte string")?; ensure!( bytes.len() < 8_192, format!("sectionLengthsLength is too long ({} bytes)", bytes.len()) ); Decoder::new(bytes).read_section_offsets_cbor(self.position()) } fn read_array_len(&mut self) -> Result<u64> { match self.de.array()? { Len::Len(n) => Ok(n), _ => bail!("bundle: bundle: Failed to decode sectionOffset array header"), } } fn position(&self) -> u64 { self.de.as_ref().position() } fn read_section_offsets_cbor(&mut self, mut offset: u64) -> Result<Vec<SectionOffset>> { let n = self .read_array_len() .context("bundle: bundle: Failed to decode sectionOffset array header")?; let section_num = n / 2; offset += self.position(); let mut seen_names = HashSet::new(); let mut section_offsets = Vec::with_capacity(section_num as usize); for _ in 0..section_num { let name = self.de.text()?; ensure!(!seen_names.contains(&name), "Duplicate section name"); seen_names.insert(name.clone()); let length = self.de.unsigned_integer()?; section_offsets.push(SectionOffset { name, offset, length, }); offset += length; } ensure!(!section_offsets.is_empty(), "bundle: section is empty"); ensure!( section_offsets.last().unwrap().name == "responses", "bundle: Last section is not \"responses\"" ); Ok(section_offsets) } fn inner_buf(&self) -> &[u8] { self.de.as_ref().get_ref().as_ref() } fn new_decoder_from_range(&self, start: u64, end: u64) -> Decoder<&[u8]> { // TODO: Check range, instead of panic Decoder::new(&self.inner_buf()[start as usize..end as usize]) } fn read_sections( &mut self, section_offsets: &[SectionOffset], ) -> Result<(Vec<RequestEntry>, Option<PrimaryUrl>)> { log::debug!("read_sections"); let n = self .read_array_len() .context("Failed to read section header")?; log::debug!("n: {:?}", n); ensure!( n as usize == section_offsets.len(), format!( "bundle: Expected {} sections, got {} sections", section_offsets.len(), n ) ); let responses_section_offset = section_offsets.last().unwrap().offset; dbg!(responses_section_offset); let mut requests = vec![]; let mut primary_url: Option<PrimaryUrl> = None; for SectionOffset { name, offset, length, } in section_offsets { if !bundle::KNOWN_SECTION_NAMES.iter().any(|&n| n == name) { log::warn!("Unknows section name: {}. Skipping", name); continue; } let mut section_decoder = self.new_decoder_from_range(*offset, offset + length); // TODO: Support ignoredSections match name.as_ref() { "index" => { dbg!(name); requests = section_decoder.read_index(responses_section_offset)?; } "responses" => { dbg!(name); // Skip responses section becuase we read responses later. } "primary-url" => { dbg!(name); primary_url = Some(section_decoder.read_primary_url()?); } _ => { log::warn!("Unknown section found: {}", name); } } } Ok((requests, primary_url)) } fn read_primary_url(&mut self) -> Result<PrimaryUrl> { log::debug!("read_primary_url"); self.de .text() .context("bundle: Failed to read primary_url string")? .parse() .context("Failed to parse primary_url") } fn read_index(&mut self, responses_section_offset: u64) -> Result<Vec<RequestEntry>> { let index_map_len = match self.de.map()? { Len::Len(n) => n, Len::Indefinite => { bail!("bundle: Failed to decode index section map header"); } }; dbg!(index_map_len); let mut requests = vec![]; for _ in 0..index_map_len { let uri = self.de.text()?.parse::<Uri>()?; dbg!(&uri); ensure!( self.read_array_len()? == 2, "bundle: Failed to decode index item" ); let offset = self.de.unsigned_integer()?; dbg!(offset); let length = self.de.unsigned_integer()?; dbg!(length); requests.push(RequestEntry { request: Request::get(uri).body(())?, response_location: ResponseLocation::new(responses_section_offset, offset, length), }); } Ok(requests) } fn read_responses(&mut self, requests: Vec<RequestEntry>) -> Result<Vec<Exchange>> { requests .into_iter() .map( |RequestEntry { request, response_location: ResponseLocation { offset, length }, }| { let response = self .new_decoder_from_range(offset, offset + length) .read_response()?; Ok(Exchange { request, response }) }, ) .collect() } fn read_response(&mut self) -> Result<Response> { let responses_array_len = self .read_array_len() .context("bundle: Failed to decode responses section array headder")?; ensure!( responses_array_len == 2, "bundle: Failed to decode response entry" ); log::debug!("read_response: headers byte 1"); let headers = self.de.bytes()?; log::debug!("read_response: headers byte 2"); let mut nested = Decoder::new(headers); let (status, headers) = nested.read_headers_cbor()?; let body = self.de.bytes()?; let mut response = Response::new(body); *response.status_mut() = status; *response.headers_mut() = headers; Ok(response) } fn read_headers_cbor(&mut self) -> Result<(StatusCode, HeaderMap)> { let headers_map_len = match self.de.map()? { Len::Len(n) => n, Len::Indefinite => { bail!("bundle: Failed to decode responses headers map headder"); } }; let mut headers = HeaderMap::new(); let mut status = None; for _ in 0..headers_map_len { let name = String::from_utf8(self.de.bytes()?)?; let value = String::from_utf8(self.de.bytes()?)?; if name.starts_with(':') { ensure!(name == ":status", "Unknown pseudo headers"); ensure!(status.is_none(), ":status is duplicated"); status = Some(value.parse()?); continue; } headers.insert( HeaderName::from_lowercase(name.as_bytes())?, HeaderValue::from_str(value.as_str())?, ); } ensure!(status.is_some(), "no :status header"); Ok((status.unwrap(), headers)) } } #[cfg(test)] mod tests { use super::*; /// This test uses an external tool, `gen-bundle`. /// See https://github.com/WICG/webpackage/go/bundle #[ignore] #[tokio::test] async fn decode_bundle_encoded_by_go_gen_bundle() -> Result<()> { use std::io::Read; let base_dir = { let mut path = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")); path.push("tests/builder"); path }; let mut file = tempfile::NamedTempFile::new()?; // Create a bundle by `gen-bundle`. let res = std::process::Command::new("gen-bundle") .arg("--version") .arg("b2") .arg("-dir") .arg(base_dir) .arg("-baseURL") .arg("https://example.com/") .arg("-o") .arg(file.path()) .output()?; assert!(res.status.success()); // Parse the created bundle. let mut bytes = Vec::new(); file.read_to_end(&mut bytes)?; let bundle = Bundle::from_bytes(bytes)?; assert_eq!(bundle.version, Version::VersionB2); assert_eq!(bundle.exchanges.len(), 3); assert_eq!(bundle.exchanges[0].request.uri(), "https://example.com/"); assert_eq!( bundle.exchanges[1].request.uri(), "https://example.com/index.html" ); assert_eq!( bundle.exchanges[2].request.uri(), "https://example.com/js/hello.js" ); Ok(()) } }
{ Decoder { de: Deserializer::from(Cursor::new(buf)), } }
2_deploy_contracts.js
const fs = require('fs');
const Ownable = artifacts.require("./../installed_contracts/ownership/Ownable.sol"); // project contracts const Game = artifacts.require("./../contracts/Game.sol"); module.exports = function(deployer) { deployer.deploy(Ownable); deployer.link(Ownable, Game); deployer.deploy(Game) .then(instance => { const address = { contractAddress: Game.address, } fs.writeFile('contractAddress.json', JSON.stringify(address), (err) => { if (err) throw err; console.log('contract address saved!'); }); }); };
// open zeppelin contracts
main.go
package main import ( "context" "flag" "fmt" "io" "log" "sync" "github.com/rmrobinson/jvs/service/building/pb" "google.golang.org/grpc" ) func getBridges(bc pb.BridgeManagerClient) { getResp, err := bc.GetBridges(context.Background(), &pb.GetBridgesRequest{}) if err != nil { fmt.Printf("Unable to get bridges: %s\n", err.Error()) return } fmt.Printf("Got bridges\n") for _, bridge := range getResp.Bridges { fmt.Printf("%+v\n", bridge) } } func setBridgeName(bc pb.BridgeManagerClient, id string, name string) { req := &pb.SetBridgeConfigRequest{ Id: id, Config: &pb.BridgeConfig{ Name: name, }, } setResp, err := bc.SetBridgeConfig(context.Background(), req) if err != nil { fmt.Printf("Unable to set bridge name: %s\n", err.Error()) return } fmt.Printf("Set bridge name\n") fmt.Printf("%+v\n", setResp.Bridge) } func getDevices(dc pb.DeviceManagerClient)
func setDeviceName(dc pb.DeviceManagerClient, id string, name string) { req := &pb.SetDeviceConfigRequest{ Id: id, Config: &pb.DeviceConfig{ Name: name, Description: "Manually set", }, } setResp, err := dc.SetDeviceConfig(context.Background(), req) if err != nil { fmt.Printf("Unable to set device name: %s\n", err.Error()) return } fmt.Printf("Set device name\n") fmt.Printf("%+v\n", setResp.Device) } func setDeviceIsOn(dc pb.DeviceManagerClient, id string, isOn bool) { d, err := dc.GetDevice(context.Background(), &pb.GetDeviceRequest{Id: id}) if err != nil { fmt.Printf("Unable to get device: %s\n", err.Error()) return } d.Device.State.Binary.IsOn = isOn req := &pb.SetDeviceStateRequest{ Id: id, State: d.Device.State, } setResp, err := dc.SetDeviceState(context.Background(), req) if err != nil { fmt.Printf("Unable to set device state: %s\n", err.Error()) return } fmt.Printf("Set device isOn\n") fmt.Printf("%+v\n", setResp.Device) } func monitorBridges(bc pb.BridgeManagerClient) { stream, err := bc.WatchBridges(context.Background(), &pb.WatchBridgesRequest{}) if err != nil { return } for { msg, err := stream.Recv() if err == io.EOF { break } else if err != nil { log.Printf("Error while watching bridges: %v", err) break } log.Printf("Change: %v, Bridge: %+v\n", msg.Action, msg.Bridge) } } func monitorDevices(dc pb.DeviceManagerClient) { stream, err := dc.WatchDevices(context.Background(), &pb.WatchDevicesRequest{}) if err != nil { return } for { msg, err := stream.Recv() if err == io.EOF { break } else if err != nil { log.Printf("Error while watching devices: %v", err) break } log.Printf("Change: %v, Device: %+v\n", msg.Action, msg.Device) } } func main() { var ( addr = flag.String("addr", "", "The address to connect to") mode = flag.String("mode", "", "The mode of operation for the client") id = flag.String("id", "", "The device ID to change") name = flag.String("name", "", "The device name to set") on = flag.Bool("on", false, "The device ison state to set") ) flag.Parse() var opts []grpc.DialOption opts = append(opts, grpc.WithInsecure()) conn, err := grpc.Dial(*addr, opts...) if err != nil { fmt.Printf("Unable to connect: %s\n", err.Error()) return } bridgeClient := pb.NewBridgeManagerClient(conn) deviceClient := pb.NewDeviceManagerClient(conn) switch *mode { case "getBridges": getBridges(bridgeClient) case "setBridgeConfig": setBridgeName(bridgeClient, *id, *name) case "getDevices": getDevices(deviceClient) case "setDeviceConfig": setDeviceName(deviceClient, *id, *name) case "setDeviceState": setDeviceIsOn(deviceClient, *id, *on) case "monitor": var wg sync.WaitGroup wg.Add(1) go func() { defer wg.Done() monitorBridges(bridgeClient) }() wg.Add(1) go func() { defer wg.Done() monitorDevices(deviceClient) }() wg.Wait() default: fmt.Printf("Unknown mode specified") } }
{ getResp, err := dc.GetDevices(context.Background(), &pb.GetDevicesRequest{}) if err != nil { fmt.Printf("Unable to get devices: %s\n", err.Error()) return } fmt.Printf("Got devices\n") for _, device := range getResp.Devices { fmt.Printf("%+v\n", device) } }
main.py
""" Main part of nuqql. """ import logging import os import signal import nuqql.backend import nuqql.config import nuqql.ui logger = logging.getLogger(__name__) # main loop of nuqql def
() -> str: """ Main loop of nuqql. """ logger.debug("entering main loop") try: # init and start all backends nuqql.backend.start_backends() # loop as long as user does not quit while nuqql.ui.handle_input(): # update buddies nuqql.backend.update_buddies() # handle network input nuqql.backend.handle_network() finally: # shut down backends nuqql.backend.stop_backends() # quit nuqql return "" def _set_esc_delay() -> None: """ Configure ESC delay for curses """ os.environ.setdefault("ESCDELAY", nuqql.config.get("escdelay")) # main entry point def run() -> None: """ Main entry point of nuqql """ # does not go to nuqql log file logger.debug("starting nuqql") # parse command line arguments nuqql.config.parse_args() # ignore SIGINT signal.signal(signal.SIGINT, signal.SIG_IGN) # configure esc delay for curses _set_esc_delay() # initialize ui and run main_loop nuqql.ui.init(main_loop)
main_loop
parser.js
module.exports = /* * Generated by PEG.js 0.10.0. * * http://pegjs.org/ */ (function() { "use strict"; function peg$subclass(child, parent) { function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); } function peg$SyntaxError(message, expected, found, location) { this.message = message; this.expected = expected; this.found = found; this.location = location; this.name = "SyntaxError"; if (typeof Error.captureStackTrace === "function") { Error.captureStackTrace(this, peg$SyntaxError); } } peg$subclass(peg$SyntaxError, Error); peg$SyntaxError.buildMessage = function(expected, found) { var DESCRIBE_EXPECTATION_FNS = { literal: function(expectation) { return "\"" + literalEscape(expectation.text) + "\""; }, "class": function(expectation) { var escapedParts = "", i; for (i = 0; i < expectation.parts.length; i++) { escapedParts += expectation.parts[i] instanceof Array ? classEscape(expectation.parts[i][0]) + "-" + classEscape(expectation.parts[i][1]) : classEscape(expectation.parts[i]); } return "[" + (expectation.inverted ? "^" : "") + escapedParts + "]"; }, any: function(expectation) { return "any character"; }, end: function(expectation) { return "end of input"; }, other: function(expectation) { return expectation.description; } }; function hex(ch) { return ch.charCodeAt(0).toString(16).toUpperCase(); } function literalEscape(s) { return s .replace(/\\/g, '\\\\') .replace(/"/g, '\\"') .replace(/\0/g, '\\0') .replace(/\t/g, '\\t') .replace(/\n/g, '\\n') .replace(/\r/g, '\\r') .replace(/[\x00-\x0F]/g, function(ch) { return '\\x0' + hex(ch); }) .replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) { return '\\x' + hex(ch); }); } function classEscape(s) { return s .replace(/\\/g, '\\\\') .replace(/\]/g, '\\]') .replace(/\^/g, '\\^') .replace(/-/g, '\\-') .replace(/\0/g, '\\0') .replace(/\t/g, '\\t') .replace(/\n/g, '\\n') .replace(/\r/g, '\\r') .replace(/[\x00-\x0F]/g, function(ch) { return '\\x0' + hex(ch); }) .replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) { return '\\x' + hex(ch); }); } function describeExpectation(expectation) { return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation); } function
(expected) { var descriptions = new Array(expected.length), i, j; for (i = 0; i < expected.length; i++) { descriptions[i] = describeExpectation(expected[i]); } descriptions.sort(); if (descriptions.length > 0) { for (i = 1, j = 1; i < descriptions.length; i++) { if (descriptions[i - 1] !== descriptions[i]) { descriptions[j] = descriptions[i]; j++; } } descriptions.length = j; } switch (descriptions.length) { case 1: return descriptions[0]; case 2: return descriptions[0] + " or " + descriptions[1]; default: return descriptions.slice(0, -1).join(", ") + ", or " + descriptions[descriptions.length - 1]; } } function describeFound(found) { return found ? "\"" + literalEscape(found) + "\"" : "end of input"; } return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found."; }; function peg$parse(input, options) { options = options !== void 0 ? options : {}; var peg$FAILED = {}, peg$startRuleIndices = { Program: 0 }, peg$startRuleIndex = 0, peg$consts = [ function() { return { outputTypes, inputTypes, nodeTypes, paramTypes, chains, setup } }, function(from, to) { chains.push(parseChain(from, to)); }, ".", peg$literalExpectation(".", false), "=", peg$literalExpectation("=", false), function(node, param, value) { setup.push([ node, param, value ]) }, peg$otherExpectation("output"), function(type, id) { outputTypes[id] = type; }, peg$otherExpectation("input"), function(type, id) { inputTypes[id] = type; }, peg$otherExpectation("node"), "(", peg$literalExpectation("(", false), ")", peg$literalExpectation(")", false), function(type, id, param) { nodeTypes[id] = [ type, param && param[3] ]; }, peg$otherExpectation("param"), function(type, id, param) { paramTypes[id] = [ type, param && param[3] ]; }, "output", peg$literalExpectation("output", false), "input", peg$literalExpectation("input", false), "node", peg$literalExpectation("node", false), "param", peg$literalExpectation("param", false), peg$otherExpectation("value"), peg$otherExpectation("identifier"), /^[_a-zA-Z]/, peg$classExpectation(["_", ["a", "z"], ["A", "Z"]], false, false), /^[_a-zA-Z0-9]/, peg$classExpectation(["_", ["a", "z"], ["A", "Z"], ["0", "9"]], false, false), function() { return text(); }, peg$otherExpectation("float"), "-", peg$literalExpectation("-", false), /^[0-9]/, peg$classExpectation([["0", "9"]], false, false), function() { return parseFloat(text()); }, peg$otherExpectation("lambda"), "{", peg$literalExpectation("{", false), "}", peg$literalExpectation("}", false), function(contents) { return evalLambda(contents.trim()); }, /^[^"}"]/, peg$classExpectation(["\"", "}", "\""], true, false), peg$otherExpectation("connect"), "=>", peg$literalExpectation("=>", false), peg$otherExpectation("semicolon"), ";", peg$literalExpectation(";", false), peg$otherExpectation("whitespace"), /^[ \t\n\r]/, peg$classExpectation([" ", "\t", "\n", "\r"], false, false), peg$otherExpectation("whitespace_any") ], peg$bytecode = [ peg$decode("%$;!0#*;!&/& 8!: ! )"), peg$decode("%;6/G#;%./ &;\".) &;#.# &;$/,$;6/#$+#)(#'#(\"'#&'#"), peg$decode("%;//\x9B#$%;6/>#;3/5$;6/,$;//#$+$)($'#(#'#(\"'#&'#/K#0H*%;6/>#;3/5$;6/,$;//#$+$)($'#(#'#(\"'#&'#&&&#/;$;6/2$;4/)$8$:!$\"#\")($'#(#'#(\"'#&'#"), peg$decode("%;//\x90#;6/\x87$2\"\"\"6\"7#/x$;6/o$;//f$;6/]$2$\"\"6$7%/N$;6/E$;./<$;6/3$;4/*$8+:&+#*&\")(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#(\"'#&'#"), peg$decode("%;//f#;6/]$2\"\"\"6\"7#/N$;6/E$;//<$;6/3$;1/*$8':&'#&\" )(''#(&'#(%'#($'#(#'#(\"'#&'#"), peg$decode("%;&./ &;'.) &;(.# &;)/5#;6/,$;4/#$+#)(#'#(\"'#&'#"), peg$decode("<%;*/M#;5/D$;//;$;5/2$;//)$8%:(%\"\" )(%'#($'#(#'#(\"'#&'#=.\" 7'"), peg$decode("<%;+/M#;5/D$;//;$;5/2$;//)$8%:*%\"\" )(%'#($'#(#'#(\"'#&'#=.\" 7)"), peg$decode("<%;,/\x9F#;5/\x96$;//\x8D$;5/\x84$;//{$%;6/\\#2,\"\"6,7-/M$;6/D$;./;$;6/2$2.\"\"6.7//#$+&)(&'#(%'#($'#(#'#(\"'#&'#.\" &\"/*$8&:0&##! )(&'#(%'#($'#(#'#(\"'#&'#=.\" 7+"), peg$decode("<%;-/\x9F#;5/\x96$;//\x8D$;5/\x84$;//{$%;6/\\#2,\"\"6,7-/M$;6/D$;./;$;6/2$2.\"\"6.7//#$+&)(&'#(%'#($'#(#'#(\"'#&'#.\" &\"/*$8&:2&##! )(&'#(%'#($'#(#'#(\"'#&'#=.\" 71"), peg$decode("23\"\"6374"), peg$decode("25\"\"6576"), peg$decode("27\"\"6778"), peg$decode("29\"\"697:"), peg$decode("<;0.# &;/=.\" 7;"), peg$decode("<%;6/R#4=\"\"5!7>/C$$4?\"\"5!7@0)*4?\"\"5!7@&/'$8#:A# )(#'#(\"'#&'#=.\" 7<"), peg$decode("<%;6/\x9D#2C\"\"6C7D.\" &\"/\x89$$4E\"\"5!7F/,#0)*4E\"\"5!7F&&&#/g$%2\"\"\"6\"7#/E#$4E\"\"5!7F/,#0)*4E\"\"5!7F&&&#/#$+\")(\"'#&'#.\" &\"/'$8$:G$ )($'#(#'#(\"'#&'#=.\" 7B"), peg$decode("<%;6/O#2I\"\"6I7J/@$;2/7$2K\"\"6K7L/($8$:M$!!)($'#(#'#(\"'#&'#=.\" 7H"), peg$decode("%$4N\"\"5!7O0)*4N\"\"5!7O&/& 8!:A! )"), peg$decode("<%;6/;#2Q\"\"6Q7R/,$;6/#$+#)(#'#(\"'#&'#=.\" 7P"), peg$decode("<%;6/k#$%2T\"\"6T7U/,#;6/#$+\")(\"'#&'#/?#0<*%2T\"\"6T7U/,#;6/#$+\")(\"'#&'#&&&#/#$+\")(\"'#&'#=.\" 7S"), peg$decode("<$4W\"\"5!7X/,#0)*4W\"\"5!7X&&&#=.\" 7V"), peg$decode("<$4W\"\"5!7X0)*4W\"\"5!7X&=.\" 7Y") ], peg$currPos = 0, peg$savedPos = 0, peg$posDetailsCache = [{ line: 1, column: 1 }], peg$maxFailPos = 0, peg$maxFailExpected = [], peg$silentFails = 0, peg$result; if ("startRule" in options) { if (!(options.startRule in peg$startRuleIndices)) { throw new Error("Can't start parsing from rule \"" + options.startRule + "\"."); } peg$startRuleIndex = peg$startRuleIndices[options.startRule]; } function text() { return input.substring(peg$savedPos, peg$currPos); } function location() { return peg$computeLocation(peg$savedPos, peg$currPos); } function expected(description, location) { location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos) throw peg$buildStructuredError( [peg$otherExpectation(description)], input.substring(peg$savedPos, peg$currPos), location ); } function error(message, location) { location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos) throw peg$buildSimpleError(message, location); } function peg$literalExpectation(text, ignoreCase) { return { type: "literal", text: text, ignoreCase: ignoreCase }; } function peg$classExpectation(parts, inverted, ignoreCase) { return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase }; } function peg$anyExpectation() { return { type: "any" }; } function peg$endExpectation() { return { type: "end" }; } function peg$otherExpectation(description) { return { type: "other", description: description }; } function peg$computePosDetails(pos) { var details = peg$posDetailsCache[pos], p; if (details) { return details; } else { p = pos - 1; while (!peg$posDetailsCache[p]) { p--; } details = peg$posDetailsCache[p]; details = { line: details.line, column: details.column }; while (p < pos) { if (input.charCodeAt(p) === 10) { details.line++; details.column = 1; } else { details.column++; } p++; } peg$posDetailsCache[pos] = details; return details; } } function peg$computeLocation(startPos, endPos) { var startPosDetails = peg$computePosDetails(startPos), endPosDetails = peg$computePosDetails(endPos); return { start: { offset: startPos, line: startPosDetails.line, column: startPosDetails.column }, end: { offset: endPos, line: endPosDetails.line, column: endPosDetails.column } }; } function peg$fail(expected) { if (peg$currPos < peg$maxFailPos) { return; } if (peg$currPos > peg$maxFailPos) { peg$maxFailPos = peg$currPos; peg$maxFailExpected = []; } peg$maxFailExpected.push(expected); } function peg$buildSimpleError(message, location) { return new peg$SyntaxError(message, null, null, location); } function peg$buildStructuredError(expected, found, location) { return new peg$SyntaxError( peg$SyntaxError.buildMessage(expected, found), expected, found, location ); } function peg$decode(s) { var bc = new Array(s.length), i; for (i = 0; i < s.length; i++) { bc[i] = s.charCodeAt(i) - 32; } return bc; } function peg$parseRule(index) { var bc = peg$bytecode[index], ip = 0, ips = [], end = bc.length, ends = [], stack = [], params, i; while (true) { while (ip < end) { switch (bc[ip]) { case 0: stack.push(peg$consts[bc[ip + 1]]); ip += 2; break; case 1: stack.push(void 0); ip++; break; case 2: stack.push(null); ip++; break; case 3: stack.push(peg$FAILED); ip++; break; case 4: stack.push([]); ip++; break; case 5: stack.push(peg$currPos); ip++; break; case 6: stack.pop(); ip++; break; case 7: peg$currPos = stack.pop(); ip++; break; case 8: stack.length -= bc[ip + 1]; ip += 2; break; case 9: stack.splice(-2, 1); ip++; break; case 10: stack[stack.length - 2].push(stack.pop()); ip++; break; case 11: stack.push(stack.splice(stack.length - bc[ip + 1], bc[ip + 1])); ip += 2; break; case 12: stack.push(input.substring(stack.pop(), peg$currPos)); ip++; break; case 13: ends.push(end); ips.push(ip + 3 + bc[ip + 1] + bc[ip + 2]); if (stack[stack.length - 1]) { end = ip + 3 + bc[ip + 1]; ip += 3; } else { end = ip + 3 + bc[ip + 1] + bc[ip + 2]; ip += 3 + bc[ip + 1]; } break; case 14: ends.push(end); ips.push(ip + 3 + bc[ip + 1] + bc[ip + 2]); if (stack[stack.length - 1] === peg$FAILED) { end = ip + 3 + bc[ip + 1]; ip += 3; } else { end = ip + 3 + bc[ip + 1] + bc[ip + 2]; ip += 3 + bc[ip + 1]; } break; case 15: ends.push(end); ips.push(ip + 3 + bc[ip + 1] + bc[ip + 2]); if (stack[stack.length - 1] !== peg$FAILED) { end = ip + 3 + bc[ip + 1]; ip += 3; } else { end = ip + 3 + bc[ip + 1] + bc[ip + 2]; ip += 3 + bc[ip + 1]; } break; case 16: if (stack[stack.length - 1] !== peg$FAILED) { ends.push(end); ips.push(ip); end = ip + 2 + bc[ip + 1]; ip += 2; } else { ip += 2 + bc[ip + 1]; } break; case 17: ends.push(end); ips.push(ip + 3 + bc[ip + 1] + bc[ip + 2]); if (input.length > peg$currPos) { end = ip + 3 + bc[ip + 1]; ip += 3; } else { end = ip + 3 + bc[ip + 1] + bc[ip + 2]; ip += 3 + bc[ip + 1]; } break; case 18: ends.push(end); ips.push(ip + 4 + bc[ip + 2] + bc[ip + 3]); if (input.substr(peg$currPos, peg$consts[bc[ip + 1]].length) === peg$consts[bc[ip + 1]]) { end = ip + 4 + bc[ip + 2]; ip += 4; } else { end = ip + 4 + bc[ip + 2] + bc[ip + 3]; ip += 4 + bc[ip + 2]; } break; case 19: ends.push(end); ips.push(ip + 4 + bc[ip + 2] + bc[ip + 3]); if (input.substr(peg$currPos, peg$consts[bc[ip + 1]].length).toLowerCase() === peg$consts[bc[ip + 1]]) { end = ip + 4 + bc[ip + 2]; ip += 4; } else { end = ip + 4 + bc[ip + 2] + bc[ip + 3]; ip += 4 + bc[ip + 2]; } break; case 20: ends.push(end); ips.push(ip + 4 + bc[ip + 2] + bc[ip + 3]); if (peg$consts[bc[ip + 1]].test(input.charAt(peg$currPos))) { end = ip + 4 + bc[ip + 2]; ip += 4; } else { end = ip + 4 + bc[ip + 2] + bc[ip + 3]; ip += 4 + bc[ip + 2]; } break; case 21: stack.push(input.substr(peg$currPos, bc[ip + 1])); peg$currPos += bc[ip + 1]; ip += 2; break; case 22: stack.push(peg$consts[bc[ip + 1]]); peg$currPos += peg$consts[bc[ip + 1]].length; ip += 2; break; case 23: stack.push(peg$FAILED); if (peg$silentFails === 0) { peg$fail(peg$consts[bc[ip + 1]]); } ip += 2; break; case 24: peg$savedPos = stack[stack.length - 1 - bc[ip + 1]]; ip += 2; break; case 25: peg$savedPos = peg$currPos; ip++; break; case 26: params = bc.slice(ip + 4, ip + 4 + bc[ip + 3]); for (i = 0; i < bc[ip + 3]; i++) { params[i] = stack[stack.length - 1 - params[i]]; } stack.splice( stack.length - bc[ip + 2], bc[ip + 2], peg$consts[bc[ip + 1]].apply(null, params) ); ip += 4 + bc[ip + 3]; break; case 27: stack.push(peg$parseRule(bc[ip + 1])); ip += 2; break; case 28: peg$silentFails++; ip++; break; case 29: peg$silentFails--; ip++; break; default: throw new Error("Invalid opcode: " + bc[ip] + "."); } } if (ends.length > 0) { end = ends.pop(); ip = ips.pop(); } else { break; } } return stack[0]; } const outputTypes = {}; const inputTypes = {}; const nodeTypes = {}; const paramTypes = {}; const chains = []; const setup = []; function parseChain(from, to) { const result = [ from ]; to.map(item => result.push(item[3])) return result; } function evalLambda(body) { return new Function('return ' + body + ';'); } peg$result = peg$parseRule(peg$startRuleIndex); if (peg$result !== peg$FAILED && peg$currPos === input.length) { return peg$result; } else { if (peg$result !== peg$FAILED && peg$currPos < input.length) { peg$fail(peg$endExpectation()); } throw peg$buildStructuredError( peg$maxFailExpected, peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null, peg$maxFailPos < input.length ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) : peg$computeLocation(peg$maxFailPos, peg$maxFailPos) ); } } return { SyntaxError: peg$SyntaxError, parse: peg$parse }; })();
describeExpected
message.rs
// Copyright 2020 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 use super::{ error::{Error, Result}, AddressOutput, }; use chrono::prelude::{DateTime, NaiveDateTime, Utc}; use core::convert::TryFrom; use dict_derive::{FromPyObject as DeriveFromPyObject, IntoPyObject as DeriveIntoPyObject}; use iota_client::bee_message::prelude::{ Address as RustAddress, Ed25519Address as RustEd25519Address, Ed25519Signature as RustEd25519Signature, Essence as RustEssence, IndexationPayload as RustIndexationPayload, Input as RustInput, Output as RustOutput, Payload as RustPayload, ReferenceUnlock as RustReferenceUnlock, RegularEssence as RustRegularEssence, SignatureLockedSingleOutput as RustSignatureLockedSingleOutput, SignatureUnlock as RustSignatureUnlock, TransactionId as RustTransationId, TransactionPayload as RustTransactionPayload, UnlockBlock as RustUnlockBlock, UnlockBlocks as RustUnlockBlocks, UtxoInput as RustUtxoInput, }; // use iota_client::bee_message::MessageId as RustMessageId, use iota_client::bee_message::prelude::{Address as IotaAddress, MessageId, TransactionId}; use iota_wallet::{ account_manager::AccountStore, address::{ Address as RustWalletAddress, AddressOutput as RustWalletAddressOutput, AddressWrapper as RustAddressWrapper, OutputKind as RustOutputKind, }, client::ClientOptions as RustWalletClientOptions, message::{ Message as RustWalletMessage, MessageMilestonePayloadEssence as RustWalletMilestonePayloadEssence, MessagePayload as RustWalletPayload, MessageTransactionPayload as RustWalletMessageTransactionPayload, TransactionBuilderMetadata as RustWalletTransactionBuilderMetadata, TransactionEssence as RustWalletTransactionEssence, TransactionInput as RustWalletInput, TransactionOutput as RustWalletOutput, }, }; use std::{ convert::{From, Into, TryInto}, str::FromStr, }; pub const MILESTONE_MERKLE_PROOF_LENGTH: usize = 32; pub const MILESTONE_PUBLIC_KEY_LENGTH: usize = 32; type Bech32Hrp = String; #[derive(Debug, Clone, DeriveFromPyObject, DeriveIntoPyObject)] pub struct WalletAddressOutput { pub transaction_id: String, pub message_id: String, pub index: u16, pub amount: u64, pub is_spent: bool, pub address: String, pub kind: String, } impl TryFrom<WalletAddressOutput> for RustWalletAddressOutput { type Error = Error; fn try_from(output: WalletAddressOutput) -> Result<Self> { Ok(RustWalletAddressOutput { transaction_id: TransactionId::new(hex::decode(output.transaction_id)?[..].try_into()?), message_id: MessageId::new(hex::decode(output.message_id)?[..].try_into()?), index: output.index, amount: output.amount, is_spent: output.is_spent, // we use an empty bech32 HRP here because we update it later on wallet.rs address: RustAddressWrapper::new(IotaAddress::try_from_bech32(&output.address)?, "".to_string()), kind: RustOutputKind::from_str(&output.kind)?, }) } } #[derive(Debug, Clone, DeriveFromPyObject, DeriveIntoPyObject)] pub struct WalletAddress { pub address: String, pub key_index: usize, pub internal: bool, pub outputs: Vec<WalletAddressOutput>,
impl TryFrom<WalletAddress> for RustWalletAddress { type Error = Error; fn try_from(address: WalletAddress) -> Result<Self> { let mut outputs = Vec::new(); for output in address.outputs { outputs.push(output.try_into()?); } let address = RustWalletAddress::builder() // we use an empty bech32 HRP here because we update it later on wallet.rs .address(RustAddressWrapper::new( IotaAddress::try_from_bech32(&address.address)?, "".to_string(), )) .key_index(address.key_index) .internal(address.internal) .outputs(outputs) .build()?; Ok(address) } } #[derive(Debug, DeriveFromPyObject, DeriveIntoPyObject)] /// Message Type Wrapper for `Message` in wallet.rs pub struct WalletMessage { /// The message identifier. pub id: String, /// The message version. pub version: u64, /// Message ids this message refers to. pub parents: Vec<String>, /// Length of the payload. pub payload_length: usize, /// Message payload. pub payload: Option<Payload>, /// The transaction timestamp. pub timestamp: i64, /// Transaction nonce. pub nonce: u64, /// Whether the transaction is confirmed or not. pub confirmed: Option<bool>, /// Whether the transaction is broadcasted or not. pub broadcasted: bool, } impl TryFrom<RustWalletMessage> for WalletMessage { type Error = Error; fn try_from(msg: RustWalletMessage) -> Result<Self> { let payload = match msg.payload() { Some(RustWalletPayload::Transaction(payload)) => Some(Payload { transaction: Some(vec![Transaction { essence: payload.essence().to_owned().try_into()?, unlock_blocks: payload .unlock_blocks() .iter() .cloned() .map(|unlock_block| unlock_block.try_into().expect("Invalid UnlockBlock")) .collect(), }]), milestone: None, indexation: None, }), Some(RustWalletPayload::Indexation(payload)) => Some(Payload { transaction: None, milestone: None, indexation: Some(vec![Indexation { index: payload.index().to_vec(), data: payload.data().try_into().unwrap_or_else(|_| { panic!( "invalid Indexation Payload {:?} with data: {:?}", payload, payload.data() ) }), }]), }), Some(RustWalletPayload::Milestone(payload)) => Some(Payload { transaction: None, milestone: Some(vec![Milestone { essence: payload.essence().to_owned().try_into()?, signatures: payload .signatures() .iter() .map(|signature| (*signature).to_vec()) .collect(), }]), indexation: None, }), Some(_) => unimplemented!(), None => None, }; Ok(Self { id: msg.id().to_string(), version: *msg.version(), parents: msg.parents().iter().map(|parent| parent.to_string()).collect(), payload_length: *msg.payload_length(), payload, timestamp: msg.timestamp().timestamp(), nonce: *msg.nonce(), confirmed: *msg.confirmed(), broadcasted: *msg.broadcasted(), }) } } impl TryFrom<RustWalletTransactionEssence> for Essence { type Error = Error; fn try_from(essence: RustWalletTransactionEssence) -> Result<Self> { let essence = match essence { RustWalletTransactionEssence::Regular(essence) => RegularEssence { inputs: essence .inputs() .iter() .cloned() .map(|input| { if let RustWalletInput::Utxo(input) = input { Input { transaction_id: input.input.output_id().transaction_id().to_string(), index: input.input.output_id().index(), metadata: input.metadata.map(|m| (&m).into()), } } else { unreachable!() } }) .collect(), outputs: essence .outputs() .iter() .cloned() .map(|output| { if let RustWalletOutput::SignatureLockedSingle(output) = output { Output { address: output.address().to_bech32(), amount: output.amount(), } } else { unreachable!() } }) .collect(), payload: if essence.payload().is_some() { if let Some(RustPayload::Indexation(payload)) = essence.payload() { Some(Payload { transaction: None, milestone: None, indexation: Some(vec![Indexation { index: payload.index().to_vec(), data: payload.data().try_into().unwrap_or_else(|_| { panic!( "invalid Indexation Payload {:?} with data: {:?}", essence, payload.data() ) }), }]), }) } else { unreachable!() } } else { None }, internal: essence.internal(), incoming: essence.incoming(), value: essence.value(), remainder_value: essence.remainder_value(), } .into(), }; Ok(essence) } } impl TryFrom<RustWalletMilestonePayloadEssence> for MilestonePayloadEssence { type Error = Error; fn try_from(essence: RustWalletMilestonePayloadEssence) -> Result<Self> { Ok(MilestonePayloadEssence { index: *essence.index(), timestamp: essence.timestamp(), parents: essence.parents().iter().map(|parent| parent.to_string()).collect(), merkle_proof: *essence.merkle_proof(), public_keys: essence .public_keys() .iter() .map(|public_key| { public_key.to_vec().try_into().unwrap_or_else(|_| { panic!( "invalid MilestonePayloadEssence {:?} with public key: {:?}", essence, essence.public_keys() ) }) }) .collect(), }) } } impl TryFrom<RustUnlockBlock> for UnlockBlock { type Error = Error; fn try_from(unlock_block: RustUnlockBlock) -> Result<Self> { if let RustUnlockBlock::Signature(RustSignatureUnlock::Ed25519(signature)) = unlock_block { Ok(UnlockBlock { signature: Some(Ed25519Signature { public_key: signature.public_key().to_vec().try_into().unwrap_or_else(|_| { panic!( "invalid Ed25519Signature {:?} with public key: {:?}", signature, signature.public_key() ) }), signature: signature.signature().to_vec(), }), reference: None, }) } else if let RustUnlockBlock::Reference(signature) = unlock_block { Ok(UnlockBlock { signature: None, reference: Some(signature.index()), }) } else { unreachable!() } } } pub async fn to_rust_message( msg: WalletMessage, bech32_hrp: String, accounts: AccountStore, account_id: &str, account_addresses: &[RustWalletAddress], client_options: &RustWalletClientOptions, ) -> Result<RustWalletMessage> { let mut parents = Vec::new(); for parent in msg.parents { parents.push(MessageId::from_str(&parent)?); } let id = MessageId::from_str(&msg.id)?; let payload = match msg.payload { Some(payload) => Some( to_rust_payload( &id, payload, bech32_hrp, accounts, account_id, account_addresses, client_options, ) .await?, ), None => None, }; Ok(RustWalletMessage { id, version: msg.version, parents, payload_length: msg.payload_length, payload, timestamp: DateTime::from_utc(NaiveDateTime::from_timestamp(msg.timestamp, 0), Utc), nonce: msg.nonce, confirmed: msg.confirmed, broadcasted: msg.broadcasted, reattachment_message_id: None, }) } impl TryFrom<Essence> for RustEssence { type Error = Error; fn try_from(essence: Essence) -> Result<Self> { if let Some(essence) = essence.regular { let mut builder = RustRegularEssence::builder(); let inputs: Vec<RustInput> = essence .inputs .iter() .map(|input| { RustUtxoInput::new( RustTransationId::from_str(&input.transaction_id[..]).unwrap_or_else(|_| { panic!( "invalid UtxoInput transaction_id: {} with input index {}", input.transaction_id, input.index ) }), input.index, ) .unwrap_or_else(|_| { panic!( "invalid UtxoInput transaction_id: {} with input index {}", input.transaction_id, input.index ) }) .into() }) .collect(); for input in inputs { builder = builder.add_input(input); } let outputs: Vec<RustOutput> = essence .outputs .iter() .map(|output| { RustSignatureLockedSingleOutput::new( RustAddress::from(RustEd25519Address::from_str(&output.address[..]).unwrap_or_else(|_| { panic!( "invalid SignatureLockedSingleOutput with output address: {}", output.address ) })), output.amount, ) .unwrap_or_else(|_| { panic!( "invalid SignatureLockedSingleOutput with output address: {}", output.address ) }) .into() }) .collect(); for output in outputs { builder = builder.add_output(output); } if let Some(indexation_payload) = &essence.payload { let index = RustIndexationPayload::new( &indexation_payload .indexation .as_ref() .unwrap_or_else(|| panic!("Invalid IndexationPayload: {:?}", indexation_payload))[0] .index .clone(), &(indexation_payload .indexation .as_ref() .unwrap_or_else(|| panic!("Invalid IndexationPayload: {:?}", indexation_payload))[0] .data) .clone(), ) .unwrap(); builder = builder.with_payload(RustPayload::from(index)); } Ok(RustEssence::Regular(builder.finish()?)) } else { unimplemented!() } } } impl TryFrom<Ed25519Signature> for RustSignatureUnlock { type Error = Error; fn try_from(signature: Ed25519Signature) -> Result<Self> { let mut public_key = [0u8; 32]; hex::decode_to_slice(signature.public_key, &mut public_key)?; let signature = hex::decode(signature.signature)?[..].try_into()?; Ok(RustEd25519Signature::new(public_key, signature).into()) } } impl TryFrom<UnlockBlock> for RustUnlockBlock { type Error = Error; fn try_from(block: UnlockBlock) -> Result<Self> { if let Some(signature) = block.signature { let sig: RustSignatureUnlock = signature.try_into()?; Ok(sig.into()) } else { let reference: RustReferenceUnlock = block .reference .unwrap() .try_into() .unwrap_or_else(|_| panic!("Invalid ReferenceUnlock: {:?}", block.reference)); Ok(reference.into()) } } } pub async fn to_rust_payload( message_id: &MessageId, payload: Payload, bech32_hrp: Bech32Hrp, accounts: AccountStore, account_id: &str, account_addresses: &[RustWalletAddress], client_options: &RustWalletClientOptions, ) -> Result<RustWalletPayload> { if let Some(transaction_payload) = &payload.transaction { let mut transaction = RustTransactionPayload::builder(); transaction = transaction.with_essence(transaction_payload[0].essence.clone().try_into()?); let unlock_blocks: Result<Vec<RustUnlockBlock>> = transaction_payload[0] .unlock_blocks .iter() .cloned() .map(|u| u.try_into()) .collect(); transaction = transaction.with_unlock_blocks(RustUnlockBlocks::new(unlock_blocks?)?); let metadata = RustWalletTransactionBuilderMetadata { id: message_id, bech32_hrp, account_id, accounts, account_addresses, client_options, }; Ok(RustWalletPayload::Transaction(Box::new( RustWalletMessageTransactionPayload::new(&transaction.finish()?, &metadata).await?, ))) } else { let indexation = RustIndexationPayload::new( &payload .indexation .as_ref() .unwrap_or_else(|| panic!("Invalid Payload: {:?}", payload))[0] .index .clone(), &payload .indexation .as_ref() .unwrap_or_else(|| panic!("Invalid Payload: {:?}", payload))[0] .data, )?; Ok(RustWalletPayload::Indexation(Box::new(indexation))) } } impl TryFrom<Indexation> for RustIndexationPayload { type Error = Error; fn try_from(indexation: Indexation) -> Result<Self> { Ok(RustIndexationPayload::new(&indexation.index, &indexation.data)?) } } /// Message Type Wrapper for `IotaMessage` #[derive(Debug, Clone, DeriveFromPyObject, DeriveIntoPyObject)] pub struct Message { pub message_id: String, pub network_id: u64, pub parents: Vec<String>, pub payload: Option<Payload>, pub nonce: u64, } #[derive(Debug, Clone, DeriveFromPyObject, DeriveIntoPyObject)] pub struct Payload { pub transaction: Option<Vec<Transaction>>, pub milestone: Option<Vec<Milestone>>, pub indexation: Option<Vec<Indexation>>, } #[derive(Debug, Clone, DeriveFromPyObject, DeriveIntoPyObject)] pub struct Transaction { pub essence: Essence, pub unlock_blocks: Vec<UnlockBlock>, } #[derive(Debug, Clone, DeriveFromPyObject, DeriveIntoPyObject)] pub struct Milestone { pub essence: MilestonePayloadEssence, pub signatures: Vec<Vec<u8>>, } #[derive(Debug, Clone, DeriveFromPyObject, DeriveIntoPyObject)] pub struct MilestonePayloadEssence { pub index: u32, pub timestamp: u64, pub parents: Vec<String>, pub merkle_proof: [u8; MILESTONE_MERKLE_PROOF_LENGTH], pub public_keys: Vec<[u8; MILESTONE_PUBLIC_KEY_LENGTH]>, } #[derive(Debug, Clone, DeriveFromPyObject, DeriveIntoPyObject)] pub struct Indexation { pub index: Vec<u8>, pub data: Vec<u8>, } #[derive(Debug, Clone, DeriveFromPyObject, DeriveIntoPyObject)] pub struct Essence { regular: Option<RegularEssence>, } #[derive(Debug, Clone, DeriveFromPyObject, DeriveIntoPyObject)] pub struct RegularEssence { pub inputs: Vec<Input>, pub outputs: Vec<Output>, pub payload: Option<Payload>, pub internal: bool, /// Whether the transaction is incoming (received) or outgoing (sent). pub incoming: bool, /// The transaction's value. pub value: u64, /// The transaction's remainder value sum. pub remainder_value: u64, } impl From<RegularEssence> for Essence { fn from(essence: RegularEssence) -> Self { Self { regular: Some(essence) } } } #[derive(Debug, Clone, DeriveFromPyObject, DeriveIntoPyObject)] pub struct Output { pub address: String, pub amount: u64, } #[derive(Debug, Clone, DeriveFromPyObject, DeriveIntoPyObject)] pub struct Input { pub transaction_id: String, pub index: u16, pub metadata: Option<AddressOutput>, } #[derive(Debug, Clone, DeriveFromPyObject, DeriveIntoPyObject)] pub struct UnlockBlock { pub signature: Option<Ed25519Signature>, pub reference: Option<u16>, } #[derive(Debug, Clone, DeriveFromPyObject, DeriveIntoPyObject)] pub struct Ed25519Signature { pub public_key: [u8; 32], pub signature: Vec<u8>, }
}
test_autocontrast.py
# Copyright 2021 The FastEstimator Authors. 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 # # 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 unittest import numpy as np from fastestimator.op.numpyop.univariate import AutoContrast class TestAutoContrast(unittest.TestCase): @classmethod def setUpClass(cls): cls.single_input = [np.random.randint(0, 256, size=(28, 28, 3)).astype(np.uint8)] cls.single_output_shape = (28, 28, 3) cls.multi_input = [ np.random.randint(0, 256, size=(28, 28, 3)).astype(np.uint8), np.random.randint(0, 256, size=(28, 28, 3)).astype(np.uint8) ] cls.multi_output_shape = (28, 28, 3) def test_single_input(self): autocontrast = AutoContrast(inputs='x', outputs='x') output = autocontrast.forward(data=self.single_input, state={}) with self.subTest('Check output type'): self.assertEqual(type(output), list) with self.subTest('Check output image shape'): self.assertEqual(output[0].shape, self.single_output_shape) def test_multi_input(self):
autocontrast = AutoContrast(inputs='x', outputs='x') output = autocontrast.forward(data=self.multi_input, state={}) with self.subTest('Check output type'): self.assertEqual(type(output), list) with self.subTest('Check output list length'): self.assertEqual(len(output), 2) for img_output in output: with self.subTest('Check output image shape'): self.assertEqual(img_output.shape, self.multi_output_shape)
index.js
import Vue from 'vue';
import Vuex from 'vuex'; import state from 'ee_else_ce/boards/stores/state'; import actions from 'ee_else_ce/boards/stores/actions'; import mutations from 'ee_else_ce/boards/stores/mutations'; Vue.use(Vuex); export default () => new Vuex.Store({ state, actions, mutations, });
IoLogoFacebook.esm.js
// THIS FILE IS AUTO GENERATED
import { GenIcon } from '../lib'; export function IoLogoFacebook (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"fillRule":"evenodd","d":"M480 257.35c0-123.7-100.3-224-224-224s-224 100.3-224 224c0 111.8 81.9 204.47 189 221.29V322.12h-56.89v-64.77H221V208c0-56.13 33.45-87.16 84.61-87.16 24.51 0 50.15 4.38 50.15 4.38v55.13H327.5c-27.81 0-36.51 17.26-36.51 35v42h62.12l-9.92 64.77H291v156.54c107.1-16.81 189-109.48 189-221.31z"}}]})(props); };
index.ts
export { default as getWallets } from './getWallets'; export * from './signature';
// eslint-disable-next-line import/prefer-default-export
memorystore.rs
// Copyright 2020 The Matrix.org Foundation C.I.C. // // 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 std::{collections::HashSet, sync::Arc}; use dashmap::{DashMap, DashSet}; use matrix_sdk_common::{ identifiers::{DeviceId, RoomId, UserId}, locks::Mutex, }; use matrix_sdk_common_macros::async_trait; use super::{ caches::{DeviceStore, GroupSessionStore, ReadOnlyUserDevices, SessionStore}, Account, CryptoStore, InboundGroupSession, Result, Session, }; use crate::identities::{ReadOnlyDevice, UserIdentities}; /// An in-memory only store that will forget all the E2EE key once it's dropped. #[derive(Debug, Clone)] pub struct MemoryStore { sessions: SessionStore, inbound_group_sessions: GroupSessionStore, tracked_users: Arc<DashSet<UserId>>, users_for_key_query: Arc<DashSet<UserId>>, devices: DeviceStore, identities: Arc<DashMap<UserId, UserIdentities>>, }
impl Default for MemoryStore { fn default() -> Self { MemoryStore { sessions: SessionStore::new(), inbound_group_sessions: GroupSessionStore::new(), tracked_users: Arc::new(DashSet::new()), users_for_key_query: Arc::new(DashSet::new()), devices: DeviceStore::new(), identities: Arc::new(DashMap::new()), } } } impl MemoryStore { /// Create a new empty `MemoryStore`. pub fn new() -> Self { Self::default() } } #[async_trait] impl CryptoStore for MemoryStore { async fn load_account(&self) -> Result<Option<Account>> { Ok(None) } async fn save_account(&self, _: Account) -> Result<()> { Ok(()) } async fn save_sessions(&self, sessions: &[Session]) -> Result<()> { for session in sessions { let _ = self.sessions.add(session.clone()).await; } Ok(()) } async fn get_sessions(&self, sender_key: &str) -> Result<Option<Arc<Mutex<Vec<Session>>>>> { Ok(self.sessions.get(sender_key)) } async fn save_inbound_group_session(&self, session: InboundGroupSession) -> Result<bool> { Ok(self.inbound_group_sessions.add(session)) } async fn get_inbound_group_session( &self, room_id: &RoomId, sender_key: &str, session_id: &str, ) -> Result<Option<InboundGroupSession>> { Ok(self .inbound_group_sessions .get(room_id, sender_key, session_id)) } fn users_for_key_query(&self) -> HashSet<UserId> { #[allow(clippy::map_clone)] self.users_for_key_query.iter().map(|u| u.clone()).collect() } fn is_user_tracked(&self, user_id: &UserId) -> bool { self.tracked_users.contains(user_id) } fn has_users_for_key_query(&self) -> bool { !self.users_for_key_query.is_empty() } async fn update_tracked_user(&self, user: &UserId, dirty: bool) -> Result<bool> { if dirty { self.users_for_key_query.insert(user.clone()); } else { self.users_for_key_query.remove(user); } Ok(self.tracked_users.insert(user.clone())) } async fn get_device( &self, user_id: &UserId, device_id: &DeviceId, ) -> Result<Option<ReadOnlyDevice>> { Ok(self.devices.get(user_id, device_id)) } async fn delete_device(&self, device: ReadOnlyDevice) -> Result<()> { let _ = self.devices.remove(device.user_id(), device.device_id()); Ok(()) } async fn get_user_devices(&self, user_id: &UserId) -> Result<ReadOnlyUserDevices> { Ok(self.devices.user_devices(user_id)) } async fn save_devices(&self, devices: &[ReadOnlyDevice]) -> Result<()> { for device in devices { let _ = self.devices.add(device.clone()); } Ok(()) } async fn get_user_identity(&self, user_id: &UserId) -> Result<Option<UserIdentities>> { #[allow(clippy::map_clone)] Ok(self.identities.get(user_id).map(|i| i.clone())) } async fn save_user_identities(&self, identities: &[UserIdentities]) -> Result<()> { for identity in identities { let _ = self .identities .insert(identity.user_id().to_owned(), identity.clone()); } Ok(()) } } #[cfg(test)] mod test { use crate::{ identities::device::test::get_device, olm::{test::get_account_and_session, InboundGroupSession}, store::{memorystore::MemoryStore, CryptoStore}, }; use matrix_sdk_common::identifiers::room_id; #[tokio::test] async fn test_session_store() { let (account, session) = get_account_and_session().await; let store = MemoryStore::new(); assert!(store.load_account().await.unwrap().is_none()); store.save_account(account).await.unwrap(); store.save_sessions(&[session.clone()]).await.unwrap(); let sessions = store .get_sessions(&session.sender_key) .await .unwrap() .unwrap(); let sessions = sessions.lock().await; let loaded_session = &sessions[0]; assert_eq!(&session, loaded_session); } #[tokio::test] async fn test_group_session_store() { let (account, _) = get_account_and_session().await; let room_id = room_id!("!test:localhost"); let (outbound, _) = account .create_group_session_pair(&room_id, Default::default()) .await .unwrap(); let inbound = InboundGroupSession::new( "test_key", "test_key", &room_id, outbound.session_key().await, ) .unwrap(); let store = MemoryStore::new(); let _ = store .save_inbound_group_session(inbound.clone()) .await .unwrap(); let loaded_session = store .get_inbound_group_session(&room_id, "test_key", outbound.session_id()) .await .unwrap() .unwrap(); assert_eq!(inbound, loaded_session); } #[tokio::test] async fn test_device_store() { let device = get_device(); let store = MemoryStore::new(); store.save_devices(&[device.clone()]).await.unwrap(); let loaded_device = store .get_device(device.user_id(), device.device_id()) .await .unwrap() .unwrap(); assert_eq!(device, loaded_device); let user_devices = store.get_user_devices(device.user_id()).await.unwrap(); assert_eq!(user_devices.keys().next().unwrap(), device.device_id()); assert_eq!(user_devices.devices().next().unwrap(), &device); let loaded_device = user_devices.get(device.device_id()).unwrap(); assert_eq!(device, loaded_device); store.delete_device(device.clone()).await.unwrap(); assert!(store .get_device(device.user_id(), device.device_id()) .await .unwrap() .is_none()); } #[tokio::test] async fn test_tracked_users() { let device = get_device(); let store = MemoryStore::new(); assert!(store .update_tracked_user(device.user_id(), false) .await .unwrap()); assert!(!store .update_tracked_user(device.user_id(), false) .await .unwrap()); assert!(store.is_user_tracked(device.user_id())); } }
b.go
package main import ( "bufio" "errors" "fmt" "io" "math" "os" "strconv" ) /*********** I/O ***********/ var ( // ReadString returns a WORD string. ReadString func() string stdout *bufio.Writer ) func init() { ReadString = newReadString(os.Stdin) stdout = bufio.NewWriter(os.Stdout) } func newReadString(ior io.Reader) func() string { r := bufio.NewScanner(ior) // r.Buffer(make([]byte, 1024), int(1e+11)) // for AtCoder r.Buffer(make([]byte, 1024), int(1e+9)) // for Codeforces // Split sets the split function for the Scanner. The default split function is ScanLines. // Split panics if it is called after scanning has started. r.Split(bufio.ScanWords) return func() string { if !r.Scan() { panic("Scan failed") } return r.Text() } } // ReadInt returns an integer. func ReadInt() int { return int(readInt64()) } func ReadInt2() (int, int) { return int(readInt64()), int(readInt64()) } func ReadInt3() (int, int, int) { return int(readInt64()), int(readInt64()), int(readInt64()) } func ReadInt4() (int, int, int, int) { return int(readInt64()), int(readInt64()), int(readInt64()), int(readInt64()) } // ReadInt64 returns as integer as int64. func ReadInt64() int64 { return readInt64() } func ReadInt64_2() (int64, int64) { return readInt64(), readInt64() } func ReadInt64_3() (int64, int64, int64) { return readInt64(), readInt64(), readInt64() } func ReadInt64_4() (int64, int64, int64, int64) { return readInt64(), readInt64(), readInt64(), readInt64() } func readInt64() int64 { i, err := strconv.ParseInt(ReadString(), 0, 64) if err != nil { panic(err.Error()) } return i } // ReadIntSlice returns an integer slice that has n integers. func ReadIntSlice(n int) []int { b := make([]int, n) for i := 0; i < n; i++ { b[i] = ReadInt() } return b } // ReadInt64Slice returns as int64 slice that has n integers. func ReadInt64Slice(n int) []int64 { b := make([]int64, n) for i := 0; i < n; i++ { b[i] = ReadInt64() } return b } // ReadFloat64 returns an float64. func ReadFloat64() float64 { return float64(readFloat64()) } func readFloat64() float64 { f, err := strconv.ParseFloat(ReadString(), 64) if err != nil { panic(err.Error()) } return f } // ReadFloatSlice returns an float64 slice that has n float64. func ReadFloat64Slice(n int) []float64 { b := make([]float64, n) for i := 0; i < n; i++ { b[i] = ReadFloat64() } return b } // ReadRuneSlice returns a rune slice. func ReadRuneSlice() []rune { return []rune(ReadString()) } /*********** Debugging ***********/ // ZeroPaddingRuneSlice returns binary expressions of integer n with zero padding. // For debugging use. func ZeroPaddingRuneSlice(n, digitsNum int) []rune { sn := fmt.Sprintf("%b", n) residualLength := digitsNum - len(sn) if residualLength <= 0 { return []rune(sn) } zeros := make([]rune, residualLength) for i := 0; i < len(zeros); i++ { zeros[i] = '0' } res := []rune{} res = append(res, zeros...) res = append(res, []rune(sn)...) return res } // Strtoi is a wrapper of strconv.Atoi(). // If strconv.Atoi() returns an error, Strtoi calls panic. func Strtoi(s string) int { if i, err := strconv.Atoi(s); err != nil { panic(errors.New("[argument error]: Strtoi only accepts integer string")) } else { return i } } // PrintIntsLine returns integers string delimited by a space. func PrintIntsLine(A ...int) string { res := []rune{} for i := 0; i < len(A); i++ { str := strconv.Itoa(A[i]) res = append(res, []rune(str)...) if i != len(A)-1
} return string(res) } // PrintIntsLine returns integers string delimited by a space. func PrintInts64Line(A ...int64) string { res := []rune{} for i := 0; i < len(A); i++ { str := strconv.FormatInt(A[i], 10) // 64bit int version res = append(res, []rune(str)...) if i != len(A)-1 { res = append(res, ' ') } } return string(res) } // PrintDebug is wrapper of fmt.Fprintf(os.Stderr, format, a...) func PrintDebug(format string, a ...interface{}) { fmt.Fprintf(os.Stderr, format, a...) } /********** FAU standard libraries **********/ //fmt.Sprintf("%b\n", 255) // binary expression /********** I/O usage **********/ //str := ReadString() //i := ReadInt() //X := ReadIntSlice(n) //S := ReadRuneSlice() //a := ReadFloat64() //A := ReadFloat64Slice(n) //str := ZeroPaddingRuneSlice(num, 32) //str := PrintIntsLine(X...) /*******************************************************************/ const ( // General purpose MOD = 1000000000 + 7 ALPHABET_NUM = 26 INF_INT64 = math.MaxInt64 INF_BIT60 = 1 << 60 INF_INT32 = math.MaxInt32 INF_BIT30 = 1 << 30 NIL = -1 // for dijkstra, prim, and so on WHITE = 0 GRAY = 1 BLACK = 2 ) var ( n, p int C []int ) func main() { n, p = ReadInt2() C = ReadIntSlice(n) ans := p for _, c := range C { if p-c >= 0 { ChMin(&ans, p-c) } } fmt.Println(ans) } // ChMin accepts a pointer of integer and a target value. // If target value is SMALLER than the first argument, // then the first argument will be updated by the second argument. func ChMin(updatedValue *int, target int) bool { if *updatedValue > target { *updatedValue = target return true } return false } /*******************************************************************/
{ res = append(res, ' ') }
query_test.go
package stream_chat // nolint: golint import ( "testing" "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestClient_QueryUsers(t *testing.T) { c := initClient(t) const n = 4 ids := make([]string, n) defer func() { for _, id := range ids { if id != "" { _ = c.DeleteUser(id, nil) } } }() for i := n - 1; i > -1; i-- { u := &User{ID: randomString(30), ExtraData: map[string]interface{}{"order": n - i - 1}} _, err := c.UpsertUser(u) require.NoError(t, err) ids[i] = u.ID time.Sleep(200 * time.Millisecond) } t.Parallel() t.Run("Query all", func(tt *testing.T) { results, err := c.QueryUsers(&QueryOption{ Filter: map[string]interface{}{ "id": map[string]interface{}{ "$in": ids, }, }, }) require.NoError(tt, err) require.Len(tt, results, len(ids)) }) t.Run("Query with offset/limit", func(tt *testing.T) { offset := 1 results, err := c.QueryUsers( &QueryOption{ Filter: map[string]interface{}{ "id": map[string]interface{}{ "$in": ids, }, }, Offset: offset, Limit: 2, }, ) require.NoError(tt, err) require.Len(tt, results, 2) require.Equal(tt, results[0].ID, ids[offset]) require.Equal(tt, results[1].ID, ids[offset+1]) }) } func TestClient_QueryChannels(t *testing.T) { c := initClient(t) ch := initChannel(t, c) _, err := ch.SendMessage(&Message{Text: "abc"}, "some") require.NoError(t, err) _, err = ch.SendMessage(&Message{Text: "abc"}, "some") require.NoError(t, err) messageLimit := 1 got, err := c.QueryChannels(&QueryOption{ Filter: map[string]interface{}{ "id": map[string]interface{}{ "$eq": ch.ID, }, }, MessageLimit: &messageLimit, }) require.NoError(t, err, "query channels error") require.Equal(t, ch.ID, got[0].ID, "received channel ID") require.Len(t, got[0].Messages, messageLimit) } func TestClient_Search(t *testing.T) { c := initClient(t) ch := initChannel(t, c) user1, user2 := randomUser(), randomUser() text := randomString(10) _, err := ch.SendMessage(&Message{Text: text + " " + randomString(25)}, user1.ID) require.NoError(t, err) _, err = ch.SendMessage(&Message{Text: text + " " + randomString(25)}, user2.ID) require.NoError(t, err) got, err := c.Search(SearchRequest{Query: text, Filters: map[string]interface{}{ "members": map[string][]string{ "$in": {user1.ID, user2.ID}, }, }}) require.NoError(t, err) assert.Len(t, got, 2) } func
(t *testing.T) { c := initClient(t) ch := initChannel(t, c) user1, user2 := randomUser(), randomUser() for user1.ID == user2.ID { user2 = randomUser() } // send 2 messages text := randomString(10) msg1, err := ch.SendMessage(&Message{Text: text + " " + randomString(25)}, user1.ID) require.NoError(t, err) msg2, err := ch.SendMessage(&Message{Text: text + " " + randomString(25)}, user2.ID) require.NoError(t, err) // flag 2 messages err = c.FlagMessage(msg2.ID, user1.ID) require.NoError(t, err) err = c.FlagMessage(msg1.ID, user2.ID) require.NoError(t, err) // both flags show up in this query by channel_cid got, err := c.QueryMessageFlags(&QueryOption{ Filter: map[string]interface{}{ "channel_cid": map[string][]string{ "$in": {ch.cid()}, }, }, }) require.NoError(t, err) assert.Len(t, got, 2) // one flag shows up in this query by user_id got, err = c.QueryMessageFlags(&QueryOption{ Filter: map[string]interface{}{ "user_id": user1.ID, }, }) require.NoError(t, err) assert.Len(t, got, 1) // unflag these 2 messages err = c.UnflagMessage(msg1.ID, user2.ID) require.NoError(t, err) err = c.UnflagMessage(msg2.ID, user1.ID) require.NoError(t, err) // none should show up got, err = c.QueryMessageFlags(&QueryOption{ Filter: map[string]interface{}{"channel_cid": ch.cid()}, }) require.NoError(t, err) assert.Len(t, got, 0) }
TestClient_QueryMessageFlags
number.js
define( //begin v1.x content { "decimalFormat": "#,##0.###", "group": " ", "scientificFormat": "#E0", "percentFormat": "#,##0%", "currencyFormat": "¤#,##0.00",
"decimal": "," } //end v1.x content );
config.py
import os class Config(object): BASE_DIR = os.path.abspath(os.path.dirname(__file__)) DEBUG = False SECRET_KEY = os.environ['SECRET_KEY'] DATABASE_URL = os.environ['DATABASE_URL'] SQLALCHEMY_DATABASE_URI = DATABASE_URL SQLALCHEMY_TRACK_MODIFICATIONS = True TROPO_API_KEY_TEXT = os.environ.get('TROPO_API_KEY_TEXT', "TEXT TOKEN NOT PROVIDED") TROPO_API_KEY_VOICE = os.environ.get('TROPO_API_KEY_VOICE', "VOICE TOKEN NOT PROVIDED") SPARK_TOKEN = os.environ.get('SPARK_TOKEN', "TOKEN-NOT-PROVIDED") ON_CISCO_NETWORK = os.environ.get('ON_CISCO_NETWORK', False) NOTIFICATION_SMS_PHONE_NUMBER = os.environ.get('NOTIFICATION_SMS_PHONE_NUMBER', False) SPARK_DEFAULT_ROOM_ID = os.environ.get('SPARK_DEFAULT_ROOM_ID', False) SMS_ENABLED = os.environ.get('SMS_ENABLED', False) SMS_ENABLED = (SMS_ENABLED == 'True' or SMS_ENABLED == 'TRUE') SHOW_WEB_LINK = os.environ.get('SHOW_WEB_LINK', False) SHOW_WEB_LINK = (SHOW_WEB_LINK == 'True' or SHOW_WEB_LINK == 'TRUE') ADMIN_NAME = os.environ.get('ADMIN_NAME', '') MERAKI_VALIDATOR_TOKEN = os.environ.get('MERAKI_VALIDATOR', "TOKEN-NOT-PROVIDED") # Application threads. A common general assumption is # using 2 per available processor cores - to handle # incoming requests using one and performing background # operations using the other. THREADS_PER_PAGE = 2 class ProductionConfig(Config): DEBUG = False class
(Config): DEVELOPMENT = True DEBUG = True class DevelopmentConfig(Config): DEVELOPMENT = True DEBUG = True class TestingConfig(Config): TESTING = True
StagingConfig
app.module.ts
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { OverviewComponent } from './overview/overview.component'; import { PageNotFoundComponent } from './page-not-found/page-not-found.component'; import { AboutComponent } from './about/about.component'; import { LegalNoticeComponent } from './legal-notice/legal-notice.component'; import { CompanyOverviewComponent } from './company-overview/company-overview.component'; import {HttpClientModule} from "@angular/common/http"; import {GoogleMapsModule} from "@angular/google-maps"; import { DataPrivacyComponent } from './data-privacy/data-privacy.component'; @NgModule({ declarations: [ AppComponent, OverviewComponent, PageNotFoundComponent, AboutComponent, LegalNoticeComponent, CompanyOverviewComponent, DataPrivacyComponent, ], imports: [ BrowserModule, AppRoutingModule, BrowserAnimationsModule, NgbModule, FontAwesomeModule, HttpClientModule,
bootstrap: [AppComponent] }) export class AppModule {}
GoogleMapsModule ], providers: [ ],
tests.rs
// 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 super::IterableMapping; use crate::lang_core::storage::traits::Bind; use scale::Codec; fn new_empty<K: Codec, V: Codec>() -> IterableMapping<K, V> { let mut map = IterableMapping::<K, V>::bind_with(b"var"); map.initialize(); map } #[test] fn empty() { let map = new_empty::<String, u8>(); assert_eq!(map.len(), 0); assert_eq!(map.is_empty(), true); } #[test] fn insert_works() { let mut map = new_empty::<String, u8>(); let name = "Alice".to_string(); assert_eq!(map.insert(name, 0), None); assert_eq!(map.len(), 1); assert_eq!(map.is_empty(), false); let name = "Alice".to_string(); assert_eq!(map.insert(name, 0), Some(0)); assert_eq!(map.len(), 1); assert_eq!(map.is_empty(), false); } #[test] fn contains_works() { let mut map = new_empty::<String, u8>(); let name = "string".to_string(); assert_eq!(map.contains_key(&name), false); assert_eq!(map.insert(name.clone(), 0), None); assert_eq!(map.contains_key(&name), true); } #[test] fn iter_works() { let mut map = new_empty::<String, u8>(); map.insert("Alice".to_string(), 0); map.insert("Bob".to_string(), 1); map.insert("Charlie".to_string(), 2); let mut iter = map.iter(); assert_eq!(iter.next(), Some((&"Alice".to_string(), &0))); assert_eq!(iter.next(), Some((&"Bob".to_string(), &1))); assert_eq!(iter.next(), Some((&"Charlie".to_string(), &2))); assert_eq!(iter.next(), None); map.remove(&"Charlie".to_string()); let mut iter = map.iter(); assert_eq!(iter.next(), Some((&"Alice".to_string(), &0))); assert_eq!(iter.next(), Some((&"Bob".to_string(), &1))); assert_eq!(iter.next(), None); map.insert("Dog".to_string(), 3); let mut iter = map.iter(); assert_eq!(iter.next(), Some((&"Alice".to_string(), &0))); assert_eq!(iter.next(), Some((&"Bob".to_string(), &1))); assert_eq!(iter.next(), Some((&"Dog".to_string(), &3))); assert_eq!(iter.next(), None);
assert_eq!(iter.next(), Some((&"Bob".to_string(), &1))); assert_eq!(iter.next(), Some((&"Dog".to_string(), &3))); assert_eq!(iter.next(), None); } #[test] fn remove_works() { let mut map = new_empty::<String, u8>(); let name = "Alice".to_string(); assert_eq!(map.insert(name.clone(), 0), None); assert_eq!(map.len(), 1); assert_eq!(map.remove(&name), Some(0)); assert_eq!(map.len(), 0); assert_eq!(map.contains_key(&name), false); assert_eq!(map.remove(&name), None); assert_eq!(map.len(), 0); assert_eq!(map.contains_key(&name), false); } #[test] fn get_works() { let mut map = new_empty::<String, u8>(); assert_eq!(map.insert("Alice".to_string(), 0), None); assert_eq!(map.insert("Bob".to_string(), 1), None); assert_eq!(map.get(&"Alice".to_string()), Some(&0)); assert_eq!(map.get(&"Bob".to_string()), Some(&1)); assert_eq!(map.get(&"Charlie".to_string()), None); } #[test] fn mutate_with_works() { let mut map = new_empty::<String, String>(); // Inserts some elements assert_eq!(map.insert("Dog Breed".to_string(), "Akita".into()), None); assert_eq!(map.insert("Cat Breed".to_string(), "Bengal".into()), None); assert_eq!(map[&"Dog Breed".to_string()], "Akita"); assert_eq!(map[&"Cat Breed".to_string()], "Bengal"); // Change the breeds assert_eq!( map.mutate_with(&"Dog Breed".to_string(), |breed| *breed = "Shiba Inu".into()), Some(&"Shiba Inu".into()) ); assert_eq!( map.mutate_with(&"Cat Breed".to_string(), |breed| breed .push_str(" Shorthair")), Some(&"Bengal Shorthair".into()) ); // Verify the mutated breeds assert_eq!(map[&"Dog Breed".to_string()], "Shiba Inu"); assert_eq!(map[&"Cat Breed".to_string()], "Bengal Shorthair"); // Mutate for non-existing key assert_eq!( map.mutate_with(&"Bird Breed".to_string(), |breed| *breed = "Parrot".into()), None ); } #[test] fn index_works() { let mut map = new_empty::<String, u8>(); assert_eq!(map.insert("Alice".to_string(), 0), None); assert_eq!(map.insert("Bob".to_string(), 1), None); assert_eq!(map[&"Alice".to_string()], 0); assert_eq!(map[&"Bob".to_string()], 1); } #[test] fn index_repeat() { let mut map = new_empty::<String, u8>(); let name = "Alice".to_string(); assert_eq!(map.insert(name.clone(), 0), None); assert_eq!(map[&name], 0); assert_eq!(map[&name], 0); } #[test] #[should_panic] fn index_failed() { let map = new_empty::<String, u8>(); let _ = map[&"Alice".to_string()]; } #[test] fn extend_works() { // given let keys = (0..5).collect::<Vec<u32>>(); let vals = keys.iter().map(|i| i * i).collect::<Vec<u32>>(); let mut map = new_empty::<u32, u32>(); // when map.extend(keys.iter().zip(vals.iter())); // then assert_eq!(map.len() as usize, 5); for i in 0..5 { assert_eq!(map[&keys[i]], vals[i]); } }
map.remove(&"Alice".to_string()); let mut iter = map.iter();
0002_add_attributeoption.py
# encoding: utf-8 import datetime from south.db import db from south.logger import get_logger from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration):
def forwards(self, orm): # Adding model 'AttributeOption' db.create_table('product_attributeoption', ( ('name', self.gf('django.db.models.fields.SlugField')(max_length=100, db_index=True)), ('error_message', self.gf('django.db.models.fields.CharField')(default=u'Inavlid Entry', max_length=100)), ('sort_order', self.gf('django.db.models.fields.IntegerField')(default=1)), ('validation', self.gf('django.db.models.fields.CharField')(max_length=100)), ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('description', self.gf('django.db.models.fields.CharField')(max_length=100)), )) db.send_create_signal('product', ['AttributeOption']) # TODO add default validation for AttributeOption from product.models import VALIDATIONS as validations default_validation = validations[0][0] if not db.dry_run: for attr in orm['product.productattribute'].objects.all(): if orm['product.attributeoption'].objects.filter(name__exact=attr.name).count() < 1: orm['product.attributeoption'].objects.create( description=attr.name, name=attr.name, validation=default_validation, ) if db.backend_name=='sqlite3': get_logger().debug("dropping and re-creating table for ProductAttribute") if db.dry_run: return # # We re-create ProductAttribute, since sqlite does not support adding # foreign key constraints on existing tables (ie. adding ForeignKey # fields). # # We have to do 0003's work here, because we can't iterate over # ProductAttribute instances there - the 'option' column has not # been created and django barfs if we do so. # # Collect old data old_attrs = {} for attr in orm['product.ProductAttribute'].objects.all(): obj = {} # We have already collected 'name' earlier, so we can leave it # out. # TODO make this more generic for k in ('product', 'languagecode', 'value'): obj[k] = getattr(attr, k) old_attrs[attr.id] = obj # Deleting old 'ProductAttribute' table db.delete_table('product_productattribute') # Re-use create_table expression for old 'ProductAttribute', this # time with the adding the 'option' column db.create_table('product_productattribute', ( ('languagecode', self.gf('django.db.models.fields.CharField')(max_length=10, null=True, blank=True)), ('product', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['product.Product'])), ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('value', self.gf('django.db.models.fields.CharField')(max_length=255)), ('name', self.gf('django.db.models.fields.SlugField')(max_length=100, db_index=True)), ('option', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['product.AttributeOption'])) )) db.send_create_signal('product', ['ProductAttribute']) # Add back data for id, attr_dict in old_attrs.items(): kwargs = {} for field in ('product', 'languagecode', 'value'): kwargs[field] = attr_dict[field] orm['product.ProductAttribute'].objects.create( id=id, **kwargs) def backwards(self, orm): # Deleting model 'AttributeOption' db.delete_table('product_attributeoption') if db.backend_name == 'sqlite3': # Since we added the 'option' column in forwards(), delete it here. db.delete_column('product_productattribute', 'option_id') models = { 'product.attributeoption': { 'Meta': {'object_name': 'AttributeOption'}, 'description': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'error_message': ('django.db.models.fields.CharField', [], {'default': "u'Inavlid Entry'", 'max_length': '100'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.SlugField', [], {'max_length': '100', 'db_index': 'True'}), 'sort_order': ('django.db.models.fields.IntegerField', [], {'default': '1'}), 'validation': ('django.db.models.fields.CharField', [], {'max_length': '100'}) }, 'product.category': { 'Meta': {'unique_together': "(('site', 'slug'),)", 'object_name': 'Category'}, 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), 'meta': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '200'}), 'ordering': ('django.db.models.fields.IntegerField', [], {'default': '0'}), 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'child'", 'blank': 'True', 'null': 'True', 'to': "orm['product.Category']"}), 'related_categories': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'related_categories'", 'blank': 'True', 'null': 'True', 'to': "orm['product.Category']"}), 'site': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['sites.Site']"}), 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}) }, 'product.categoryimage': { 'Meta': {'unique_together': "(('category', 'sort'),)", 'object_name': 'CategoryImage'}, 'caption': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), 'category': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'images'", 'blank': 'True', 'null': 'True', 'to': "orm['product.Category']"}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'picture': ('satchmo_utils.thumbnail.field.ImageWithThumbnailField', [], {'name_field': "'_filename'", 'max_length': '200'}), 'sort': ('django.db.models.fields.IntegerField', [], {'default': '0'}) }, 'product.categoryimagetranslation': { 'Meta': {'unique_together': "(('categoryimage', 'languagecode', 'version'),)", 'object_name': 'CategoryImageTranslation'}, 'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), 'caption': ('django.db.models.fields.CharField', [], {'max_length': '255'}), 'categoryimage': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'translations'", 'to': "orm['product.CategoryImage']"}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'languagecode': ('django.db.models.fields.CharField', [], {'max_length': '10'}), 'version': ('django.db.models.fields.IntegerField', [], {'default': '1'}) }, 'product.categorytranslation': { 'Meta': {'unique_together': "(('category', 'languagecode', 'version'),)", 'object_name': 'CategoryTranslation'}, 'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), 'category': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'translations'", 'to': "orm['product.Category']"}), 'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'languagecode': ('django.db.models.fields.CharField', [], {'max_length': '10'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), 'version': ('django.db.models.fields.IntegerField', [], {'default': '1'}) }, 'product.configurableproduct': { 'Meta': {'object_name': 'ConfigurableProduct'}, 'create_subs': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), 'option_group': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['product.OptionGroup']", 'blank': 'True'}), 'product': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['product.Product']", 'unique': 'True', 'primary_key': 'True'}) }, 'product.customproduct': { 'Meta': {'object_name': 'CustomProduct'}, 'deferred_shipping': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), 'downpayment': ('django.db.models.fields.IntegerField', [], {'default': '20'}), 'option_group': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['product.OptionGroup']", 'blank': 'True'}), 'product': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['product.Product']", 'unique': 'True', 'primary_key': 'True'}) }, 'product.customtextfield': { 'Meta': {'object_name': 'CustomTextField'}, 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '40'}), 'price_change': ('satchmo_utils.fields.CurrencyField', [], {'null': 'True', 'max_digits': '14', 'decimal_places': '6', 'blank': 'True'}), 'products': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'custom_text_fields'", 'to': "orm['product.CustomProduct']"}), 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), 'sort_order': ('django.db.models.fields.IntegerField', [], {'default': '0'}) }, 'product.customtextfieldtranslation': { 'Meta': {'unique_together': "(('customtextfield', 'languagecode', 'version'),)", 'object_name': 'CustomTextFieldTranslation'}, 'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), 'customtextfield': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'translations'", 'to': "orm['product.CustomTextField']"}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'languagecode': ('django.db.models.fields.CharField', [], {'max_length': '10'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), 'version': ('django.db.models.fields.IntegerField', [], {'default': '1'}) }, 'product.discount': { 'Meta': {'object_name': 'Discount'}, 'active': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), 'allValid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), 'allowedUses': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), 'amount': ('satchmo_utils.fields.CurrencyField', [], {'null': 'True', 'max_digits': '8', 'decimal_places': '2', 'blank': 'True'}), 'automatic': ('django.db.models.fields.NullBooleanField', [], {'default': 'False', 'null': 'True', 'blank': 'True'}), 'code': ('django.db.models.fields.CharField', [], {'max_length': '20', 'unique': 'True'}), 'description': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'endDate': ('django.db.models.fields.DateField', [], {}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'minOrder': ('satchmo_utils.fields.CurrencyField', [], {'null': 'True', 'max_digits': '8', 'decimal_places': '2', 'blank': 'True'}), 'numUses': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), 'percentage': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'}), 'shipping': ('django.db.models.fields.CharField', [], {'default': "'NONE'", 'max_length': '10', 'null': 'True', 'blank': 'True'}), 'site': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['sites.Site']"}), 'startDate': ('django.db.models.fields.DateField', [], {}), 'validProducts': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['product.Product']", 'null': 'True', 'blank': 'True'}) }, 'product.downloadableproduct': { 'Meta': {'object_name': 'DownloadableProduct'}, 'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), 'expire_minutes': ('django.db.models.fields.IntegerField', [], {}), 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}), 'num_allowed_downloads': ('django.db.models.fields.IntegerField', [], {}), 'product': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['product.Product']", 'unique': 'True', 'primary_key': 'True'}) }, 'product.option': { 'Meta': {'unique_together': "(('option_group', 'value'),)", 'object_name': 'Option'}, 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), 'option_group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['product.OptionGroup']"}), 'price_change': ('satchmo_utils.fields.CurrencyField', [], {'null': 'True', 'max_digits': '14', 'decimal_places': '6', 'blank': 'True'}), 'sort_order': ('django.db.models.fields.IntegerField', [], {'default': '0'}), 'value': ('django.db.models.fields.CharField', [], {'max_length': '50'}) }, 'product.optiongroup': { 'Meta': {'object_name': 'OptionGroup'}, 'description': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), 'site': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['sites.Site']"}), 'sort_order': ('django.db.models.fields.IntegerField', [], {'default': '0'}) }, 'product.optiongrouptranslation': { 'Meta': {'unique_together': "(('optiongroup', 'languagecode', 'version'),)", 'object_name': 'OptionGroupTranslation'}, 'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), 'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'languagecode': ('django.db.models.fields.CharField', [], {'max_length': '10'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), 'optiongroup': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'translations'", 'to': "orm['product.OptionGroup']"}), 'version': ('django.db.models.fields.IntegerField', [], {'default': '1'}) }, 'product.optiontranslation': { 'Meta': {'unique_together': "(('option', 'languagecode', 'version'),)", 'object_name': 'OptionTranslation'}, 'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'languagecode': ('django.db.models.fields.CharField', [], {'max_length': '10'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), 'option': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'translations'", 'to': "orm['product.Option']"}), 'version': ('django.db.models.fields.IntegerField', [], {'default': '1'}) }, 'product.price': { 'Meta': {'unique_together': "(('product', 'quantity', 'expires'),)", 'object_name': 'Price'}, 'expires': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'price': ('satchmo_utils.fields.CurrencyField', [], {'max_digits': '14', 'decimal_places': '6'}), 'product': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['product.Product']"}), 'quantity': ('django.db.models.fields.DecimalField', [], {'default': "'1.0'", 'max_digits': '18', 'decimal_places': '6'}) }, 'product.product': { 'Meta': {'unique_together': "(('site', 'sku'), ('site', 'slug'))", 'object_name': 'Product'}, 'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), 'also_purchased': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'also_products'", 'blank': 'True', 'null': 'True', 'to': "orm['product.Product']"}), 'category': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['product.Category']", 'blank': 'True'}), 'date_added': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), 'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}), 'featured': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), 'height': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '6', 'decimal_places': '2', 'blank': 'True'}), 'height_units': ('django.db.models.fields.CharField', [], {'max_length': '3', 'null': 'True', 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'items_in_stock': ('django.db.models.fields.DecimalField', [], {'default': "'0'", 'max_digits': '18', 'decimal_places': '6'}), 'length': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '6', 'decimal_places': '2', 'blank': 'True'}), 'length_units': ('django.db.models.fields.CharField', [], {'max_length': '3', 'null': 'True', 'blank': 'True'}), 'meta': ('django.db.models.fields.TextField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), 'ordering': ('django.db.models.fields.IntegerField', [], {'default': '0'}), 'related_items': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'related_products'", 'blank': 'True', 'null': 'True', 'to': "orm['product.Product']"}), 'shipclass': ('django.db.models.fields.CharField', [], {'default': "'DEFAULT'", 'max_length': '10'}), 'short_description': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '200', 'blank': 'True'}), 'site': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['sites.Site']"}), 'sku': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}), 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '255', 'blank': 'True'}), 'taxClass': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['product.TaxClass']", 'null': 'True', 'blank': 'True'}), 'taxable': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), 'total_sold': ('django.db.models.fields.DecimalField', [], {'default': "'0'", 'max_digits': '18', 'decimal_places': '6'}), 'weight': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '8', 'decimal_places': '2', 'blank': 'True'}), 'weight_units': ('django.db.models.fields.CharField', [], {'max_length': '3', 'null': 'True', 'blank': 'True'}), 'width': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '6', 'decimal_places': '2', 'blank': 'True'}), 'width_units': ('django.db.models.fields.CharField', [], {'max_length': '3', 'null': 'True', 'blank': 'True'}) }, 'product.productattribute': { 'Meta': {'object_name': 'ProductAttribute'}, 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'languagecode': ('django.db.models.fields.CharField', [], {'max_length': '10', 'null': 'True', 'blank': 'True'}), 'name': ('django.db.models.fields.SlugField', [], {'max_length': '100', 'db_index': 'True'}), 'product': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['product.Product']"}), 'value': ('django.db.models.fields.CharField', [], {'max_length': '255'}) }, 'product.productimage': { 'Meta': {'object_name': 'ProductImage'}, 'caption': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'picture': ('satchmo_utils.thumbnail.field.ImageWithThumbnailField', [], {'name_field': "'_filename'", 'max_length': '200'}), 'product': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['product.Product']", 'null': 'True', 'blank': 'True'}), 'sort': ('django.db.models.fields.IntegerField', [], {'default': '0'}) }, 'product.productimagetranslation': { 'Meta': {'unique_together': "(('productimage', 'languagecode', 'version'),)", 'object_name': 'ProductImageTranslation'}, 'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), 'caption': ('django.db.models.fields.CharField', [], {'max_length': '255'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'languagecode': ('django.db.models.fields.CharField', [], {'max_length': '10'}), 'productimage': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'translations'", 'to': "orm['product.ProductImage']"}), 'version': ('django.db.models.fields.IntegerField', [], {'default': '1'}) }, 'product.productpricelookup': { 'Meta': {'object_name': 'ProductPriceLookup'}, 'active': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), 'discountable': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'items_in_stock': ('django.db.models.fields.DecimalField', [], {'max_digits': '18', 'decimal_places': '6'}), 'key': ('django.db.models.fields.CharField', [], {'max_length': '60', 'null': 'True'}), 'parentid': ('django.db.models.fields.IntegerField', [], {'null': 'True'}), 'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '14', 'decimal_places': '6'}), 'productslug': ('django.db.models.fields.CharField', [], {'max_length': '255'}), 'quantity': ('django.db.models.fields.DecimalField', [], {'max_digits': '18', 'decimal_places': '6'}), 'siteid': ('django.db.models.fields.IntegerField', [], {}) }, 'product.producttranslation': { 'Meta': {'unique_together': "(('product', 'languagecode', 'version'),)", 'object_name': 'ProductTranslation'}, 'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), 'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'languagecode': ('django.db.models.fields.CharField', [], {'max_length': '10'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), 'product': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'translations'", 'to': "orm['product.Product']"}), 'short_description': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '200', 'blank': 'True'}), 'version': ('django.db.models.fields.IntegerField', [], {'default': '1'}) }, 'product.productvariation': { 'Meta': {'object_name': 'ProductVariation'}, 'options': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['product.Option']"}), 'parent': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['product.ConfigurableProduct']"}), 'product': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['product.Product']", 'unique': 'True', 'primary_key': 'True'}) }, 'product.subscriptionproduct': { 'Meta': {'object_name': 'SubscriptionProduct'}, 'expire_length': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), 'expire_unit': ('django.db.models.fields.CharField', [], {'default': "'DAY'", 'max_length': '5'}), 'is_shippable': ('django.db.models.fields.IntegerField', [], {'max_length': '1'}), 'product': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['product.Product']", 'unique': 'True', 'primary_key': 'True'}), 'recurring': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), 'recurring_times': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}) }, 'product.taxclass': { 'Meta': {'object_name': 'TaxClass'}, 'description': ('django.db.models.fields.CharField', [], {'max_length': '30'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'title': ('django.db.models.fields.CharField', [], {'max_length': '20'}) }, 'product.trial': { 'Meta': {'object_name': 'Trial'}, 'expire_length': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'price': ('satchmo_utils.fields.CurrencyField', [], {'null': 'True', 'max_digits': '10', 'decimal_places': '2'}), 'subscription': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['product.SubscriptionProduct']"}) }, 'sites.site': { 'Meta': {'object_name': 'Site', 'db_table': "'django_site'"}, 'domain': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) } } complete_apps = ['product']
datamatrix_writer_test.go
package datamatrix import ( "testing" "github.com/makiuchi-d/gozxing" "github.com/makiuchi-d/gozxing/datamatrix/encoder" qrencoder "github.com/makiuchi-d/gozxing/qrcode/encoder" "github.com/makiuchi-d/gozxing/testutil" ) func TestConvertByteMatrixToBitMatrix(t *testing.T) { src, _ := gozxing.ParseStringToBitMatrix(""+ "## ## ## ## ## ## ## ## \n"+ "## #### #### ## #### ##\n"+ "#### #### #### \n"+ "###### #### ## #### ##\n"+ "#### ########## \n"+ "###### ## ## ####\n"+ "#### #### ## \n"+ "###### #### ## ## ##\n"+ "## ## ############## \n"+ "## #### ## ###### #### ##\n"+ "###### ## ## ###### \n"+ "## #### ###### #### ##\n"+ "## ## ###### ## ###### \n"+ "######## ## ## ## ##\n"+ "############ ## ###### ## \n"+ "################################\n", "##", " ") bm := qrencoder.NewByteMatrix(src.GetWidth(), src.GetHeight()) for j := 0; j < bm.GetHeight(); j++ { for i := 0; i < bm.GetWidth(); i++ { bm.SetBool(i, j, src.Get(i, j)) } } b := convertByteMatrixToBitMatrix(bm, 48, 35) expect := "" + " \n" + " X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X \n" + " X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X \n" + " X X X X X X X X X X \n" + " X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X \n" + " \n" + " \n" if str := b.String(); str != expect { t.Fatalf("convertByteMatrixToBitMatrix:\n%vexpect:\n%v", str, expect) } b = convertByteMatrixToBitMatrix(bm, 10, 10) expect = "" + "X X X X X X X X \n" + "X X X X X X X X X \n" + "X X X X X X \n" + "X X X X X X X X X \n" + "X X X X X X X \n" + "X X X X X X X \n" + "X X X X X \n" + "X X X X X X X X \n" + "X X X X X X X X X \n" + "X X X X X X X X X X \n" + "X X X X X X X X \n" + "X X X X X X X X X \n" + "X X X X X X X X X \n" + "X X X X X X X X \n" + "X X X X X X X X X X X \n" + "X X X X X X X X X X X X X X X X \n" if str := b.String(); str != expect { t.Fatalf("convertByteMatrixToBitMatrix:\n%vexpect:\n%v", str, expect) } } func
(t *testing.T) { cw := make([]byte, 24) for i := 0; i < len(cw); i++ { cw[i] = 0xaa } symbol := encoder.NewSymbolInfo(false, 5, 7, 10, 10, 1) placement := encoder.NewDefaultPlacement(cw[:12], 10, 10) placement.Place() bm := encodeLowLevel(placement, symbol, 14, 16) expect := "" + " \n" + " \n" + " X X X X X X \n" + " X X X X X X X \n" + " X X X X X X \n" + " X X X X X X X \n" + " X X X X X X X \n" + " X X X X X X X \n" + " X X X X X \n" + " X X X X X X X \n" + " X X X X X X \n" + " X X X X X X X \n" + " X X X X X X \n" + " X X X X X X X X X X X X \n" + " \n" + " \n" if str := bm.String(); str != expect { t.Fatalf("encodeLowLevel:\n%v\nexpect:\n%v", str, expect) } } func TestDataMatrixWriter_Encode(t *testing.T) { writer := NewDataMatrixWriter() _, e := writer.EncodeWithoutHint("", gozxing.BarcodeFormat_DATA_MATRIX, 10, 10) if e == nil { t.Fatalf("Encode must be error") } _, e = writer.EncodeWithoutHint("123456", gozxing.BarcodeFormat_QR_CODE, 10, 10) if e == nil { t.Fatalf("Encode must be error") } _, e = writer.EncodeWithoutHint("123456", gozxing.BarcodeFormat_DATA_MATRIX, -1, 10) if e == nil { t.Fatalf("Encode must be error") } _, e = writer.EncodeWithoutHint("123456", gozxing.BarcodeFormat_DATA_MATRIX, 10, -1) if e == nil { t.Fatalf("Encode must be error") } hint := make(map[gozxing.EncodeHintType]interface{}) hint[gozxing.EncodeHintType_MAX_SIZE], _ = gozxing.NewDimension(5, 5) _, e = writer.Encode("123456", gozxing.BarcodeFormat_DATA_MATRIX, 10, 10, hint) if e == nil { t.Fatalf("Encode must be error") } hint[gozxing.EncodeHintType_DATA_MATRIX_SHAPE] = encoder.SymbolShapeHint_FORCE_RECTANGLE hint[gozxing.EncodeHintType_MIN_SIZE], _ = gozxing.NewDimension(5, 5) hint[gozxing.EncodeHintType_MAX_SIZE], _ = gozxing.NewDimension(20, 20) b, e := writer.Encode("123456", gozxing.BarcodeFormat_DATA_MATRIX, 20, 20, hint) expect := "" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " X X X X X X X X X \n" + " X X X X X X \n" + " X X X X X X X X X X \n" + " X X X X X X X X X \n" + " X X X X X X X X X X \n" + " X X X X X X X X X X \n" + " X X X X X X X X X X \n" + " X X X X X X X X X X X X X X X X X X \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" if e != nil { t.Fatalf("Encode returns error: %v", e) } if str := b.String(); str != expect { t.Fatalf("Encode:\n%vexpect:\n%v", str, expect) } contents := "Hello, world!" b, e = writer.Encode(contents, gozxing.BarcodeFormat_DATA_MATRIX, 100, 100, nil) if e != nil { t.Fatalf("Encode returns error: %v", e) } bmp := testutil.NewBinaryBitmapFromBitMatrix(b) reader := NewDataMatrixReader() result, e := reader.DecodeWithoutHints(bmp) if e != nil { t.Fatalf("Decode returns error: %v", e) } if txt := result.GetText(); txt != contents { t.Fatalf("result = \"%v\", expect \"%v\"", txt, contents) } }
TestEncodeLowLevel
simple.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.13.0 // source: simple.proto package simple import ( context "context" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // This is a compile-time assertion that a sufficiently up-to-date version // of the legacy proto package is being used. const _ = proto.ProtoPackageIsVersion4 //请求的结构体 type HelloRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } func (x *HelloRequest) Reset() { *x = HelloRequest{} if protoimpl.UnsafeEnabled { mi := &file_simple_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *HelloRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*HelloRequest) ProtoMessage() {} func (x *HelloRequest) ProtoReflect() protoreflect.Message { mi := &file_simple_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead. func (*HelloRequest) Descriptor() ([]byte, []int) { return file_simple_proto_rawDescGZIP(), []int{0} } func (x *HelloRequest) GetName() string { if x != nil { return x.Name } return "" } //返回的结构体 type HelloReply struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` } func (x *HelloReply) Reset() { *x = HelloReply{} if protoimpl.UnsafeEnabled { mi := &file_simple_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *HelloReply) String() string { return protoimpl.X.MessageStringOf(x) } func (*HelloReply) ProtoMessage() {} func (x *HelloReply) ProtoReflect() protoreflect.Message { mi := &file_simple_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use HelloReply.ProtoReflect.Descriptor instead. func (*HelloReply) Descriptor() ([]byte, []int) { return file_simple_proto_rawDescGZIP(), []int{1} } func (x *HelloReply) GetMessage() string { if x != nil { return x.Message } return "" } var File_simple_proto protoreflect.FileDescriptor var file_simple_proto_rawDesc = []byte{ 0x0a, 0x0c, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x22, 0x0a, 0x0c, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x26, 0x0a, 0x0a, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x32, 0x0a, 0x06, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x28, 0x0a, 0x08, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, 0x0d, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0b, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_simple_proto_rawDescOnce sync.Once file_simple_proto_rawDescData = file_simple_proto_rawDesc ) func file_simple_proto_rawDescGZIP() []byte { file_simple_proto_rawDescOnce.Do(func() { file_simple_proto_rawDescData = protoimpl.X.CompressGZIP(file_simple_proto_rawDescData) }) return file_simple_proto_rawDescData } var file_simple_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_simple_proto_goTypes = []interface{}{ (*HelloRequest)(nil), // 0: HelloRequest (*HelloReply)(nil), // 1: HelloReply } var file_simple_proto_depIdxs = []int32{ 0, // 0: Simple.SayHello:input_type -> HelloRequest 1, // 1: Simple.SayHello:output_type -> HelloReply 1, // [1:2] is the sub-list for method output_type 0, // [0:1] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name } func init() { file_simple_proto_init() } func file_simple_proto_init() { if File_simple_proto
o suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion6 // SimpleClient is the client API for Simple service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type SimpleClient interface { SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) } type simpleClient struct { cc grpc.ClientConnInterface } func NewSimpleClient(cc grpc.ClientConnInterface) SimpleClient { return &simpleClient{cc} } func (c *simpleClient) SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) { out := new(HelloReply) err := c.cc.Invoke(ctx, "/Simple/SayHello", in, out, opts...) if err != nil { return nil, err } return out, nil } // SimpleServer is the server API for Simple service. type SimpleServer interface { SayHello(context.Context, *HelloRequest) (*HelloReply, error) } // UnimplementedSimpleServer can be embedded to have forward compatible implementations. type UnimplementedSimpleServer struct { } func (*UnimplementedSimpleServer) SayHello(context.Context, *HelloRequest) (*HelloReply, error) { return nil, status.Errorf(codes.Unimplemented, "method SayHello not implemented") } func RegisterSimpleServer(s *grpc.Server, srv SimpleServer) { s.RegisterService(&_Simple_serviceDesc, srv) } func _Simple_SayHello_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(HelloRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SimpleServer).SayHello(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/Simple/SayHello", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SimpleServer).SayHello(ctx, req.(*HelloRequest)) } return interceptor(ctx, in, info, handler) } var _Simple_serviceDesc = grpc.ServiceDesc{ ServiceName: "Simple", HandlerType: (*SimpleServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SayHello", Handler: _Simple_SayHello_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "simple.proto", }
!= nil { return } if !protoimpl.UnsafeEnabled { file_simple_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*HelloRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_simple_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*HelloReply); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_simple_proto_rawDesc, NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 1, }, GoTypes: file_simple_proto_goTypes, DependencyIndexes: file_simple_proto_depIdxs, MessageInfos: file_simple_proto_msgTypes, }.Build() File_simple_proto = out.File file_simple_proto_rawDesc = nil file_simple_proto_goTypes = nil file_simple_proto_depIdxs = nil } // Reference imports t
code.py
# Comment it before submitting # class Node: # def __init__(self, value, next_item=None): # self.value = value # self.next_item = next_item def
(node, idx): # Your code # ヽ(´▽`)/ pass def test(): node3 = Node("node3", None) node2 = Node("node2", node3) node1 = Node("node1", node2) node0 = Node("node0", node1) new_head = solution(node0, 1) # result is node0 -> node2 -> node3
solution
querier.go
package keeper import ( "fmt" abci "github.com/tendermint/tendermint/abci/types" "github.com/osiz-blockchainapp/pound-sdk/codec" sdk "github.com/osiz-blockchainapp/pound-sdk/types" "github.com/osiz-blockchainapp/pound-sdk/x/bank/internal/types" ) const ( // query balance path QueryBalance = "balances" ) // NewQuerier returns a new sdk.Keeper instance. func NewQuerier(k Keeper) sdk.Querier { return func(ctx sdk.Context, path []string, req abci.RequestQuery) ([]byte, sdk.Error) { switch path[0] { case QueryBalance: return queryBalance(ctx, req, k) default: return nil, sdk.ErrUnknownRequest("unknown bank query endpoint") } } } // queryBalance fetch an account's balance for the supplied height. // Height and account address are passed as first and second path components respectively. func
(ctx sdk.Context, req abci.RequestQuery, k Keeper) ([]byte, sdk.Error) { var params types.QueryBalanceParams if err := types.ModuleCdc.UnmarshalJSON(req.Data, &params); err != nil { return nil, sdk.ErrInternal(fmt.Sprintf("failed to parse params: %s", err)) } bz, err := codec.MarshalJSONIndent(types.ModuleCdc, k.GetCoins(ctx, params.Address)) if err != nil { return nil, sdk.ErrInternal(sdk.AppendMsgToErr("could not marshal result to JSON", err.Error())) } return bz, nil }
queryBalance
web.rs
//! Test suite for the Web and headless browsers. #![cfg(target_arch = "wasm32")] extern crate wasm_bindgen_test; use fluid::fluid::FluidSimulation; use wasm_bindgen_test::*; wasm_bindgen_test_configure!(run_in_browser);
let mut fluid = FluidSimulation::new(1500, 1000, 1000); fluid.simulate(0.167); }
#[wasm_bindgen_test] fn pass() {
index.d.ts
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. import { subSeconds } from 'date-fns'
export default subSeconds
__init__.py
#!/usr/bin/env python # # Copyright 2007 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. # """Namespace Manager Module."""
from __future__ import absolute_import from google.appengine.api.namespace_manager.namespace_manager import *
predicter.py
#encoding:utf-8 import torch import numpy as np from ..utils.utils import model_device,load_bert class Predicter(object): def __init__(self, model, logger, n_gpu, model_path ): self.model = model self.logger = logger self.width = 30 self.model, self.device = model_device(n_gpu= n_gpu, model=self.model, logger=self.logger) loads = load_bert(model_path=model_path,model = self.model) self.model = loads[0] def show_info(self,batch_id,n_batch): recv_per = int(100 * (batch_id + 1) / n_batch) if recv_per >= 100: recv_per = 100 # show bar show_bar = f"\r[predict]{batch_id+1}/{n_batch}[{int(self.width * recv_per / 100) * '>':<{self.width}s}]{recv_per}%" print(show_bar,end='') def predict(self,data):
n_batch = len(data) with torch.no_grad(): for step, (input_ids, input_mask, segment_ids, label_ids) in enumerate(data): input_ids = input_ids.to(self.device) input_mask = input_mask.to(self.device) segment_ids = segment_ids.to(self.device) logits = self.model(input_ids, segment_ids, input_mask) logits = logits.sigmoid() self.show_info(step,n_batch) if all_logits is None: all_logits = logits.detach().cpu().numpy() else: all_logits = np.concatenate([all_logits,logits.detach().cpu().numpy()],axis = 0) return all_logits
all_logits = None self.model.eval()
common.go
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package cmd import ( "fmt" "os" "path/filepath" "github.com/golang/protobuf/jsonpb" "github.com/golang/protobuf/proto" "github.com/maruel/subcommands" "go.chromium.org/chromiumos/infra/proto/go/test_platform/phosphorus" "go.chromium.org/luci/auth/client/authcli" "go.chromium.org/luci/common/errors" "infra/cros/cmd/phosphorus/internal/autotest" "infra/cros/cmd/phosphorus/internal/autotest/atutil" ) type commonRun struct { subcommands.CommandRunBase authFlags authcli.Flags inputPath string outputPath string } func (c *commonRun) validateArgs() error { if c.inputPath == "" { return fmt.Errorf("-input_json not specified") } return nil } // readJSONPb reads a JSON string from inFile and unpacks it as a proto. // Unexpected fields are ignored. func readJSONPb(inFile string, payload proto.Message) error { r, err := os.Open(inFile) if err != nil { return errors.Annotate(err, "read JSON pb").Err() } defer r.Close() unmarshaler := jsonpb.Unmarshaler{AllowUnknownFields: true} if err := unmarshaler.Unmarshal(r, payload); err != nil { return errors.Annotate(err, "read JSON pb").Err() } return nil } // writeJSONPb writes a JSON encoded proto to outFile. func writeJSONPb(outFile string, payload proto.Message) error { dir := filepath.Dir(outFile) // Create the directory if it doesn't exist. if err := os.MkdirAll(dir, 0777); err != nil { return errors.Annotate(err, "write JSON pb").Err() } w, err := os.Create(outFile) if err != nil { return errors.Annotate(err, "write JSON pb").Err() } defer w.Close() marshaler := jsonpb.Marshaler{} if err := marshaler.Marshal(w, payload); err != nil { return errors.Annotate(err, "write JSON pb").Err() } return nil } // getCommonMissingArgs returns the list of missing required config // arguments. func getCommonMissingArgs(c *phosphorus.Config) []string
// getMainJob constructs a atutil.MainJob from a Config proto. func getMainJob(c *phosphorus.Config) *atutil.MainJob { return &atutil.MainJob{ AutotestConfig: autotest.Config{ AutotestDir: c.GetBot().GetAutotestDir(), }, ResultsDir: c.GetTask().GetResultsDir(), UseLocalHostInfo: true, } }
{ // TODO(1039484): Split this into subcommand-specific functions var missingArgs []string if c.GetBot().GetAutotestDir() == "" { missingArgs = append(missingArgs, "autotest dir") } if c.GetTask().GetResultsDir() == "" { missingArgs = append(missingArgs, "results dir") } return missingArgs }
Loading.tsx
import React from 'react' import { global, keyframes } from '@css/theme.config' const Snurra1 = keyframes({ '0%': { strokeDashoffset: 0, }, '100%': { strokeDashoffset: '-403px', }, }) const LoaderCSS = global({ body: { alignItems: 'center', display: 'flex', justifyContenten: 'center', height: '100vh', overflow: 'hidden', }, '.gegga': { width: 0, }, '.snurra': { filter: 'url(#gegga)', }, '.stopp1': { stopColor: '#f700a8', },
}, '.halvan': { animation: `${Snurra1} 3s linear infinite linear`, strokeDasharray: '180 800', fill: 'none', stroke: 'url(#gradient)', strokeWidth: '23', strokeLinecap: 'round', }, '.strecken': { animation: `${Snurra1} 3s linear infinite linear`, strokeDasharray: '26 54', fill: 'none', stroke: 'url(#gradient)', strokeWidth: '23', strokeLinecap: 'round', }, '.skugga': { filter: 'blur(5px)', opacity: 0.3, position: 'absolute', transform: 'translate(3px, 3px)', }, }) const Loading: React.FC = () => { LoaderCSS() return ( <div className="loader"> <svg className="gegga"> <defs> <filter id="gegga"> <feGaussianBlur in="SourceGraphic" stdDeviation="7" result="blur" /> <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -10" result="inreGegga" /> <feComposite in="SourceGraphic" in2="inreGegga" operator="atop" /> </filter> </defs> </svg> <svg className="snurra" width="200" height="200" viewBox="0 0 200 200"> <defs> <linearGradient id="linjärGradient"> <stop className="stopp1" offset="0" /> <stop className="stopp2" offset="1" /> </linearGradient> <linearGradient y2="160" x2="160" y1="40" x1="40" gradientUnits="userSpaceOnUse" id="gradient" /> </defs> <path className="halvan" d="m 164,100 c 0,-35.346224 -28.65378,-64 -64,-64 -35.346224,0 -64,28.653776 -64,64 0,35.34622 28.653776,64 64,64 35.34622,0 64,-26.21502 64,-64 0,-37.784981 -26.92058,-64 -64,-64 -37.079421,0 -65.267479,26.922736 -64,64 1.267479,37.07726 26.703171,65.05317 64,64 37.29683,-1.05317 64,-64 64,-64" /> <circle className="strecken" cx="100" cy="100" r="64" /> </svg> <svg className="skugga" width="200" height="200" viewBox="0 0 200 200"> <path className="halvan" d="m 164,100 c 0,-35.346224 -28.65378,-64 -64,-64 -35.346224,0 -64,28.653776 -64,64 0,35.34622 28.653776,64 64,64 35.34622,0 64,-26.21502 64,-64 0,-37.784981 -26.92058,-64 -64,-64 -37.079421,0 -65.267479,26.922736 -64,64 1.267479,37.07726 26.703171,65.05317 64,64 37.29683,-1.05317 64,-64 64,-64" /> <circle className="strecken" cx="100" cy="100" r="64" /> </svg> </div> ) } export default Loading
'.stopp2': { stopColor: '#ff8000',
test_solver_debug_print.py
"""Tests the `debug_print` option for Nonlinear solvers.""" import os import re import sys import shutil import tempfile import unittest from distutils.version import LooseVersion from io import StringIO import numpy as np import openmdao.api as om from openmdao.test_suite.scripts.circuit_analysis import Circuit from openmdao.utils.general_utils import run_model from openmdao.utils.general_utils import printoptions try: from parameterized import parameterized except ImportError: from openmdao.utils.assert_utils import SkipParameterized as parameterized nonlinear_solvers = [ om.NonlinearBlockGS, om.NonlinearBlockJac, om.NewtonSolver, om.BroydenSolver ] class TestNonlinearSolvers(unittest.TestCase): def setUp(self): import re import os from tempfile import mkdtemp # perform test in temporary directory self.startdir = os.getcwd() self.tempdir = mkdtemp(prefix='test_solver') os.chdir(self.tempdir) # iteration coordinate, file name and variable data are common for all tests coord = 'rank0:root._solve_nonlinear|0|NLRunOnce|0|circuit._solve_nonlinear|0' self.filename = 'solver_errors.0.out' self.expected_data = '\n'.join([ "", "# Inputs and outputs at start of iteration '%s':" % coord, "", "# nonlinear inputs", "{'circuit.D1.V_in': array([ 1.]),", " 'circuit.D1.V_out': array([ 0.]),", " 'circuit.R1.V_in': array([ 1.]),", " 'circuit.R1.V_out': array([ 0.]),", " 'circuit.R2.V_in': array([ 1.]),", " 'circuit.R2.V_out': array([ 1.]),", " 'circuit.n1.I_in:0': array([ 0.1]),", " 'circuit.n1.I_out:0': array([ 1.]),", " 'circuit.n1.I_out:1': array([ 1.]),", " 'circuit.n2.I_in:0': array([ 1.]),", " 'circuit.n2.I_out:0': array([ 1.])}", "", "# nonlinear outputs", "{'circuit.D1.I': array([ 1.]),", " 'circuit.R1.I': array([ 1.]),", " 'circuit.R2.I': array([ 1.]),", " 'circuit.n1.V': array([ 10.]),", " 'circuit.n2.V': array([ 0.001])}", "" ]) def tearDown(self): import os from shutil import rmtree # clean up the temporary directory os.chdir(self.startdir) try: rmtree(self.tempdir) except OSError: pass @parameterized.expand([ [solver.__name__, solver] for solver in nonlinear_solvers ]) def test_solver_debug_print(self, name, solver): p = om.Problem() model = p.model model.add_subsystem('ground', om.IndepVarComp('V', 0., units='V')) model.add_subsystem('source', om.IndepVarComp('I', 0.1, units='A')) model.add_subsystem('circuit', Circuit()) model.connect('source.I', 'circuit.I_in') model.connect('ground.V', 'circuit.Vg') p.setup() nl = model.circuit.nonlinear_solver = solver() nl.options['debug_print'] = True nl.options['err_on_non_converge'] = True if name == 'NonlinearBlockGS': nl.options['use_apply_nonlinear'] = True if name == 'NewtonSolver': nl.options['solve_subsystems'] = True # suppress solver output for test nl.options['iprint'] = model.circuit.linear_solver.options['iprint'] = -1 # For Broydensolver, don't calc Jacobian try: nl.options['compute_jacobian'] = False except KeyError: pass # set some poor initial guesses so that we don't converge p['circuit.n1.V'] = 10. p['circuit.n2.V'] = 1e-3 opts = {} # formatting has changed in numpy 1.14 and beyond. if LooseVersion(np.__version__) >= LooseVersion("1.14"): opts["legacy"] = '1.13' with printoptions(**opts): # run the model and check for expected output file output = run_model(p, ignore_exception=True) expected_output = '\n'.join([ self.expected_data, "Inputs and outputs at start of iteration " "have been saved to '%s'.\n" % self.filename ]) self.assertEqual(output, expected_output) with open(self.filename, 'r') as f: self.assertEqual(f.read(), self.expected_data) # setup & run again to make sure there is no error due to existing file p.setup() with printoptions(**opts): run_model(p, ignore_exception=False) def test_solver_debug_print_feature(self): from distutils.version import LooseVersion import numpy as np import openmdao.api as om from openmdao.test_suite.scripts.circuit_analysis import Circuit from openmdao.utils.general_utils import printoptions p = om.Problem() model = p.model model.add_subsystem('circuit', Circuit()) p.setup() nl = model.circuit.nonlinear_solver = om.NewtonSolver(solve_subsystems=False) nl.options['iprint'] = 2 nl.options['debug_print'] = True nl.options['err_on_non_converge'] = True # set some poor initial guesses so that we don't converge p.set_val('circuit.I_in', 0.1, units='A') p.set_val('circuit.Vg', 0.0, units='V') p.set_val('circuit.n1.V', 10.) p.set_val('circuit.n2.V', 1e-3) opts = {} # formatting has changed in numpy 1.14 and beyond. if LooseVersion(np.__version__) >= LooseVersion("1.14"): opts["legacy"] = '1.13' with printoptions(**opts): # run the model try: p.run_model() except om.AnalysisError:
with open(self.filename, 'r') as f: self.assertEqual(f.read(), self.expected_data) class TestNonlinearSolversIsolated(unittest.TestCase): """ This test needs to run isolated to preclude interactions in the underlying `warnings` module that is used to raise the singular entry error. """ ISOLATED = True def setUp(self): # perform test in temporary directory self.startdir = os.getcwd() self.tempdir = tempfile.mkdtemp(prefix='test_solver') os.chdir(self.tempdir) def tearDown(self): # clean up the temporary directory os.chdir(self.startdir) try: shutil.rmtree(self.tempdir) except OSError: pass def test_debug_after_raised_error(self): prob = om.Problem() model = prob.model comp = om.IndepVarComp() comp.add_output('dXdt:TAS', val=1.0) comp.add_output('accel_target', val=2.0) model.add_subsystem('des_vars', comp, promotes=['*']) teg = model.add_subsystem('thrust_equilibrium_group', subsys=om.Group()) teg.add_subsystem('dynamics', om.ExecComp('z = 2.0*thrust'), promotes=['*']) thrust_bal = om.BalanceComp() thrust_bal.add_balance(name='thrust', val=1207.1, lhs_name='dXdt:TAS', rhs_name='accel_target', eq_units='m/s**2', lower=-10.0, upper=10000.0) teg.add_subsystem(name='thrust_bal', subsys=thrust_bal, promotes_inputs=['dXdt:TAS', 'accel_target'], promotes_outputs=['thrust']) teg.linear_solver = om.DirectSolver() teg.nonlinear_solver = om.NewtonSolver() teg.nonlinear_solver.options['solve_subsystems'] = True teg.nonlinear_solver.options['max_sub_solves'] = 1 teg.nonlinear_solver.options['atol'] = 1e-4 teg.nonlinear_solver.options['debug_print'] = True prob.setup() prob.set_solver_print(level=0) stdout = sys.stdout strout = StringIO() sys.stdout = strout with self.assertRaises(RuntimeError) as cm: prob.run_model() sys.stdout = stdout output = strout.getvalue() target = "'thrust_equilibrium_group.thrust_bal.thrust'" self.assertTrue(target in output, msg=target + "NOT FOUND IN" + output) # Make sure exception is unchanged. expected_msg = "Singular entry found in Group (thrust_equilibrium_group) for row associated with state/residual 'thrust' ('thrust_equilibrium_group.thrust_bal.thrust') index 0." self.assertEqual(expected_msg, str(cm.exception)) if __name__ == "__main__": unittest.main()
pass
useGetUserProfile.ts
import React, { useState, useEffect } from "react"; import { useDataProvider } from "react-admin"; import { UserProfile } from "../../types"; interface State { loading: boolean; loaded: boolean; identity?: UserProfile; error?: any; } export const useGetUserProfile = () => { const [state, setState] = useState<State>({ loading: true, loaded: false, }); const dataProvider = useDataProvider(); useEffect(() => { dataProvider .getUserProfile() .then(({ data }: { data: UserProfile }) => { setState({ loading: false, loaded: true, identity: data, }); }) .catch((error: Error) => { setState({ loading: false, loaded: true,
}); }); }, [dataProvider]); return state; };
error,
classifiers.py
# -*- coding: utf-8 -*- # """*********************************************************************************************""" # FileName [ classifiers.py ] # Synopsis [ 'Naive Bayes' and 'Decision Tree' training, testing, and tunning functions ] # Author [ Ting-Wei Liu (Andi611) ] # Copyright [ Copyleft(c), NTUEE, NTU, Taiwan ] """*********************************************************************************************""" ############### # IMPORTATION # ############### import numpy as np from sklearn.naive_bayes import GaussianNB from sklearn.naive_bayes import MultinomialNB from sklearn.naive_bayes import ComplementNB from sklearn.naive_bayes import BernoulliNB from sklearn.model_selection import cross_val_score from sklearn import metrics from sklearn import tree ############ # CONSTANT # ############ N_FOLD = 10 DEPTHS = np.arange(1, 64) ALPHAS = np.arange(0.001, 1.0, 0.001) ALPHAS_MUSHROOM = np.arange(0.0001, 1.0, 0.0001) BEST_DISTRIBUTION = 'Multinominal' ############### # NAIVE BAYES # ############### class naive_bayes_runner(object): def __init__(self, MODEL, train_x, train_y, test_x, test_y): #---data---# self.train_x = train_x self.train_y = train_y self.test_x = test_x self.test_y = test_y #---model---# self.cross_validate = False self.MODEL = MODEL if self.MODEL == 'NEWS': self.models = { 'Guassian' : GaussianNB(), 'Multinominal' : MultinomialNB(alpha=0.065), 'Complement' : ComplementNB(alpha=0.136), 'Bernoulli' : BernoulliNB(alpha=0.002) } if self.MODEL == 'MUSHROOM': ALPHAS = ALPHAS_MUSHROOM self.models = { 'Guassian' : GaussianNB(), 'Multinominal' : MultinomialNB(alpha=0.0001), 'Complement' : ComplementNB(alpha=0.0001), 'Bernoulli' : BernoulliNB(alpha=0.0001) } if self.MODEL == 'INCOME': self.cross_validate = True self.models = { 'Guassian' : GaussianNB(), 'Multinominal' : MultinomialNB(alpha=0.959), 'Complement' : ComplementNB(alpha=0.16), 'Bernoulli' : BernoulliNB(alpha=0.001) } def _fit_and_evaluate(self, model): model_fit = model.fit(self.train_x, self.train_y) pred_y = model_fit.predict(self.test_x) acc = metrics.accuracy_score(self.test_y, pred_y) return acc, pred_y def search_alpha(self): try: from tqdm import tqdm except: raise ImportError('Failed to import tqdm, use the following command to install: pip3 install tqdm') for distribution, model in self.models.items(): best_acc = 0.0 best_alpha = 0.001 if distribution != 'Guassian': print('>> [Naive Bayes Runner] Searching for best alpha value, distribution:', distribution) for alpha in tqdm(ALPHAS): model.set_params(alpha=alpha) if self.cross_validate: scores = cross_val_score(model, self.train_x, self.train_y, cv=N_FOLD, scoring='accuracy') acc = scores.mean() else: acc, _ = self._fit_and_evaluate(model) if acc > best_acc: best_acc = acc best_alpha = alpha print('>> [Naive Bayes Runner] '+ distribution + ' - Best Alpha Value:', best_alpha) def run_best_all(self):
def run_best(self): if self.cross_validate: scores = cross_val_score(self.models[BEST_DISTRIBUTION], self.train_x, self.train_y, cv=N_FOLD, scoring='accuracy') acc = scores.mean() model_fit = self.models[BEST_DISTRIBUTION].fit(self.train_x, self.train_y) pred_y = model_fit.predict(self.test_x) else: acc, pred_y = self._fit_and_evaluate(self.models[BEST_DISTRIBUTION]) print('>> [Naive Bayes Runner] '+ BEST_DISTRIBUTION + ' - Accuracy:', acc) return pred_y ################# # DECISION TREE # ################# class decision_tree_runner(object): def __init__(self, MODEL, train_x, train_y, test_x, test_y): #---data---# self.train_x = train_x self.train_y = train_y self.test_x = test_x self.test_y = test_y #---model---# self.cross_validate = False self.MODEL = MODEL if self.MODEL == 'NEWS': self.model = tree.DecisionTreeClassifier(criterion='gini', splitter='random', max_depth=47, random_state=1337) elif self.MODEL == 'MUSHROOM': self.model = tree.DecisionTreeClassifier(criterion='gini', splitter='random', max_depth=7, random_state=1337) elif self.MODEL == 'INCOME': self.cross_validate = True self.model = tree.DecisionTreeClassifier(criterion='entropy', min_impurity_decrease=2e-4, max_depth=15, random_state=1337) def _fit_and_evaluate(self): model_fit = self.model.fit(self.train_x, self.train_y) pred_y = model_fit.predict(self.test_x) acc = metrics.accuracy_score(self.test_y, pred_y) return acc, pred_y def search_max_depth(self): try: from tqdm import tqdm except: raise ImportError('Failed to import tqdm, use the following command to install: $ pip3 install tqdm') best_acc = 0.0 best_depth = 1 print('>> [Naive Bayes Runner] Searching for best max depth value...') for depth in tqdm(DEPTHS): self.model.set_params(max_depth=depth) if self.cross_validate: scores = cross_val_score(self.model, self.train_x, self.train_y, cv=N_FOLD, scoring='accuracy') acc = scores.mean() else: acc, _ = self._fit_and_evaluate() if acc > best_acc: best_acc = acc best_depth = depth print('>> [Decision Tree Runner] - Best Dpeth Value:', best_depth) def visualize(self): try: import graphviz except: raise ImportError('Failed to import graphviz, use the following command to install: $ pip3 install graphviz, and $ sudo apt-get install graphviz') model_fit = self.model.fit(self.train_x, self.train_y) dot_data = tree.export_graphviz(model_fit, out_file=None, filled=True, rounded=True, special_characters=True) graph = graphviz.Source(dot_data) graph.format = 'png' graph.render('../image/TREE_' + self.MODEL) print('>> [Decision Tree Runner] - Tree visualization complete.') def run_best(self): if self.cross_validate: scores = cross_val_score(self.model, self.train_x, self.train_y, cv=N_FOLD, scoring='accuracy') acc = scores.mean() model_fit = self.model.fit(self.train_x, self.train_y) pred_y = model_fit.predict(self.test_x) else: acc, pred_y = self._fit_and_evaluate() print('>> [Decision Tree Runner] - Accuracy:', acc) return pred_y
for distribution, model in self.models.items(): if self.cross_validate: scores = cross_val_score(model, self.train_x, self.train_y, cv=N_FOLD, scoring='accuracy') acc = scores.mean() else: acc, _ = self._fit_and_evaluate(model) print('>> [Naive Bayes Runner] '+ distribution + ' - Accuracy:', acc)
instruction.rs
//! Defines a composable Instruction type and a memory-efficient CompiledInstruction. use crate::pubkey::Pubkey; use crate::short_vec; use crate::system_instruction::SystemError; use bincode::serialize; use serde::Serialize; /// Reasons the runtime might have rejected an instruction. #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)] pub enum InstructionError { /// Deprecated! Use CustomError instead! /// The program instruction returned an error GenericError, /// The arguments provided to a program instruction where invalid InvalidArgument, /// An instruction's data contents was invalid InvalidInstructionData, /// An account's data contents was invalid InvalidAccountData, /// An account's data was too small AccountDataTooSmall, /// An account's balance was too small to complete the instruction InsufficientFunds,
/// A signature was required but not found MissingRequiredSignature, /// An initialize instruction was sent to an account that has already been initialized. AccountAlreadyInitialized, /// An attempt to operate on an account that hasn't been initialized. UninitializedAccount, /// Program's instruction lamport balance does not equal the balance after the instruction UnbalancedInstruction, /// Program modified an account's program id ModifiedProgramId, /// Program spent the lamports of an account that doesn't belong to it ExternalAccountLamportSpend, /// Program modified the data of an account that doesn't belong to it ExternalAccountDataModified, /// Read-only account modified lamports ReadonlyLamportChange, /// Read-only account modified data ReadonlyDataModified, /// An account was referenced more than once in a single instruction DuplicateAccountIndex, /// Executable bit on account changed, but shouldn't have ExecutableModified, /// Rent_epoch account changed, but shouldn't have RentEpochModified, /// The instruction expected additional account keys NotEnoughAccountKeys, /// A non-system program changed the size of the account data AccountDataSizeChanged, /// the instruction expected an executable account AccountNotExecutable, /// CustomError allows on-chain programs to implement program-specific error types and see /// them returned by the Solana runtime. A CustomError may be any type that is represented /// as or serialized to a u32 integer. /// /// NOTE: u64 requires special serialization to avoid the loss of precision in JS clients and /// so is not used for now. CustomError(u32), } impl InstructionError { pub fn new_result_with_negative_lamports() -> Self { InstructionError::CustomError(SystemError::ResultWithNegativeLamports as u32) } } #[derive(Debug, PartialEq, Clone)] pub struct Instruction { /// Pubkey of the instruction processor that executes this instruction pub program_id: Pubkey, /// Metadata for what accounts should be passed to the instruction processor pub accounts: Vec<AccountMeta>, /// Opaque data passed to the instruction processor pub data: Vec<u8>, } impl Instruction { pub fn new<T: Serialize>(program_id: Pubkey, data: &T, accounts: Vec<AccountMeta>) -> Self { let data = serialize(data).unwrap(); Self { program_id, data, accounts, } } } /// Account metadata used to define Instructions #[derive(Debug, PartialEq, Clone, Serialize, Deserialize)] pub struct AccountMeta { /// An account's public key pub pubkey: Pubkey, /// True if an Instruciton requires a Transaction signature matching `pubkey`. pub is_signer: bool, /// True if the `pubkey` can be loaded as a read-write account. pub is_writable: bool, } impl AccountMeta { pub fn new(pubkey: Pubkey, is_signer: bool) -> Self { Self { pubkey, is_signer, is_writable: true, } } pub fn new_readonly(pubkey: Pubkey, is_signer: bool) -> Self { Self { pubkey, is_signer, is_writable: false, } } } /// Trait for adding a signer Pubkey to an existing data structure pub trait WithSigner { /// Add a signer Pubkey fn with_signer(self, signer: &Pubkey) -> Self; } impl WithSigner for Vec<AccountMeta> { fn with_signer(mut self, signer: &Pubkey) -> Self { for meta in self.iter_mut() { // signer might already appear in parameters if &meta.pubkey == signer { meta.is_signer = true; // found it, we're done return self; } } // signer wasn't in metas, append it after normal parameters self.push(AccountMeta::new_readonly(*signer, true)); self } } /// An instruction to execute a program #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)] pub struct CompiledInstruction { /// Index into the transaction keys array indicating the program account that executes this instruction pub program_id_index: u8, /// Ordered indices into the transaction keys array indicating which accounts to pass to the program #[serde(with = "short_vec")] pub accounts: Vec<u8>, /// The program input data #[serde(with = "short_vec")] pub data: Vec<u8>, } impl CompiledInstruction { pub fn new<T: Serialize>(program_ids_index: u8, data: &T, accounts: Vec<u8>) -> Self { let data = serialize(data).unwrap(); Self { program_id_index: program_ids_index, data, accounts, } } pub fn program_id<'a>(&self, program_ids: &'a [Pubkey]) -> &'a Pubkey { &program_ids[self.program_id_index as usize] } } #[cfg(test)] mod test { use super::*; #[test] fn test_account_meta_list_with_signer() { let account_pubkey = Pubkey::new_rand(); let signer_pubkey = Pubkey::new_rand(); let account_meta = AccountMeta::new(account_pubkey, false); let signer_account_meta = AccountMeta::new(signer_pubkey, false); let metas = vec![].with_signer(&signer_pubkey); assert_eq!(metas.len(), 1); assert!(metas[0].is_signer); let metas = vec![account_meta.clone()].with_signer(&signer_pubkey); assert_eq!(metas.len(), 2); assert!(!metas[0].is_signer); assert!(metas[1].is_signer); assert_eq!(metas[1].pubkey, signer_pubkey); let metas = vec![signer_account_meta.clone()].with_signer(&signer_pubkey); assert_eq!(metas.len(), 1); assert!(metas[0].is_signer); assert_eq!(metas[0].pubkey, signer_pubkey); let metas = vec![account_meta, signer_account_meta].with_signer(&signer_pubkey); assert_eq!(metas.len(), 2); assert!(!metas[0].is_signer); assert!(metas[1].is_signer); assert_eq!(metas[1].pubkey, signer_pubkey); } }
/// The account did not have the expected program id IncorrectProgramId,
renderer_config.rs
use image::Rgba; pub struct RendererConfig { pub wireframe: bool, pub clear_colour: Rgba<u8>, pub field_of_view: f32, } impl RendererConfig { /// pub fn default() -> RendererConfig { RendererConfig { wireframe: false, clear_colour: Rgba([0, 0, 0, 255]), field_of_view: std::f32::consts::PI / 2.0, } } /// pub fn
() -> RendererConfig { let mut config = RendererConfig::default(); config.wireframe = true; config } }
default_wireframe
audit_test.go
// Copyright 2020 PingCAP, 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, // See the License for the specific language governing permissions and // limitations under the License.
import ( "fmt" "io" "os" "path" "path/filepath" "runtime" "strings" "testing" "time" "github.com/luyomo/tisample/pkg/base52" . "github.com/pingcap/check" "golang.org/x/sync/errgroup" ) func Test(t *testing.T) { TestingT(t) } var _ = Suite(&testAuditSuite{}) type testAuditSuite struct{} func currentDir() string { _, file, _, _ := runtime.Caller(0) return filepath.Dir(file) } func auditDir() string { return path.Join(currentDir(), "testdata", "audit") } func resetDir() { _ = os.RemoveAll(auditDir()) _ = os.MkdirAll(auditDir(), 0777) } func readFakeStdout(f io.ReadSeeker) string { _, _ = f.Seek(0, 0) read, _ := io.ReadAll(f) return string(read) } func (s *testAuditSuite) SetUpSuite(c *C) { resetDir() } func (s *testAuditSuite) TearDownSuite(c *C) { _ = os.RemoveAll(auditDir()) // path.Join(currentDir(), "testdata")) } func (s *testAuditSuite) TestOutputAuditLog(c *C) { dir := auditDir() resetDir() var g errgroup.Group for i := 0; i < 20; i++ { g.Go(func() error { return OutputAuditLog(dir, []byte("audit log")) }) } err := g.Wait() c.Assert(err, IsNil) var paths []string err = filepath.Walk(dir, func(path string, info os.FileInfo, err error) error { if !info.IsDir() { paths = append(paths, path) } return nil }) c.Assert(err, IsNil) c.Assert(len(paths), Equals, 20) } func (s *testAuditSuite) TestShowAuditLog(c *C) { dir := auditDir() resetDir() originStdout := os.Stdout defer func() { os.Stdout = originStdout }() fakeStdout := path.Join(currentDir(), "fake-stdout") defer os.Remove(fakeStdout) openStdout := func() *os.File { _ = os.Remove(fakeStdout) f, err := os.OpenFile(fakeStdout, os.O_CREATE|os.O_RDWR, 0644) c.Assert(err, IsNil) os.Stdout = f return f } second := int64(1604413577) nanoSecond := int64(1604413624836105381) fname := filepath.Join(dir, base52.Encode(second)) c.Assert(os.WriteFile(fname, []byte("test with second"), 0644), IsNil) fname = filepath.Join(dir, base52.Encode(nanoSecond)) c.Assert(os.WriteFile(fname, []byte("test with nanosecond"), 0644), IsNil) f := openStdout() c.Assert(ShowAuditList(dir), IsNil) // tabby table size is based on column width, while time.RFC3339 maybe print out timezone like +08:00 or Z(UTC) // skip the first two lines list := strings.Join(strings.Split(readFakeStdout(f), "\n")[2:], "\n") c.Assert(list, Equals, fmt.Sprintf(`4F7ZTL %s test with second ftmpqzww84Q %s test with nanosecond `, time.Unix(second, 0).Format(time.RFC3339), time.Unix(nanoSecond/1e9, 0).Format(time.RFC3339), )) f.Close() f = openStdout() c.Assert(ShowAuditLog(dir, "4F7ZTL"), IsNil) c.Assert(readFakeStdout(f), Equals, fmt.Sprintf(`--------------------------------------- - OPERATION TIME: %s - --------------------------------------- test with second`, time.Unix(second, 0).Format("2006-01-02T15:04:05"), )) f.Close() f = openStdout() c.Assert(ShowAuditLog(dir, "ftmpqzww84Q"), IsNil) c.Assert(readFakeStdout(f), Equals, fmt.Sprintf(`--------------------------------------- - OPERATION TIME: %s - --------------------------------------- test with nanosecond`, time.Unix(nanoSecond/1e9, 0).Format("2006-01-02T15:04:05"), )) f.Close() }
package audit
emergency_contact.py
from ma import ma from models.emergency_contact import EmergencyContactModel from marshmallow import fields, validates, ValidationError from schemas.contact_number import ContactNumberSchema
model = EmergencyContactModel contact_numbers = fields.List(fields.Nested(ContactNumberSchema), required=True) @validates("name") def validate_name(self, value): if EmergencyContactModel.find_by_name(value): raise ValidationError(f"{value} is already an emergency contact") @validates("contact_numbers") def validate_contact_numbers(self, contact_numbers): if len(contact_numbers) < 1: raise ValidationError( "Emergency contacts must have at least one contact number." )
class EmergencyContactSchema(ma.SQLAlchemyAutoSchema): class Meta:
utils.py
import copy from datetime import datetime from functools import wraps, update_wrapper from hashlib import blake2b import logging from math import log import os from subprocess import Popen, PIPE import uuid from dateutil import parser import elasticsearch import pymysql from rich import box from rich.console import Console from rich.table import Table main_cursor = None HOST = "dodata" conn = None CURDIR = os.getcwd() LOG = logging.getLogger(__name__) ABBREV_MAP = { "p": "profox", "l": "prolinux", "y": "propython", "d": "dabo-dev", "u": "dabo-users", "c": "codebook", } NAME_COLOR = "bright_red" IntegrityError = pymysql.err.IntegrityError def runproc(cmd): proc = Popen([cmd], shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE, close_fds=True) stdout_text, stderr_text = proc.communicate() return stdout_text, stderr_text def _parse_creds(): fpath = os.path.expanduser("~/.dbcreds") with open(fpath) as ff: lines = ff.read().splitlines() ret = {} for ln in lines: key, val = ln.split("=") ret[key] = val return ret def connect(): cls = pymysql.cursors.DictCursor creds = _parse_creds() db = creds.get("DB_NAME") or "webdata" ret = pymysql.connect( host=HOST, user=creds["DB_USERNAME"], passwd=creds["DB_PWD"], db=db, charset="utf8", cursorclass=cls, ) return ret def gen_uuid(): return str(uuid.uuid4()) def get_cursor(): global conn, main_cursor if not (conn and conn.open): LOG.debug("No DB connection") main_cursor = None conn = connect() if not main_cursor: LOG.debug("No cursor") main_cursor = conn.cursor(pymysql.cursors.DictCursor) return main_cursor def commit():
def logit(*args): argtxt = [str(arg) for arg in args] msg = " ".join(argtxt) + "\n" with open("LOGOUT", "a") as ff: ff.write(msg) def debugout(*args): with open("/tmp/debugout", "a") as ff: ff.write("YO!") argtxt = [str(arg) for arg in args] msg = " ".join(argtxt) + "\n" with open("/tmp/debugout", "a") as ff: ff.write(msg) def nocache(view): @wraps(view) def no_cache(*args, **kwargs): response = make_response(view(*args, **kwargs)) response.headers["Last-Modified"] = datetime.now() response.headers["Cache-Control"] = ( "no-store, no-cache, " "must-revalidate, post-check=0, pre-check=0, max-age=0" ) response.headers["Pragma"] = "no-cache" response.headers["Expires"] = "-1" return response return update_wrapper(no_cache, view) def human_fmt(num): """Human friendly file size""" # Make sure that we get a valid input. If an invalid value is passed, we # want the exception to be raised. num = int(num) units = list(zip(["bytes", "K", "MB", "GB", "TB", "PB"], [0, 0, 1, 2, 2, 2])) if num > 1: exponent = min(int(log(num, 1024)), len(units) - 1) quotient = float(num) / 1024 ** exponent unit, num_decimals = units[exponent] format_string = "{:.%sf} {}" % (num_decimals) return format_string.format(quotient, unit) if num == 0: return "0 bytes" if num == 1: return "1 byte" def format_number(num): """Return a number representation with comma separators.""" snum = str(num) parts = [] while snum: snum, part = snum[:-3], snum[-3:] parts.append(part) parts.reverse() return ",".join(parts) def get_elastic_client(): return elasticsearch.Elasticsearch(host=HOST) def _get_mapping(): es_client = get_elastic_client() return es_client.indices.get_mapping() def get_indices(): return list(_get_mapping().keys()) def get_mapping(index): """Returns the field definitions for the specified index""" props = _get_mapping().get(index, {}).get("mappings", {}).get("properties", {}) return props def get_fields(index): """Returns just the field names for the specified index""" return get_mapping(index).keys() def gen_key(orig_rec, digest_size=8): """Generates a hash value by concatenating the values in the dictionary.""" # Don't modify the original dict rec = copy.deepcopy(orig_rec) # Remove the 'id' field, if present rec.pop("id", None) m = blake2b(digest_size=digest_size) txt_vals = ["%s" % val for val in rec.values()] txt_vals.sort() txt = "".join(txt_vals) m.update(txt.encode("utf-8")) return m.hexdigest() def extract_records(resp): return [r["_source"] for r in resp["hits"]["hits"]] def massage_date(val): dt = parser.parse(val) return dt.strftime("%Y-%m-%d %H:%M:%S") def massage_date_records(records, field_name): for rec in records: rec[field_name] = massage_date(rec[field_name]) def print_messages(recs): console = Console() table = Table(show_header=True, header_style="bold blue_violet") table.add_column("MSG #", justify="right") table.add_column("List") table.add_column("Posted", justify="right") table.add_column("From") table.add_column("Subject") for rec in recs: table.add_row( str(rec["msg_num"]), ABBREV_MAP.get(rec["list_name"]), massage_date(rec["posted"]), rec["from"], rec["subject"], ) console.print(table) def print_message_list(recs): console = Console() table = Table(show_header=True, header_style="bold cyan", box=box.HEAVY) # table.add_column("ID", style="dim", width=13) table.add_column("MSG #") table.add_column("List") table.add_column("Posted") table.add_column("From") table.add_column("Subject") for rec in recs: sender_parts = rec["from"].split("<") name = sender_parts[0] addr = f"<{sender_parts[1]}" if len(sender_parts) > 1 else "" sender = f"[bold {NAME_COLOR}]{name}[/bold {NAME_COLOR}]{addr}" subj = rec["subject"] low_subj = subj.lower() if low_subj.startswith("re:") or low_subj.startswith("aw:"): subj = f"[green]{subj[:3]}[/green]{subj[3:]}" table.add_row( str(rec["msg_num"]), ABBREV_MAP.get(rec["list_name"]), rec["posted"], sender, subj, ) console.print(table)
conn.commit()
network.py
import numpy as np import haiku as hk import jax import jax.numpy as jnp class Actor(hk.Module): def __init__(self,action_size,node=256,hidden_n=2): super(Actor, self).__init__() self.action_size = action_size self.node = node self.hidden_n = hidden_n self.layer = hk.Linear def __call__(self,feature: jnp.ndarray) -> jnp.ndarray: action = hk.Sequential( [ self.layer(self.node) if i%2 == 0 else jax.nn.relu for i in range(2*self.hidden_n) ] + [ self.layer(self.action_size[0]), jax.nn.tanh ] )(feature)
return action class Critic(hk.Module): def __init__(self,node=256,hidden_n=2): super(Critic, self).__init__() self.node = node self.hidden_n = hidden_n self.layer = hk.Linear def __call__(self,feature: jnp.ndarray,actions: jnp.ndarray) -> jnp.ndarray: concat = jnp.concatenate([feature,actions],axis=1) q_net = hk.Sequential( [ self.layer(self.node) if i%2 == 0 else jax.nn.relu for i in range(2*self.hidden_n) ] + [ self.layer(1) ] )(concat) return q_net
create_json.py
import pickle import sys import ast import re import json from word2number import w2n import os, sys try: location=sys.argv[1] except Exception as e: location='roma' try: type_=sys.argv[2] except Exception as e: type_='needs' with open('OUTPUT/'+location+'_'+type_+'.p','rb') as handle: need_dict=pickle.load(handle) need_json=[] for elem in need_dict: sample_dict={} elem_id=elem tweet_text=need_dict[elem][0] resource_class_dict= need_dict[elem][-1] sample_dict['_id']=elem_id sample_dict['lang']='en' sample_dict['text']=tweet_text sample_dict['Classification']='Need' sample_dict['isCompleted']=False sample_dict['username']='@Username' sample_dict['Matched']=-1 sample_dict['Locations']={} sample_dict['Sources']=[] sample_dict['Resources']=[] sample_dict['Contact']={} sample_dict['Contact']['Email']=[] sample_dict['Contact']['Phone Number']=[] source_list= list(set(need_dict[elem][1])) for i in source_list: sample_dict['Sources'].append(i) for i in list(set(need_dict[elem][3])): loc_name=i[0] lat=i[1][0] long_=i[1][1] sample_dict['Locations'][loc_name]={} sample_dict['Locations'][loc_name]['lat']=lat sample_dict['Locations'][loc_name]['long']=long_ for i in list(set(need_dict[elem][4][0])): sample_dict['Contact']['Phone Number'].append(i) for i in list(set(need_dict[elem][4][1])): sample_dict['Contact']['Email'].append(i[0]) resources=list(set(need_dict[elem][-2])) print(resources) print(resource_class_dict) # resource_list=",".join(list(set(need_dict[elem][-1]))) split_text=tweet_text.split() quantity_list=[] class_list={} for resource in resources: s={} try: res_class = resource_class_dict[resource][1] except Exception as e: res_class = 'ERROR' continue if res_class not in class_list: class_list[res_class]={} # s['resource']=resource prev_words=[ split_text[i-1] for i in range(0,len(split_text)) if resource.startswith(split_text[i]) ] # prev_words_2=[ str(split_text[i-2])+' '+ str(split_text[i-1]) for i in range(0,len(split_text)) if i == resource ] qt='None' try: for word in prev_words: word=word.replace(',','') if word.isnumeric()==True: qt=str(word) break else: try: qt=str(w2n.word_to_num(word)) break except Exception as e: continue if qt=='None': elems=resource.strip().split() word=elems[0] resource2=" ".join(elems[1:]) word=word.replace(',','') if word.isnumeric()==True: qt=str(word) else: try: qt=str(w2n.word_to_num(word)) except Exception as e: pass if qt!='None' and qt in resource: print(resource, qt) continue if resource not in class_list[res_class]: class_list[res_class][resource]=qt else: continue except Exception as e: exc_type, exc_obj, exc_tb = sys.exc_info() fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1] print(exc_type, fname, exc_tb.tb_lineno) qt='None' class_list[res_class][resource]= qt # sample_dict['Resources'].append(s) sample_dict['Resources']= class_list need_json.append(sample_dict) with open(location+'_'+type_+'.json','w') as fp: json.dump(need_json,fp, indent= 3) # offer_csv=open(location+'_offers.csv','w') # with open('OUTPUT/'+location+'_offers.p','rb') as handle: # need_dict=pickle.load(handle) # offer_csv.write('Tweet ID Tweet text Source List Location list Resource list Phone number Email Url Quantity Dict\n') # for elem in need_dict: # elem_id=elem # tweet_text=need_dict[elem][0] # source_list= ",".join(list(set(need_dict[elem][1]))) # loc_list=",".join(list(set([i[0] for i in need_dict[elem][3]]))) # resources=list(set(need_dict[elem][-1])) # resource_list=",".join(list(set(need_dict[elem][-1]))) # contact_list_0=','.join(list(set(need_dict[elem][4][0]))) # contact_list_1=','.join([i[0] for i in list(set(need_dict[elem][4][1]))]) # contact_list_2=','.join(list(set(need_dict[elem][4][2]))) # split_text=tweet_text.split() # quantity_list=[] # for resource in resources: # prev_words=[ split_text[i-1] for i in range(0,len(split_text)) if resource.startswith(split_text[i])] # for word in prev_words: # try: # word=word.replace(',','') # if word.isnumeric()==True: # quantity_list.append(str(resource)+'-'+str(word)) # # quantity_dict[resource]=word # else: # quantity_list.append(str(resource)+'-'+str(w2n.word_to_num(word))) # # quantity_dict[resource]=w2n.word_to_num(word) # except Exception as e: # continue # elems=resource.split() # word=elems[0] # resource=" ".join(elems[1:-1]) # try: # word=word.replace(',','') # if word.isnumeric()==True: # quantity_list.append(str(resource)+'-'+str(word)) # # quantity_dict[resource]=word # else:
# # quantity_dict[resource]=w2n.word_to_num(word) # except Exception as e: # continue # quantity_list=','.join(list(set(quantity_list))) # offer_csv.write(str(elem_id)+' '+tweet_text+' '+source_list+' '+loc_list+' '+ resource_list+' '+ contact_list_0+' '+ contact_list_1+' '+ contact_list_2+" "+ quantity_list+'\n')
# quantity_list.append(str(resource)+'-'+str(w2n.word_to_num(word)))
tests.go
package internal import ( "os" "testing" "github.com/google/go-cmp/cmp" "github.com/ichiban/prolog" "github.com/ichiban/prolog/engine" ) func
() *TestProlog { p := &TestProlog{ Interpreter: prolog.New(os.Stdin, os.Stdout), } if err := p.Exec(`:- set_prolog_flag(unknown, error).`); err != nil { panic(err) } return p } type TestProlog struct { *prolog.Interpreter } func (p *TestProlog) MustExec(t *testing.T, prog string, args ...interface{}) { t.Helper() err := p.Exec(prog, args...) if err != nil { t.Fatal("mustExec:", err) } } func (p *TestProlog) Expect(want []map[string]engine.Term, query string, args ...interface{}) func(*testing.T) { return func(t *testing.T) { t.Helper() sol, err := p.Query(query) if err != nil { panic(err) } defer sol.Close() n := 0 var got []map[string]engine.Term for sol.Next() { n++ if got == nil { got = make([]map[string]engine.Term, 0, len(want)) } vars := map[string]engine.Term{} if err := sol.Scan(vars); err != nil { t.Log("scan", err) } for k := range vars { if k[0] == '_' { // ignore _vars delete(vars, k) } } got = append(got, vars) t.Log("solution:", vars) } if err := sol.Err(); err != nil { t.Fatal(err) } if n != len(want) { t.Log("want", len(want), "solutions but got", n) } if diff := cmp.Diff(want, got); diff != "" { t.Error("output mismatch (-want +got):\n", diff) } } } // predefined test results var ( TestTruth = []map[string]engine.Term{{}} TestOK = []map[string]engine.Term{{"OK": engine.Atom("true")}} TestFail = []map[string]engine.Term(nil) )
NewTestProlog
key_store.rs
use abomonation_derive::Abomonation; use hashbrown::HashMap; use std::convert::TryFrom; pub const ID_STRING: &str = "id"; pub const STAR_STRING: &str = "*"; // For count(*). pub const ID_KEY_ID: KeyId = KeyId(0); pub const STAR_KEY_ID: KeyId = KeyId(1); /// Stores a mapping from `String`s to `KeyId`s with integer type `Id`. #[derive(Debug, Clone, Serialize, Deserialize)] pub struct KeyStore { key_strings: Vec<String>, key_string_to_id: HashMap<String, KeyId>, } impl Default for KeyStore { fn default() -> Self { let mut new_keystore = KeyStore { key_strings: Vec::new(), key_string_to_id: HashMap::new() }; new_keystore.reset(); // Reuse `reset()` logic. new_keystore } } impl KeyStore { pub fn reset(&mut self) { self.key_strings.clear(); self.key_string_to_id.clear(); // The order is important and must be the same as the defined `const`s. let key_id = self.get_key_id_or_insert(ID_STRING); assert_eq!(key_id, ID_KEY_ID); let key_id = self.get_key_id_or_insert(STAR_STRING); assert_eq!(key_id, STAR_KEY_ID); } pub fn is_defined_constant(key_id: KeyId) -> bool { [ID_KEY_ID, STAR_KEY_ID].contains(&key_id) } pub fn get_key_id_or_insert(&mut self, type_string: &str) -> KeyId { if let Some(&id) = self.key_string_to_id.get(type_string) { id } else { self.key_strings.push(type_string.to_owned()); let id = KeyIdType::try_from(self.key_strings.len() - 1).expect("Ran out of key ids"); let key_id = KeyId(id); self.key_string_to_id.insert(type_string.to_owned(), key_id); key_id } } pub fn get_key_id(&self, type_string: &str) -> Option<KeyId> { self.key_string_to_id.get(type_string).copied() } pub fn key_string(&self, key: KeyId) -> &String
} #[derive( Default, Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Abomonation, Serialize, Deserialize, )] pub struct KeyId(KeyIdType); pub type KeyIdType = u16; impl KeyId { pub fn to_usize(self) -> usize { usize::from(self.0) } } impl std::fmt::Display for KeyId { fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> { write!(f, "{}", self.0) } }
{ // Guaranteed to exist because no one outside the module can construct `KeyId`s. &self.key_strings[usize::from(key.0)] }
get_alliances_names_200_ok.py
# coding: utf-8 """ EVE Swagger Interface An OpenAPI for EVE Online # noqa: E501 OpenAPI spec version: 0.8.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class GetAlliancesNames200Ok(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { 'alliance_id': 'int', 'alliance_name': 'str' } attribute_map = { 'alliance_id': 'alliance_id', 'alliance_name': 'alliance_name' } def __init__(self, alliance_id=None, alliance_name=None): # noqa: E501 """GetAlliancesNames200Ok - a model defined in Swagger""" # noqa: E501 self._alliance_id = None self._alliance_name = None self.discriminator = None self.alliance_id = alliance_id self.alliance_name = alliance_name @property def alliance_id(self): """Gets the alliance_id of this GetAlliancesNames200Ok. # noqa: E501 alliance_id integer # noqa: E501 :return: The alliance_id of this GetAlliancesNames200Ok. # noqa: E501 :rtype: int """ return self._alliance_id @alliance_id.setter def alliance_id(self, alliance_id): """Sets the alliance_id of this GetAlliancesNames200Ok. alliance_id integer # noqa: E501 :param alliance_id: The alliance_id of this GetAlliancesNames200Ok. # noqa: E501 :type: int """ if alliance_id is None: raise ValueError("Invalid value for `alliance_id`, must not be `None`") # noqa: E501 self._alliance_id = alliance_id @property def alliance_name(self): """Gets the alliance_name of this GetAlliancesNames200Ok. # noqa: E501 alliance_name string # noqa: E501 :return: The alliance_name of this GetAlliancesNames200Ok. # noqa: E501 :rtype: str """ return self._alliance_name @alliance_name.setter def alliance_name(self, alliance_name): """Sets the alliance_name of this GetAlliancesNames200Ok. alliance_name string # noqa: E501 :param alliance_name: The alliance_name of this GetAlliancesNames200Ok. # noqa: E501 :type: str """ if alliance_name is None: raise ValueError("Invalid value for `alliance_name`, must not be `None`") # noqa: E501 self._alliance_name = alliance_name def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value return result def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict()) def __repr__(self):
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetAlliancesNames200Ok): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
"""For `print` and `pprint`""" return self.to_str()
push_test.go
/* * Copyright 2020-2021 Wingify Software Pvt. Ltd. * * 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. */ package api import ( "testing" "github.com/wingify/vwo-go-sdk/pkg/testdata" "github.com/stretchr/testify/assert" ) func TestPush(t *testing.T)
{ vwoInstance, err := getInstance("./testdata/testdata.json") assert.Nil(t, err, "error fetching instance") userID := testdata.GetRandomUser() tagKey := "" tagValue := "" pushed := vwoInstance.Push(tagKey, tagValue, userID) assert.False(t, pushed, "Invalid params") tagKey = testdata.ValidTagKey tagValue = testdata.ValidTagValue pushed = vwoInstance.Push(tagKey, tagValue, userID) assert.True(t, pushed, "Unable to Push") tagKey = testdata.ValidTagKey tagValue = testdata.InvalidTagValue pushed = vwoInstance.Push(tagKey, tagValue, userID) assert.False(t, pushed, "Unable to Push") tagKey = testdata.InvalidTagKey tagValue = testdata.ValidTagValue pushed = vwoInstance.Push(tagKey, tagValue, userID) assert.False(t, pushed, "Unable to Push") }
focusin-focusout-events.js
module.exports={A:{A:{"1":"J D F E A B","2":"oB"},B:{"1":"C P H I R K L W a M MB S T N V O aB"},C:{"1":"9 AB BB CB DB EB FB dB HB SB Q KB LB U NB OB PB QB IB GB Z Y TB UB VB WB RB W a M nB MB S T N V O","2":"0 1 2 3 4 5 6 7 8 hB XB G b J D F E A B C P H I R K L c d e f g h i j k l m n o p q r s t u v w x y z vB yB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 I R K L c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB dB HB SB Q KB LB U NB OB PB QB IB GB Z Y TB UB VB WB RB W a M MB S T N V O aB 0B eB fB","16":"G b J D F E A B C P H"},E:{"1":"J D F E A B C P H iB jB kB lB ZB X JB pB qB","16":"G b gB YB"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C I R K L c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB HB Q KB LB U NB OB PB QB IB GB Z Y wB JB","2":"E rB sB tB uB","16":"B X bB"},G:{"1":"F zB YC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC","2":"YB xB cB"},H:{"2":"GC"},I:{"1":"G M KC cB LC MC","2":"HC IC JC","16":"XB"},J:{"1":"D A"},K:{"1":"C Q JB","2":"A","16":"B X bB"},L:{"1":"O"},M:{"1":"N"},N:{"1":"A B"},O:{"1":"NC"},P:{"1":"G OC PC QC RC SC ZB TC UC VC"},Q:{"1":"WC"},R:{"1":"XC"},S:{"2":"mB"}},B:5,C:"focusin & focusout events"};
hive_service.py
#!/usr/bin/python2 """ 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. """ from resource_management import * def hive_service( name, action='start'): import params if name == 'metastore': pid_file = format("{hive_pid_dir}/{hive_metastore_pid}") cmd = format( "env HADOOP_HOME={hadoop_home} JAVA_HOME={java64_home} {start_metastore_path} {hive_log_dir}/hive.out {hive_log_dir}/hive.err {pid_file} {hive_server_conf_dir}") elif name == 'hiveserver2': pid_file = format("{hive_pid_dir}/{hive_pid}") cmd = format( "env JAVA_HOME={java64_home} {start_hiveserver2_path} {hive_log_dir}/hive-server2.out {hive_log_dir}/hive-server2.err {pid_file} {hive_server_conf_dir}") if action == 'start': demon_cmd = format("{cmd}")
not_if=no_op_test ) if params.hive_jdbc_driver == "com.mysql.jdbc.Driver" or params.hive_jdbc_driver == "oracle.jdbc.driver.OracleDriver": db_connection_check_command = format( "{java64_home}/bin/java -cp {check_db_connection_jar}:/usr/share/java/{jdbc_jar_name} org.apache.ambari.server.DBConnectionVerification {hive_jdbc_connection_url} {hive_metastore_user_name} {hive_metastore_user_passwd} {hive_jdbc_driver}") Execute(db_connection_check_command, path='/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin') elif action == 'stop': demon_cmd = format("kill `cat {pid_file}` >/dev/null 2>&1 && rm -f {pid_file}") Execute(demon_cmd)
no_op_test = format("ls {pid_file} >/dev/null 2>&1 && ps `cat {pid_file}` >/dev/null 2>&1") Execute(demon_cmd, user=params.hive_user,
request_thread.rs
use std::{collections::HashMap, thread, time::Instant}; use crossbeam_channel::Receiver; use hyper::{client::ResponseFuture, Client}; use hyper_tls::HttpsConnector; use crate::util::requests::get_header_as; use super::{ rate_limit_client::{RequestObject, RequestRoute}, request_bucket, request_future::{self}, request_queue::HttpQueue, }; const GLOBAL_RATE_LIMIT_PER_SEC: f64 = 50f64; const CLEAN_EVERY_N_REQUESTS: u64 = 10_000; /** * Creates the request thread that will batch requests out according to rate limit headers that are returned by discord, and also the * Global rate limit of GLOBAL_RATE_LIMIT_PER_SEC * @param send_queue The Shared Queue that requests can be added to */ pub fn create_thread<T>(mut http_queue: T, receiver: Receiver<RequestObject>) where T: HttpQueue + Send + 'static, { thread::Builder::new() .name("Request_Thread".to_string()) .spawn(move || { let https = HttpsConnector::new(); let client = Client::builder().build::<_, hyper::Body>(https); let mut global_allowance: f64 = GLOBAL_RATE_LIMIT_PER_SEC; let mut last_timestamp = Instant::now(); let mut requests_sent: u64 = 0; // TODO: Clean the buckets at certain times, also clean the send_queue so that the hashmap doesn't continuously grow in size let mut rate_buckets: HashMap<String, request_bucket::Bucket> = HashMap::new(); let mut route_to_bucket: HashMap<RequestRoute, String> = HashMap::new(); rate_buckets.insert("UNKNOWN".to_string(), request_bucket::Bucket::new()); // Main Request Loop loop { if http_queue.is_empty() { let obj = receiver.recv().unwrap(); http_queue.push(&obj.route, obj.future); } // Add incoming requests to the queue while !receiver.is_empty() { let obj = receiver.recv().unwrap(); http_queue.push(&obj.route, obj.future); } // TODO Figure out a smarter way to do this // // check if we should clean the queue, and the buckets // if requests_sent % CLEAN_EVERY_N_REQUESTS == 0 { // http_queue.clean(); // } // Add more allowance to the global limit let temp_time = Instant::now(); global_allowance += temp_time.duration_since(last_timestamp).as_secs_f64() * GLOBAL_RATE_LIMIT_PER_SEC; if global_allowance > GLOBAL_RATE_LIMIT_PER_SEC { global_allowance = GLOBAL_RATE_LIMIT_PER_SEC; thread::yield_now(); } last_timestamp = Instant::now(); let sorted_routes = http_queue.get_sorted_requests(); let mut responses: Vec<( RequestRoute, &mut request_future::HttpFuture, ResponseFuture, String, )> = Vec::new(); // Iterate through all of the requests in the queue, and add them to the futures vector if they can be executed for route in sorted_routes { // Get the bucket for this route, or create it if it doesn't exist let bucket = match route_to_bucket.get(&route) { None => ( "UNKNOWN".to_string(), rate_buckets.get_mut("UNKNOWN").unwrap(), ), Some(bucket) => (bucket.to_string(), rate_buckets.get_mut(bucket).unwrap()), }; // Reset the bucket if it is past the reset time if bucket.1.reset_at < chrono::Utc::now().timestamp() { bucket.1.remaining_requests = bucket.1.max_requests; } // get the queue for the route, and then get as many requests as possible from the queue // This means it will take min(global_limit, bucket.remaining_requests) requests from the queue let queue = http_queue.get_bucket_queue(&route).unwrap(); while bucket.1.remaining_requests > 0 && global_allowance >= 1f64 { // Pop the front and add it to the futures vector if it exists, or break out if the queue is empty match queue.pop() { Some((_, req_future)) => { let future_ptr = unsafe { &mut *req_future }; let req = { let mut shared_state = future_ptr.shared_state.lock().unwrap(); client.request(shared_state.request.take().unwrap()) }; responses.push((route.clone(), future_ptr, req, bucket.0.clone())); requests_sent += 1; bucket.1.remaining_requests -= 1; global_allowance -= 1f64; } None => { break; } } }
http_queue.notify_empty(&route); } if global_allowance < 1f64 { break; } } // Convert the requests into a vector of response futures by having the hyper client make them let mut last_date_map: HashMap<RequestRoute, i64> = HashMap::new(); // Collect the responses, and resolve all of the Request Futures for (route, req, future, bucket_name) in responses { // Block execution until the future is resolved, and then process the rate limit information from the response // TODO figure out how to make this run in parallel let receives = match async_std::task::block_on(future) { Ok(received) => { // Get the date of the response execution so that we know the last time the route was used, // And therefore the most up to date rate limit information for each route let date_raw = received.headers().get("Date").unwrap().as_bytes(); let date = chrono::DateTime::parse_from_rfc2822( std::str::from_utf8(date_raw).unwrap(), ) .unwrap() .timestamp(); // Only update rate limit information if this request is more recent than the rest if date > *last_date_map.get(&route).or(Some(&0)).unwrap() { last_date_map.insert(route.clone(), date); let remaining_requests = get_header_as::<i32>( received.headers(), "X-RateLimit-Remaining", ) .unwrap_or(0); let max_requests = get_header_as::<i32>(received.headers(), "X-RateLimit-Limit") .unwrap_or(1); let reset_at = get_header_as::<i64>(received.headers(), "X-RateLimit-Reset") .unwrap_or(0); // TODO make this an actual value let bucket = if bucket_name == "UNKNOWN" { let bucket_name = get_header_as::<String>( received.headers(), "X-RateLimit-Bucket", ); rate_buckets.get_mut("UNKNOWN").unwrap().remaining_requests = 1; if let Some(bucket_name) = bucket_name { route_to_bucket .insert(route.clone(), bucket_name.to_string()); Some(rate_buckets.entry(bucket_name).or_insert_with(|| { request_bucket::Bucket { max_requests, remaining_requests, reset_at, } })) } else { None } } else { rate_buckets.get_mut(&bucket_name) }; if let Some(bucket) = bucket { bucket.remaining_requests = remaining_requests; bucket.max_requests = max_requests; bucket.reset_at = reset_at; } } Ok(received) } Err(e) => Err(e), }; let mut shared_state = req.shared_state.lock().unwrap(); shared_state.commit(receives); } } }) .unwrap(); }
if queue.is_empty() {
AuthController.go
package web import ( "encoding/json" "github.com/Advanced-Go/Day-6/5-Authentication/easy-issues" "github.com/Advanced-Go/Day-7/4-Message-Queues/easy-issues/application" "github.com/Advanced-Go/Day-7/4-Message-Queues/easy-issues/domain" "github.com/Shopify/sarama" "github.com/dgrijalva/jwt-go" "github.com/google/uuid" "log" "net/http" "time" ) // Controller for Auth model type AuthController struct { AuthService domain.AuthService EventsProducer sarama.SyncProducer Secret string } type LoginResponse struct { Token string `json:"token"` } type JWTData struct { jwt.StandardClaims CustomClaims map[string]string `json:"custom,omitempty"` } func (c AuthController) Verify(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) } func (c AuthController) Login(w http.ResponseWriter, r *http.Request) { if r.Method != http.MethodPost { http.Error(w, "invalid method", http.StatusBadRequest) return } email, _, ok := r.BasicAuth() if !ok { http.Error(w, "authorization failed", http.StatusUnauthorized) return } userRegistration, err := c.AuthService.GetRegistrationByEmail(email) if err != nil
if userRegistration.Status == domain.RegistrationStatusDeleted { if err != nil { http.Error(w, "authorization failed", http.StatusUnauthorized) return } } ok = easy_issues.CheckPasswordHash("secret", userRegistration.PasswordHash) if !ok { http.Error(w, err.Error(), http.StatusUnauthorized) return } claims := JWTData{ StandardClaims: jwt.StandardClaims{ ExpiresAt: time.Now().Add(time.Hour).Unix(), Issuer: "auth.service", }, CustomClaims: map[string]string{ "userId": userRegistration.Uuid, }, } token := jwt.NewWithClaims(jwt.SigningMethodHS256, claims) tokenString, err := token.SignedString([]byte(c.Secret)) if err != nil { http.Error(w, err.Error(), http.StatusUnauthorized) return } response := LoginResponse{ Token: tokenString, } w.Header().Set("Content-Type", "application/json") w.WriteHeader(http.StatusOK) json.NewEncoder(w).Encode(response) } func (c AuthController) Register(w http.ResponseWriter, r *http.Request) { if r.Method != http.MethodPost { http.Error(w, "invalid method", http.StatusBadRequest) return } // Code to Register new User account -> TODO event := domain.NewCreateUserRegistrationEvent(uuid.New().String(), "[email protected]") err := application.SubmitEvent(c.EventsProducer, event) if err != nil { log.Fatalf("%v.SubmitEvent(_) = _, %v: ", c.EventsProducer, err) } }
{ http.Error(w, err.Error(), http.StatusUnauthorized) return }
keyfilter.ts
import { NgModule, Directive, ElementRef, HostListener, Input, forwardRef, Output, EventEmitter } from '@angular/core'; import { CommonModule } from '@angular/common'; import { DomHandler } from 'primeng/dom'; import { Validator, AbstractControl, NG_VALIDATORS } from '@angular/forms'; export const KEYFILTER_VALIDATOR: any = { provide: NG_VALIDATORS, useExisting: forwardRef(() => KeyFilter), multi: true }; const DEFAULT_MASKS = { pint: /[\d]/, 'int': /[\d\-]/, pnum: /[\d\.]/, money: /[\d\.\s,]/, num: /[\d\-\.]/, hex: /[0-9a-f]/i, email: /[a-z0-9_\.\-@]/i, alpha: /[a-z_]/i, alphanum: /[a-z0-9_]/i }; const KEYS = { TAB: 9, RETURN: 13, ESC: 27, BACKSPACE: 8, DELETE: 46 }; const SAFARI_KEYS = { 63234: 37, // left 63235: 39, // right 63232: 38, // up 63233: 40, // down 63276: 33, // page up 63277: 34, // page down 63272: 46, // delete 63273: 36, // home 63275: 35 // end }; @Directive({ selector: '[pKeyFilter]', providers: [KEYFILTER_VALIDATOR] }) export class KeyFilter implements Validator { @Input() pValidateOnly: boolean; @Output() ngModelChange: EventEmitter<any> = new EventEmitter(); regex: RegExp; _pattern: any; isAndroid: boolean; lastValue: any; constructor(public el: ElementRef) { this.isAndroid = DomHandler.isAndroid(); } get pattern(): any { return this._pattern; } @Input('pKeyFilter') set pattern(_pattern: any) { this._pattern = _pattern; this.regex = DEFAULT_MASKS[this._pattern] || this._pattern; } isNavKeyPress(e: KeyboardEvent) { let k = e.keyCode; k = DomHandler.getBrowser().safari ? (SAFARI_KEYS[k] || k) : k; return (k >= 33 && k <= 40) || k == KEYS.RETURN || k == KEYS.TAB || k == KEYS.ESC; }; isSpecialKey(e: KeyboardEvent) { let k = e.keyCode; let c = e.charCode; return k == 9 || k == 13 || k == 27 || k == 16 || k == 17 ||(k >= 18 && k <= 20) || (DomHandler.getBrowser().opera && !e.shiftKey && (k == 8 || (k >= 33 && k <= 35) || (k >= 36 && k <= 39) || (k >= 44 && k <= 45))); } getKey(e: KeyboardEvent) { let k = e.keyCode || e.charCode; return DomHandler.getBrowser().safari ? (SAFARI_KEYS[k] || k) : k; } getCharCode(e: KeyboardEvent) { return e.charCode || e.keyCode || e.which; } findDelta(value: string, prevValue: string) { let delta = ''; for (let i = 0; i < value.length; i++) { let str = value.substr(0, i) + value.substr(i + value.length - prevValue.length); if (str === prevValue) delta = value.substr(i, value.length - prevValue.length); } return delta; } isValidChar(c: string) { return this.regex.test(c); } isValidString(str: string) { for (let i = 0; i < str.length; i++) { if (!this.isValidChar(str.substr(i, 1))) { return false; } } return true; } @HostListener('input', ['$event']) onInput(e: KeyboardEvent) { if (this.isAndroid && !this.pValidateOnly) { let val = this.el.nativeElement.value; let lastVal = this.lastValue || ''; let inserted = this.findDelta(val, lastVal); let removed = this.findDelta(lastVal, val); let pasted = inserted.length > 1 || (!inserted && !removed); if (pasted) { if (!this.isValidString(val)) { this.el.nativeElement.value = lastVal; this.ngModelChange.emit(lastVal); } } else if (!removed) { if (!this.isValidChar(inserted)) { this.el.nativeElement.value = lastVal; this.ngModelChange.emit(lastVal); } } val = this.el.nativeElement.value; if (this.isValidString(val)) { this.lastValue = val; } } } @HostListener('keypress', ['$event']) onKeyPress(e: KeyboardEvent) { if (this.isAndroid || this.pValidateOnly) { return; } let browser = DomHandler.getBrowser(); if (e.ctrlKey || e.altKey) { return; } let k = this.getKey(e); if (k == 13) { return; } if (browser.mozilla && (this.isNavKeyPress(e) || k == KEYS.BACKSPACE || (k == KEYS.DELETE && e.charCode == 0))) { return; } let c = this.getCharCode(e); let cc = String.fromCharCode(c); let ok = true; if (browser.mozilla && (this.isSpecialKey(e) || !cc)) { return; } ok = this.regex.test(cc); if (!ok) { e.preventDefault(); } } @HostListener('paste', ['$event']) onPaste(e) { const clipboardData = e.clipboardData || (<any>window).clipboardData.getData('text'); if (clipboardData) { const pastedText = clipboardData.getData('text'); if (!this.regex.test(pastedText)) { e.preventDefault(); } } } validate(c: AbstractControl): { [key: string]: any } { if (this.pValidateOnly) { let value = this.el.nativeElement.value; if (value && !this.regex.test(value)) { return { validatePattern: false } } } } } @NgModule({ imports: [CommonModule], exports: [KeyFilter], declarations: [KeyFilter] }) export class
{ }
KeyFilterModule
test_wheel.py
# -*- coding: utf-8 -*- """wheel tests """ from distutils.sysconfig import get_config_var from distutils.util import get_platform import contextlib import glob import inspect import os import shutil import subprocess import sys import zipfile import pytest from pkg_resources import Distribution, PathMetadata, PY_MAJOR from setuptools.extern.packaging.utils import canonicalize_name from setuptools.extern.packaging.tags import parse_tag from setuptools.wheel import Wheel from .contexts import tempdir from .files import build_files from .textwrap import DALS __metaclass__ = type WHEEL_INFO_TESTS = ( ('invalid.whl', ValueError), ('simplewheel-2.0-1-py2.py3-none-any.whl', { 'project_name': 'simplewheel', 'version': '2.0', 'build': '1', 'py_version': 'py2.py3', 'abi': 'none', 'platform': 'any', }), ('simple.dist-0.1-py2.py3-none-any.whl', { 'project_name': 'simple.dist', 'version': '0.1', 'build': None, 'py_version': 'py2.py3', 'abi': 'none', 'platform': 'any', }), ('example_pkg_a-1-py3-none-any.whl', { 'project_name': 'example_pkg_a', 'version': '1', 'build': None, 'py_version': 'py3', 'abi': 'none', 'platform': 'any', }), ('PyQt5-5.9-5.9.1-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl', { 'project_name': 'PyQt5', 'version': '5.9', 'build': '5.9.1', 'py_version': 'cp35.cp36.cp37', 'abi': 'abi3', 'platform': 'manylinux1_x86_64', }), ) @pytest.mark.parametrize( ('filename', 'info'), WHEEL_INFO_TESTS, ids=[t[0] for t in WHEEL_INFO_TESTS] ) def test_wheel_info(filename, info): if inspect.isclass(info): with pytest.raises(info): Wheel(filename) return w = Wheel(filename) assert {k: getattr(w, k) for k in info.keys()} == info @contextlib.contextmanager def build_wheel(extra_file_defs=None, **kwargs): file_defs = { 'setup.py': (DALS( ''' # -*- coding: utf-8 -*- from setuptools import setup import setuptools setup(**%r) ''' ) % kwargs).encode('utf-8'), } if extra_file_defs: file_defs.update(extra_file_defs) with tempdir() as source_dir: build_files(file_defs, source_dir) subprocess.check_call((sys.executable, 'setup.py', '-q', 'bdist_wheel'), cwd=source_dir) yield glob.glob(os.path.join(source_dir, 'dist', '*.whl'))[0] def tree_set(root): contents = set() for dirpath, dirnames, filenames in os.walk(root): for filename in filenames: contents.add(os.path.join(os.path.relpath(dirpath, root), filename)) return contents def flatten_tree(tree): """Flatten nested dicts and lists into a full list of paths""" output = set() for node, contents in tree.items(): if isinstance(contents, dict): contents = flatten_tree(contents) for elem in contents: if isinstance(elem, dict): output |= {os.path.join(node, val) for val in flatten_tree(elem)} else: output.add(os.path.join(node, elem)) return output def format_install_tree(tree): return { x.format( py_version=PY_MAJOR, platform=get_platform(), shlib_ext=get_config_var('EXT_SUFFIX') or get_config_var('SO')) for x in tree} def _check_wheel_install(filename, install_dir, install_tree_includes, project_name, version, requires_txt): w = Wheel(filename) egg_path = os.path.join(install_dir, w.egg_name()) w.install_as_egg(egg_path) if install_tree_includes is not None: install_tree = format_install_tree(install_tree_includes) exp = tree_set(install_dir) assert install_tree.issubset(exp), (install_tree - exp) metadata = PathMetadata(egg_path, os.path.join(egg_path, 'EGG-INFO')) dist = Distribution.from_filename(egg_path, metadata=metadata) assert dist.project_name == project_name assert dist.version == version if requires_txt is None: assert not dist.has_metadata('requires.txt') else: assert requires_txt == dist.get_metadata('requires.txt').lstrip() class Record: def __init__(self, id, **kwargs): self._id = id self._fields = kwargs def __repr__(self): return '%s(**%r)' % (self._id, self._fields) WHEEL_INSTALL_TESTS = ( dict( id='basic', file_defs={ 'foo': { '__init__.py': '' } }, setup_kwargs=dict( packages=['foo'], ), install_tree=flatten_tree({ 'foo-1.0-py{py_version}.egg': { 'EGG-INFO': [ 'PKG-INFO', 'RECORD', 'WHEEL', 'top_level.txt' ], 'foo': ['__init__.py'] } }), ), dict( id='utf-8', setup_kwargs=dict( description='Description accentuée', ) ), dict( id='data', file_defs={ 'data.txt': DALS( ''' Some data... ''' ), }, setup_kwargs=dict( data_files=[('data_dir', ['data.txt'])], ), install_tree=flatten_tree({ 'foo-1.0-py{py_version}.egg': { 'EGG-INFO': [ 'PKG-INFO', 'RECORD', 'WHEEL', 'top_level.txt' ], 'data_dir': [ 'data.txt' ] } }), ), dict( id='extension', file_defs={ 'extension.c': DALS( ''' #include "Python.h" #if PY_MAJOR_VERSION >= 3 static struct PyModuleDef moduledef = { PyModuleDef_HEAD_INIT, "extension", NULL, 0, NULL, NULL, NULL, NULL, NULL }; #define INITERROR return NULL PyMODINIT_FUNC PyInit_extension(void) #else #define INITERROR return void initextension(void) #endif { #if PY_MAJOR_VERSION >= 3 PyObject *module = PyModule_Create(&moduledef); #else PyObject *module = Py_InitModule("extension", NULL); #endif if (module == NULL) INITERROR; #if PY_MAJOR_VERSION >= 3 return module; #endif } ''' ), }, setup_kwargs=dict( ext_modules=[ Record('setuptools.Extension', name='extension', sources=['extension.c']) ], ), install_tree=flatten_tree({ 'foo-1.0-py{py_version}-{platform}.egg': [ 'extension{shlib_ext}', {'EGG-INFO': [ 'PKG-INFO', 'RECORD', 'WHEEL', 'top_level.txt', ]}, ] }), ), dict( id='header', file_defs={ 'header.h': DALS( ''' ''' ), }, setup_kwargs=dict( headers=['header.h'], ), install_tree=flatten_tree({ 'foo-1.0-py{py_version}.egg': [ 'header.h', {'EGG-INFO': [ 'PKG-INFO', 'RECORD', 'WHEEL', 'top_level.txt', ]}, ] }), ), dict( id='script', file_defs={ 'script.py': DALS( ''' #/usr/bin/python print('hello world!') ''' ), 'script.sh': DALS( ''' #/bin/sh echo 'hello world!' ''' ), }, setup_kwargs=dict( scripts=['script.py', 'script.sh'], ), install_tree=flatten_tree({ 'foo-1.0-py{py_version}.egg': { 'EGG-INFO': [ 'PKG-INFO', 'RECORD', 'WHEEL', 'top_level.txt', {'scripts': [ 'script.py', 'script.sh' ]} ] } }) ), dict( id='requires1', install_requires='foobar==2.0', install_tree=flatten_tree({ 'foo-1.0-py{py_version}.egg': { 'EGG-INFO': [ 'PKG-INFO', 'RECORD', 'WHEEL', 'requires.txt', 'top_level.txt', ] } }), requires_txt=DALS( ''' foobar==2.0 ''' ), ), dict( id='requires2', install_requires=''' bar foo<=2.0; %r in sys_platform ''' % sys.platform, requires_txt=DALS( ''' bar foo<=2.0 ''' ), ), dict( id='requires3', install_requires=''' bar; %r != sys_platform ''' % sys.platform, ), dict( id='requires4', install_requires=''' foo ''', extras_require={ 'extra': 'foobar>3', }, requires_txt=DALS( ''' foo [extra] foobar>3 ''' ), ), dict( id='requires5', extras_require={ 'extra': 'foobar; %r != sys_platform' % sys.platform, }, requires_txt=DALS( ''' [extra] ''' ),
dict( id='namespace_package', file_defs={ 'foo': { 'bar': { '__init__.py': '' }, }, }, setup_kwargs=dict( namespace_packages=['foo'], packages=['foo.bar'], ), install_tree=flatten_tree({ 'foo-1.0-py{py_version}.egg': [ 'foo-1.0-py{py_version}-nspkg.pth', {'EGG-INFO': [ 'PKG-INFO', 'RECORD', 'WHEEL', 'namespace_packages.txt', 'top_level.txt', ]}, {'foo': [ '__init__.py', {'bar': ['__init__.py']}, ]}, ] }), ), dict( id='empty_namespace_package', file_defs={ 'foobar': { '__init__.py': "__import__('pkg_resources').declare_namespace(__name__)", }, }, setup_kwargs=dict( namespace_packages=['foobar'], packages=['foobar'], ), install_tree=flatten_tree({ 'foo-1.0-py{py_version}.egg': [ 'foo-1.0-py{py_version}-nspkg.pth', {'EGG-INFO': [ 'PKG-INFO', 'RECORD', 'WHEEL', 'namespace_packages.txt', 'top_level.txt', ]}, {'foobar': [ '__init__.py', ]}, ] }), ), dict( id='data_in_package', file_defs={ 'foo': { '__init__.py': '', 'data_dir': { 'data.txt': DALS( ''' Some data... ''' ), } } }, setup_kwargs=dict( packages=['foo'], data_files=[('foo/data_dir', ['foo/data_dir/data.txt'])], ), install_tree=flatten_tree({ 'foo-1.0-py{py_version}.egg': { 'EGG-INFO': [ 'PKG-INFO', 'RECORD', 'WHEEL', 'top_level.txt', ], 'foo': [ '__init__.py', {'data_dir': [ 'data.txt', ]} ] } }), ), ) @pytest.mark.parametrize( 'params', WHEEL_INSTALL_TESTS, ids=list(params['id'] for params in WHEEL_INSTALL_TESTS), ) def test_wheel_install(params): project_name = params.get('name', 'foo') version = params.get('version', '1.0') install_requires = params.get('install_requires', []) extras_require = params.get('extras_require', {}) requires_txt = params.get('requires_txt', None) install_tree = params.get('install_tree') file_defs = params.get('file_defs', {}) setup_kwargs = params.get('setup_kwargs', {}) with build_wheel( name=project_name, version=version, install_requires=install_requires, extras_require=extras_require, extra_file_defs=file_defs, **setup_kwargs ) as filename, tempdir() as install_dir: _check_wheel_install(filename, install_dir, install_tree, project_name, version, requires_txt) def test_wheel_install_pep_503(): project_name = 'Foo_Bar' # PEP 503 canonicalized name is "foo-bar" version = '1.0' with build_wheel( name=project_name, version=version, ) as filename, tempdir() as install_dir: new_filename = filename.replace(project_name, canonicalize_name(project_name)) shutil.move(filename, new_filename) _check_wheel_install(new_filename, install_dir, None, canonicalize_name(project_name), version, None) def test_wheel_no_dist_dir(): project_name = 'nodistinfo' version = '1.0' wheel_name = '{0}-{1}-py2.py3-none-any.whl'.format(project_name, version) with tempdir() as source_dir: wheel_path = os.path.join(source_dir, wheel_name) # create an empty zip file zipfile.ZipFile(wheel_path, 'w').close() with tempdir() as install_dir: with pytest.raises(ValueError): _check_wheel_install(wheel_path, install_dir, None, project_name, version, None) def test_wheel_is_compatible(monkeypatch): def sys_tags(): for t in parse_tag('cp36-cp36m-manylinux1_x86_64'): yield t monkeypatch.setattr('setuptools.wheel.sys_tags', sys_tags) assert Wheel( 'onnxruntime-0.1.2-cp36-cp36m-manylinux1_x86_64.whl').is_compatible()
),
index.js
import React from "react"; import Layout from "../../components/Layout"; import Transition from "../../Transition"; import ServicesHeader from "../../components/services/ServicesHeader"; import { Container } from "reactstrap"; import WatsonAssistant from "../../components/services/WatsonAssistant"; const MainService = () => { return ( <Layout pageTitle="Watson Assistant Services | Incede"> <Transition> <section className="industry-solution"> <ServicesHeader header={"Watson Assistant Services"} title={""} /> <Container fluid className="p-0"> <WatsonAssistant /> </Container> </section> </Transition> </Layout> ); };
export default MainService;
Fieldset.tsx
import React, { FC } from 'react' import { Base, useTheme } from '@redesign-system/ui-core' import { FieldsetInterface } from './fieldset.types' import { fieldsetTheme } from './fieldset.theme' import { Legend } from '../Legend' export const Fieldset: FC<FieldsetInterface> = function Fieldset({ as = 'fieldset', children,
css = '', legend, ...propsRest }) { const { theme } = useTheme() const classNames = `Fieldset ${className}` const cssList = [fieldsetTheme, css] return ( <Base as={as} className={classNames} theme={theme} css={cssList} {...propsRest} > { (legend = typeof legend === 'string' ? ( <Legend>{legend}</Legend> ) : ( <Legend {...legend} /> )) } {children} </Base> ) } Fieldset.displayName = 'Fieldset'
className = '',
add.js
import { GraphQLNonNull } from 'graphql'
import VehiculeModel from '../../../models/vehicule' export default { type: vehiculeType, args: { data: { name: 'data', type: new GraphQLNonNull(vehiculeInputType) } }, resolve(root, params) { const vehicule = new VehiculeModel(params.data) return vehicule.save() .catch(() => { throw new Error('Error adding vehicule') }) } }
import { vehiculeType, vehiculeInputType } from '../../types/vehicule'
macro.rs
// run-rustfix // See https://github.com/rust-lang/rust/issues/87955 #![deny(rust_2021_incompatible_closure_captures)] //~^ NOTE: the lint level is defined here fn
() { let a = ("hey".to_string(), "123".to_string()); let _ = || dbg!(a.0); //~^ ERROR: drop order //~| NOTE: will only capture `a.0` //~| NOTE: for more information, see //~| HELP: add a dummy let to cause `a` to be fully captured } //~^ NOTE: dropped here
main
publish.ts
/* * Copyright 2020 Spotify AB * * 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 { Logger } from 'winston'; import { Config } from '@backstage/config'; import { PluginEndpointDiscovery } from '@backstage/backend-common'; import { PublisherType, PublisherBase } from './types'; import { LocalPublish } from './local'; import { GoogleGCSPublish } from './googleStorage';
import { AwsS3Publish } from './awsS3'; import { AzureBlobStoragePublish } from './azureBlobStorage'; import { OpenStackSwiftPublish } from './openStackSwift'; type factoryOptions = { logger: Logger; discovery: PluginEndpointDiscovery; }; /** * Factory class to create a TechDocs publisher based on defined publisher type in app config. * Uses `techdocs.publisher.type`. */ export class Publisher { static async fromConfig( config: Config, { logger, discovery }: factoryOptions, ): Promise<PublisherBase> { const publisherType = (config.getOptionalString( 'techdocs.publisher.type', ) ?? 'local') as PublisherType; switch (publisherType) { case 'googleGcs': logger.info('Creating Google Storage Bucket publisher for TechDocs'); return await GoogleGCSPublish.fromConfig(config, logger); case 'awsS3': logger.info('Creating AWS S3 Bucket publisher for TechDocs'); return AwsS3Publish.fromConfig(config, logger); case 'azureBlobStorage': logger.info( 'Creating Azure Blob Storage Container publisher for TechDocs', ); return AzureBlobStoragePublish.fromConfig(config, logger); case 'openStackSwift': logger.info( 'Creating OpenStack Swift Container publisher for TechDocs', ); return OpenStackSwiftPublish.fromConfig(config, logger); case 'local': logger.info('Creating Local publisher for TechDocs'); return new LocalPublish(config, logger, discovery); default: logger.info('Creating Local publisher for TechDocs'); return new LocalPublish(config, logger, discovery); } } }
index.js
import React from 'react' import { Text, View, Linking, Image, TouchableOpacity } from 'react-native' import { useNavigation, useRoute } from '@react-navigation/native' import { Feather} from '@expo/vector-icons' import * as MailComposer from 'expo-mail-composer' import logoimg from '../../assets/logo.png' import styles from './styles' export default function Details() { const navigation = useNavigation() const route = useRoute() const incident = route.params.incident const message = `Olá ${incident.name}, estou entrando em contato, pois gostaria de ajudar no caso "${incident.title}", com o valor de ${Intl.NumberFormat('pt-BR', { style: 'currency', currency: 'BRL' }).format(incident.value)}` function n
) { navigation.goBack() } function sendMail(){ MailComposer.composeAsync({ subject:` Herói do caso: ${incident.title}`, recipients: [incident.email], body: message, }) } function sendWhatsapp(){ Linking.openURL(`whatsapp://send?phone=+55${incident.whatsapp}&text=${message}`) } return ( <View style={styles.container}> <View style={styles.header}> <Image source={logoimg} /> <TouchableOpacity style={styles.detailsButton} onPress={navigateBack} > <Feather name="arrow-left" size={16} color="#e02041"></Feather> </TouchableOpacity> </View> <View style={styles.incident}> <Text style={[styles.incidentProperty, {marginTop:0 }]}>ONG:</Text> <Text style={styles.incidentValue}>{incident.name} de {incident.city}/{incident.uf}</Text> <Text style={styles.incidentProperty}>Caso:</Text> <Text style={styles.incidentValue}>{incident.title}</Text> <Text style={styles.incidentProperty}>Valor:</Text> <Text style={styles.incidentValue}>{Intl.NumberFormat('pt-BR', { style: 'currency', currency: 'BRL' }).format(incident.value)}</Text> </View> <View style={styles.contactBox}> <Text style={styles.heroTitle}>Salve o dia</Text> <Text style={styles.heroTitle}>Seja o herói desse caso.</Text> <Text style={styles.heroDescription}>Entre em contato:</Text> <View style={styles.actions}> <TouchableOpacity style={styles.action} onPress={sendWhatsapp} > <Text style={styles.actionText}>WhatsApp</Text></TouchableOpacity> <TouchableOpacity style={styles.action} onPress={sendMail} > <Text style={styles.actionText}>Email</Text></TouchableOpacity> </View> </View> </View> ) }
avigateBack(
scheme.go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. package api4 import ( "net/http" "github.com/mattermost/mattermost-server/v5/audit" "github.com/mattermost/mattermost-server/v5/model" ) func (api *API) InitScheme() { api.BaseRoutes.Schemes.Handle("", api.ApiSessionRequired(getSchemes)).Methods("GET") api.BaseRoutes.Schemes.Handle("", api.ApiSessionRequired(createScheme)).Methods("POST") api.BaseRoutes.Schemes.Handle("/{scheme_id:[A-Za-z0-9]+}", api.ApiSessionRequired(deleteScheme)).Methods("DELETE") api.BaseRoutes.Schemes.Handle("/{scheme_id:[A-Za-z0-9]+}", api.ApiSessionRequiredTrustRequester(getScheme)).Methods("GET") api.BaseRoutes.Schemes.Handle("/{scheme_id:[A-Za-z0-9]+}/patch", api.ApiSessionRequired(patchScheme)).Methods("PUT") api.BaseRoutes.Schemes.Handle("/{scheme_id:[A-Za-z0-9]+}/teams", api.ApiSessionRequiredTrustRequester(getTeamsForScheme)).Methods("GET") api.BaseRoutes.Schemes.Handle("/{scheme_id:[A-Za-z0-9]+}/channels", api.ApiSessionRequiredTrustRequester(getChannelsForScheme)).Methods("GET") } func createScheme(c *Context, w http.ResponseWriter, r *http.Request) { scheme := model.SchemeFromJson(r.Body) if scheme == nil { c.SetInvalidParam("scheme") return } auditRec := c.MakeAuditRecord("createScheme", audit.Fail) defer c.LogAuditRec(auditRec) auditRec.AddMeta("scheme", scheme) if c.App.Srv().License() == nil || !*c.App.Srv().License().Features.CustomPermissionsSchemes { c.Err = model.NewAppError("Api4.CreateScheme", "api.scheme.create_scheme.license.error", nil, "", http.StatusNotImplemented) return } if !c.App.SessionHasPermissionTo(*c.App.Session(), model.PERMISSION_SYSCONSOLE_WRITE_USERMANAGEMENT_PERMISSIONS) { c.SetPermissionError(model.PERMISSION_SYSCONSOLE_WRITE_USERMANAGEMENT_PERMISSIONS) return } scheme, err := c.App.CreateScheme(scheme) if err != nil { c.Err = err return } auditRec.Success() auditRec.AddMeta("scheme", scheme) // overwrite meta w.WriteHeader(http.StatusCreated) w.Write([]byte(scheme.ToJson())) } func getScheme(c *Context, w http.ResponseWriter, r *http.Request) { c.RequireSchemeId() if c.Err != nil { return } if !c.App.SessionHasPermissionTo(*c.App.Session(), model.PERMISSION_SYSCONSOLE_READ_USERMANAGEMENT_PERMISSIONS) { c.SetPermissionError(model.PERMISSION_SYSCONSOLE_READ_USERMANAGEMENT_PERMISSIONS) return } scheme, err := c.App.GetScheme(c.Params.SchemeId) if err != nil { c.Err = err return } w.Write([]byte(scheme.ToJson())) } func getSchemes(c *Context, w http.ResponseWriter, r *http.Request) { if !c.App.SessionHasPermissionTo(*c.App.Session(), model.PERMISSION_SYSCONSOLE_READ_USERMANAGEMENT_PERMISSIONS) { c.SetPermissionError(model.PERMISSION_SYSCONSOLE_READ_USERMANAGEMENT_PERMISSIONS) return } scope := c.Params.Scope if scope != "" && scope != model.SCHEME_SCOPE_TEAM && scope != model.SCHEME_SCOPE_CHANNEL { c.SetInvalidParam("scope") return } schemes, err := c.App.GetSchemesPage(c.Params.Scope, c.Params.Page, c.Params.PerPage) if err != nil { c.Err = err return } w.Write([]byte(model.SchemesToJson(schemes))) } func
(c *Context, w http.ResponseWriter, r *http.Request) { c.RequireSchemeId() if c.Err != nil { return } if !c.App.SessionHasPermissionTo(*c.App.Session(), model.PERMISSION_SYSCONSOLE_READ_USERMANAGEMENT_TEAMS) { c.SetPermissionError(model.PERMISSION_SYSCONSOLE_READ_USERMANAGEMENT_TEAMS) return } scheme, err := c.App.GetScheme(c.Params.SchemeId) if err != nil { c.Err = err return } if scheme.Scope != model.SCHEME_SCOPE_TEAM { c.Err = model.NewAppError("Api4.GetTeamsForScheme", "api.scheme.get_teams_for_scheme.scope.error", nil, "", http.StatusBadRequest) return } teams, err := c.App.GetTeamsForSchemePage(scheme, c.Params.Page, c.Params.PerPage) if err != nil { c.Err = err return } w.Write([]byte(model.TeamListToJson(teams))) } func getChannelsForScheme(c *Context, w http.ResponseWriter, r *http.Request) { c.RequireSchemeId() if c.Err != nil { return } if !c.App.SessionHasPermissionTo(*c.App.Session(), model.PERMISSION_SYSCONSOLE_READ_USERMANAGEMENT_CHANNELS) { c.SetPermissionError(model.PERMISSION_SYSCONSOLE_READ_USERMANAGEMENT_CHANNELS) return } scheme, err := c.App.GetScheme(c.Params.SchemeId) if err != nil { c.Err = err return } if scheme.Scope != model.SCHEME_SCOPE_CHANNEL { c.Err = model.NewAppError("Api4.GetChannelsForScheme", "api.scheme.get_channels_for_scheme.scope.error", nil, "", http.StatusBadRequest) return } channels, err := c.App.GetChannelsForSchemePage(scheme, c.Params.Page, c.Params.PerPage) if err != nil { c.Err = err return } w.Write([]byte(channels.ToJson())) } func patchScheme(c *Context, w http.ResponseWriter, r *http.Request) { c.RequireSchemeId() if c.Err != nil { return } patch := model.SchemePatchFromJson(r.Body) if patch == nil { c.SetInvalidParam("scheme") return } auditRec := c.MakeAuditRecord("patchScheme", audit.Fail) defer c.LogAuditRec(auditRec) if c.App.Srv().License() == nil || !*c.App.Srv().License().Features.CustomPermissionsSchemes { c.Err = model.NewAppError("Api4.PatchScheme", "api.scheme.patch_scheme.license.error", nil, "", http.StatusNotImplemented) return } scheme, err := c.App.GetScheme(c.Params.SchemeId) if err != nil { c.Err = err return } auditRec.AddMeta("scheme", scheme) if !c.App.SessionHasPermissionTo(*c.App.Session(), model.PERMISSION_SYSCONSOLE_WRITE_USERMANAGEMENT_PERMISSIONS) { c.SetPermissionError(model.PERMISSION_SYSCONSOLE_WRITE_USERMANAGEMENT_PERMISSIONS) return } scheme, err = c.App.PatchScheme(scheme, patch) if err != nil { c.Err = err return } auditRec.AddMeta("patch", scheme) auditRec.Success() c.LogAudit("") w.Write([]byte(scheme.ToJson())) } func deleteScheme(c *Context, w http.ResponseWriter, r *http.Request) { c.RequireSchemeId() if c.Err != nil { return } auditRec := c.MakeAuditRecord("deleteScheme", audit.Fail) defer c.LogAuditRec(auditRec) if c.App.Srv().License() == nil || !*c.App.Srv().License().Features.CustomPermissionsSchemes { c.Err = model.NewAppError("Api4.DeleteScheme", "api.scheme.delete_scheme.license.error", nil, "", http.StatusNotImplemented) return } if !c.App.SessionHasPermissionTo(*c.App.Session(), model.PERMISSION_SYSCONSOLE_WRITE_USERMANAGEMENT_PERMISSIONS) { c.SetPermissionError(model.PERMISSION_SYSCONSOLE_WRITE_USERMANAGEMENT_PERMISSIONS) return } scheme, err := c.App.DeleteScheme(c.Params.SchemeId) if err != nil { c.Err = err return } auditRec.Success() auditRec.AddMeta("scheme", scheme) ReturnStatusOK(w) }
getTeamsForScheme
hncconfig_test.go
package validators import ( "context" "fmt" "strings" "testing" . "github.com/onsi/gomega" k8sadm "k8s.io/api/admission/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/runtime/schema" "sigs.k8s.io/controller-runtime/pkg/log/zap" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" "sigs.k8s.io/hierarchical-namespaces/internal/forest" "sigs.k8s.io/hierarchical-namespaces/internal/foresttest" api "sigs.k8s.io/hierarchical-namespaces/api/v1alpha2" ) var ( // This mapping is used to implement a fake grTranslator with GVKFor() method. gr2gvk = map[schema.GroupResource]schema.GroupVersionKind{ {Group: api.RBACGroup, Resource: api.RoleResource}: {Group: api.RBACGroup, Version: "v1", Kind: api.RoleKind}, {Group: api.RBACGroup, Resource: api.RoleBindingResource}: {Group: api.RBACGroup, Version: "v1", Kind: api.RoleBindingKind}, {Group: "", Resource: "secrets"}: {Group: "", Version: "v1", Kind: "Secret"}, {Group: "", Resource: "resourcequotas"}: {Group: "", Version: "v1", Kind: "ResourceQuota"}, } ) func TestDeletingConfigObject(t *testing.T) { t.Run("Delete config object", func(t *testing.T) { g := NewWithT(t) req := admission.Request{AdmissionRequest: k8sadm.AdmissionRequest{ Operation: k8sadm.Delete, Name: api.HNCConfigSingleton, }} config := &HNCConfig{Log: zap.New()} got := config.Handle(context.Background(), req) logResult(t, got.AdmissionResponse.Result) g.Expect(got.AdmissionResponse.Allowed).Should(BeFalse()) }) } func TestDeletingOtherObject(t *testing.T) { t.Run("Delete config object", func(t *testing.T) { g := NewWithT(t) req := admission.Request{AdmissionRequest: k8sadm.AdmissionRequest{ Operation: k8sadm.Delete, Name: "other", }} config := &HNCConfig{Log: zap.New()} got := config.Handle(context.Background(), req) logResult(t, got.AdmissionResponse.Result) g.Expect(got.AdmissionResponse.Allowed).Should(BeTrue()) }) } func TestRBACTypes(t *testing.T) { f := forest.NewForest() config := &HNCConfig{ translator: fakeGRTranslator{}, Forest: f, Log: zap.New(), } tests := []struct { name string configs []api.ResourceSpec allow bool }{ { name: "No redundant enforced resources configured", configs: []api.ResourceSpec{}, allow: true, }, { name: "Configure redundant enforced resources", configs: []api.ResourceSpec{ {Group: api.RBACGroup, Resource: api.RoleResource, Mode: api.Propagate}, {Group: api.RBACGroup, Resource: api.RoleBindingResource, Mode: api.Propagate}, }, allow: false, }, } for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { g := NewWithT(t) c := &api.HNCConfiguration{Spec: api.HNCConfigurationSpec{Resources: tc.configs}} c.Name = api.HNCConfigSingleton got := config.handle(context.Background(), c) logResult(t, got.AdmissionResponse.Result) g.Expect(got.AdmissionResponse.Allowed).Should(Equal(tc.allow)) }) } } func TestNonRBACTypes(t *testing.T) { f := fakeGRTranslator{"crontabs"} tests := []struct { name string configs []api.ResourceSpec validator fakeGRTranslator allow bool }{ { name: "Correct Non-RBAC resources config", configs: []api.ResourceSpec{ {Group: "", Resource: "secrets", Mode: "Ignore"}, {Group: "", Resource: "resourcequotas"}, }, validator: f, allow: true, }, { name: "Resource does not exist", configs: []api.ResourceSpec{ // "crontabs" resource does not exist in "" {Group: "", Resource: "crontabs", Mode: "Ignore"}, }, validator: f, allow: false, }, { name: "Duplicate resources with different modes", configs: []api.ResourceSpec{ {Group: "", Resource: "secrets", Mode: "Ignore"}, {Group: "", Resource: "secrets", Mode: "Propagate"}, }, validator: f, allow: false, }, { name: "Duplicate resources with the same mode", configs: []api.ResourceSpec{ {Group: "", Resource: "secrets", Mode: "Ignore"}, {Group: "", Resource: "secrets", Mode: "Ignore"}, }, validator: f, allow: false, }} for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { g := NewWithT(t) c := &api.HNCConfiguration{Spec: api.HNCConfigurationSpec{Resources: tc.configs}} c.Name = api.HNCConfigSingleton config := &HNCConfig{ translator: tc.validator, Forest: forest.NewForest(), Log: zap.New(), } got := config.handle(context.Background(), c) logResult(t, got.AdmissionResponse.Result) g.Expect(got.AdmissionResponse.Allowed).Should(Equal(tc.allow)) }) } } func TestPropagateConflict(t *testing.T) { tests := []struct { name string forest string // inNamespace contains the namespaces we are creating the objects in inNamespace string // noPropagation contains the namespaces where the objects would have a noneSelector noPropogation string allow bool errContain string }{{ name: "Objects with the same name existing in namespaces that one is not an ancestor of the other would not cause overwriting conflict", forest: "-aa", inNamespace: "bc", allow: true, }, { name: "Objects with the same name existing in namespaces that one is an ancestor of the other would have overwriting conflict", forest: "-aa", inNamespace: "ab", allow: false, }, { name: "Should not cause a conflict if the object in the parent namespace has an exceptions selector that choose not to propagate to the conflicting child namespace", forest: "-aa", inNamespace: "ab", noPropogation: "a", allow: true, }, { name: "Should identify the real conflicting source when there are multiple conflicting sources but only one gets propagated", forest: "-ab", inNamespace: "abc", noPropogation: "a", allow: false, errContain: "Object \"my-creds\" in namespace \"b\" would overwrite the one in \"c\"", }} for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { g := NewWithT(t) configs := []api.ResourceSpec{ {Group: "", Resource: "secrets", Mode: "Propagate"}} c := &api.HNCConfiguration{Spec: api.HNCConfigurationSpec{Resources: configs}} c.Name = api.HNCConfigSingleton f := foresttest.Create(tc.forest) config := &HNCConfig{ translator: fakeGRTranslator{}, Forest: f, Log: zap.New(), } // Add source objects to the forest. for _, ns := range tc.inNamespace { inst := &unstructured.Unstructured{} inst.SetGroupVersionKind(schema.GroupVersionKind{Group: "", Version: "v1", Kind: "Secret"}) inst.SetName("my-creds") if strings.Contains(tc.noPropogation, string(ns)) { inst.SetAnnotations(map[string]string{api.AnnotationNoneSelector: "true"}) } f.Get(string(ns)).SetSourceObject(inst) } got := config.handle(context.Background(), c) logResult(t, got.AdmissionResponse.Result) g.Expect(got.AdmissionResponse.Allowed).Should(Equal(tc.allow)) if tc.errContain != ""
}) } } // fakeGRTranslator implements grTranslator. Any kind that are in the slice are // denied; anything else are translated. type fakeGRTranslator []string func (f fakeGRTranslator) GVKFor(gr schema.GroupResource) (schema.GroupVersionKind, error) { for _, r := range f { if r == gr.Resource { return schema.GroupVersionKind{}, fmt.Errorf("%s does not exist", gr) } } return gr2gvk[gr], nil }
{ g.Expect(strings.Contains(got.AdmissionResponse.Result.Message, tc.errContain)) }
main.rs
use std::collections::HashMap; #[cfg(feature = "mysql")] use std::sync::Arc; use glob::glob; use irc::client::reactor::IrcReactor; use frippy::plugins::factoid::Factoid; use frippy::plugins::help::Help; use frippy::plugins::keepnick::KeepNick; use frippy::plugins::quote::Quote; use frippy::plugins::remind::Remind; use frippy::plugins::sed::Sed; use frippy::plugins::tell::Tell; use frippy::plugins::unicode::Unicode; use frippy::plugins::url::UrlTitles; use failure::{bail, Error}; use frippy::Config; use log::{error, info}; #[cfg(feature = "mysql")] #[macro_use] extern crate diesel_migrations; #[cfg(feature = "mysql")] embed_migrations!(); fn main() { if let Err(e) = log4rs::init_file("log.yml", Default::default()) { use log4rs::Error; match e { Error::Log(e) => eprintln!("Log4rs error: {}", e), Error::Log4rs(e) => eprintln!("Failed to parse \"log.yml\" as log4rs config: {}", e), } return; } // Print any errors that caused frippy to shut down if let Err(e) = run() { let text = e .iter_causes() .fold(format!("{}", e), |acc, err| format!("{}: {}", acc, err)); error!("{}", text); } } fn run() -> Result<(), Error> { // Load all toml files in the configs directory let mut configs = Vec::new(); for toml in glob("configs/*.toml").unwrap() { match toml { Ok(path) => { info!("Loading {}", path.to_str().unwrap()); match Config::load(path) { Ok(v) => configs.push(v), Err(e) => error!("Incorrect config file {}", e), } } Err(e) => error!("Failed to read path {}", e), } } // Without configs the bot would just idle if configs.is_empty() { bail!("No config file was found"); } // Create an event loop to run the connections on. let mut reactor = IrcReactor::new()?; // Open a connection and add work for each config for config in configs { let mut prefix = None; let mut disabled_plugins = None; let mut mysql_url = None; if let Some(ref options) = config.options { if let Some(disabled) = options.get("disabled_plugins") { disabled_plugins = Some(disabled.split(',').map(|p| p.trim()).collect::<Vec<_>>()); } prefix = options.get("prefix"); mysql_url = options.get("mysql_url"); } let prefix = prefix.cloned().unwrap_or_else(|| String::from(".")); let mut bot = frippy::Bot::new(&prefix); bot.add_plugin(Help::new()); bot.add_plugin(UrlTitles::new(1024)); bot.add_plugin(Sed::new(60)); bot.add_plugin(Unicode::new()); bot.add_plugin(KeepNick::new()); #[cfg(feature = "mysql")] { if let Some(url) = mysql_url { use diesel::MysqlConnection; use r2d2_diesel::ConnectionManager; let manager = ConnectionManager::<MysqlConnection>::new(url.clone()); match r2d2::Pool::builder().build(manager) { Ok(pool) => match embedded_migrations::run(&*pool.get()?) { Ok(_) => { let pool = Arc::new(pool); bot.add_plugin(Factoid::new(pool.clone())); bot.add_plugin(Quote::new(pool.clone())); bot.add_plugin(Tell::new(pool.clone())); bot.add_plugin(Remind::new(pool.clone())); info!("Connected to MySQL server") } Err(e) => { bot.add_plugin(Factoid::new(HashMap::new())); bot.add_plugin(Quote::new(HashMap::new())); bot.add_plugin(Tell::new(HashMap::new())); bot.add_plugin(Remind::new(HashMap::new())); error!("Failed to run migrations: {}", e); } }, Err(e) => error!("Failed to connect to database: {}", e), } } else { bot.add_plugin(Factoid::new(HashMap::new())); bot.add_plugin(Quote::new(HashMap::new())); bot.add_plugin(Tell::new(HashMap::new())); bot.add_plugin(Remind::new(HashMap::new()));
} } #[cfg(not(feature = "mysql"))] { if mysql_url.is_some() { error!("frippy was not built with the mysql feature") } bot.add_plugin(Factoid::new(HashMap::new())); bot.add_plugin(Quote::new(HashMap::new())); bot.add_plugin(Tell::new(HashMap::new())); bot.add_plugin(Remind::new(HashMap::new())); } if let Some(disabled_plugins) = disabled_plugins { for name in disabled_plugins { if bot.remove_plugin(name).is_none() { error!("\"{}\" was not found - could not disable", name); } } } bot.connect(&mut reactor, &config)?; } // Run the bots until they throw an error - an error could be loss of connection reactor.run()?; Ok(()) }
test_appeaser.py
"""Test for the appeaser strategy.""" import axelrod from .test_player import TestPlayer C, D = axelrod.Actions.C, axelrod.Actions.D class
(TestPlayer): name = "Appeaser" player = axelrod.Appeaser expected_classifier = { 'memory_depth': float('inf'), # Depends on internal memory. 'stochastic': False, 'makes_use_of': set(), 'inspects_source': False, 'manipulates_source': False, 'manipulates_state': False } def test_strategy(self): """Starts by cooperating.""" self.first_play_test(C) def test_effect_of_strategy(self): P1 = axelrod.Appeaser() P2 = axelrod.Cooperator() self.assertEqual(P1.strategy(P2), C) self.responses_test([C], [C], [C, C, C]) self.responses_test([C, D, C, D], [C, C, D], [D]) self.responses_test([C, D, C, D, C], [C, C, D, D], [C]) self.responses_test([C, D, C, D, C, D], [C, C, D, D, D], [D])
TestAppeaser
test_powerdns.py
# (C) Datadog, Inc. 2010-2018 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import pytest from . import common, metrics pytestmark = [pytest.mark.integration, pytest.mark.usefixtures("dd_environment")] def
(aggregator, check): service_check_tags = common._config_sc_tags(common.CONFIG) # get version and test v3 first. version = common._get_pdns_version() if version == 3: check.check(common.CONFIG) # Assert metrics for metric in metrics.GAUGE_METRICS: aggregator.assert_metric(metrics.METRIC_FORMAT.format(metric), tags=[], count=1) for metric in metrics.RATE_METRICS: aggregator.assert_metric(metrics.METRIC_FORMAT.format(metric), tags=[], count=1) aggregator.assert_service_check('powerdns.recursor.can_connect', status=check.OK, tags=service_check_tags) aggregator.assert_all_metrics_covered() elif version == 4: check.check(common.CONFIG_V4) # Assert metrics for metric in metrics.GAUGE_METRICS + metrics.GAUGE_METRICS_V4: aggregator.assert_metric(metrics.METRIC_FORMAT.format(metric), tags=[], count=1) for metric in metrics.RATE_METRICS + metrics.RATE_METRICS_V4: aggregator.assert_metric(metrics.METRIC_FORMAT.format(metric), tags=[], count=1) aggregator.assert_service_check('powerdns.recursor.can_connect', status=check.OK, tags=service_check_tags) aggregator.assert_all_metrics_covered() else: aggregator.assert_service_check('powerdns.recursor.can_connect', status=check.CRITICAL, tags=service_check_tags) def test_tags(aggregator, check): version = common._get_pdns_version() tags = ['foo:bar'] if version == 3: config = common.CONFIG.copy() config['tags'] = ['foo:bar'] check.check(config) # Assert metrics v3 for metric in metrics.GAUGE_METRICS: aggregator.assert_metric(metrics.METRIC_FORMAT.format(metric), tags=tags, count=1) for metric in metrics.RATE_METRICS: aggregator.assert_metric(metrics.METRIC_FORMAT.format(metric), tags=tags, count=1) elif version == 4: config = common.CONFIG_V4.copy() config['tags'] = ['foo:bar'] check.check(config) # Assert metrics v3 for metric in metrics.GAUGE_METRICS + metrics.GAUGE_METRICS_V4: aggregator.assert_metric(metrics.METRIC_FORMAT.format(metric), tags=tags, count=1) for metric in metrics.RATE_METRICS + metrics.RATE_METRICS_V4: aggregator.assert_metric(metrics.METRIC_FORMAT.format(metric), tags=tags, count=1) service_check_tags = common._config_sc_tags(common.CONFIG) aggregator.assert_service_check('powerdns.recursor.can_connect', status=check.OK, tags=service_check_tags + tags) aggregator.assert_all_metrics_covered() def test_bad_api_key(aggregator, check): with pytest.raises(Exception): check.check(common.BAD_API_KEY_CONFIG) service_check_tags = common._config_sc_tags(common.BAD_API_KEY_CONFIG) aggregator.assert_service_check('powerdns.recursor.can_connect', status=check.CRITICAL, tags=service_check_tags) assert len(aggregator._metrics) == 0
test_check
transform.go
// Copyright 2020 Antrea 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. package common import ( "fmt" "net" "sort" "strconv" cpv1beta "antrea.io/antrea/pkg/apis/controlplane/v1beta2" ) type GroupMember struct { Pod *cpv1beta.PodReference `json:"pod,omitempty"` // IP maintains the IPAddresses associated with the Pod. IP string `json:"ip,omitempty"` // Ports maintain the named port mapping of this Pod. Ports []cpv1beta.NamedPort `json:"ports,omitempty"` } func GroupMemberPodTransform(member cpv1beta.GroupMember) GroupMember { var ipStr string for i, ip := range member.IPs { if i != 0 { ipStr += ", " } ipStr += net.IP(ip).String() } return GroupMember{Pod: member.Pod, IP: ipStr, Ports: member.Ports} } type TableOutput interface { GetTableHeader() []string GetTableRow(maxColumnLength int) []string SortRows() bool } func Int32ToString(val int32) string { return strconv.Itoa(int(val)) } func Int64ToString(val int64) string { return strconv.Itoa(int(val)) }
sort.Strings(list) for i, ele := range list { val := ele if i != 0 { val = "," + val } // If we can't show the information in one line, generate a summary. summary := fmt.Sprintf(" + %d more...", len(list)-i) if len(element)+len(val) > maxColumnLength { element += summary if len(element) > maxColumnLength { newEle := "" for i, ele := range list { val := ele if i != 0 { val = "," + val } if i != 0 && len(newEle)+len(val)+len(summary) > maxColumnLength { break } newEle += val } newEle += summary return newEle } break } element += val } return element }
func GenerateTableElementWithSummary(list []string, maxColumnLength int) string { element := ""
Solution.6597734.py
class Solution: def
(self, A): if not A: return 0 j = 0 for i in xrange(1, len(A)): if A[i] != A[j]: j += 1 A[j] = A[i] return j + 1
removeDuplicates
utils.py
# -*- coding: utf8 - *- """ Utility and helper methods for cihai. """ from __future__ import absolute_import, print_function, unicode_literals import sys from . import exc from ._compat import collections_abc, reraise def merge_dict(base, additional): """ Combine two dictionary-like objects. Notes ----- Code from https://github.com/pypa/warehouse Copyright 2013 Donald Stufft 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. """ if base is None: return additional if additional is None: return base if not ( isinstance(base, collections_abc.Mapping) and isinstance(additional, collections_abc.Mapping) ): return additional merged = base for key, value in additional.items(): if isinstance(value, collections_abc.Mapping): merged[key] = merge_dict(merged.get(key), value) else: merged[key] = value return merged def supports_wide(): """Return affirmative if python interpreter supports wide characters. Returns ------- bool : True if python supports wide character sets """ return sys.maxunicode > 0xFFFF def
(import_name, silent=False): # NOQA: C901 """ Imports an object based on a string. This is useful if you want to use import paths as endpoints or something similar. An import path can be specified either in dotted notation (``xml.sax.saxutils.escape``) or with a colon as object delimiter (``xml.sax.saxutils:escape``). If `silent` is True the return value will be `None` if the import fails. Parameters ---------- import_name : string the dotted name for the object to import. silent : bool if set to `True` import errors are ignored and `None` is returned instead. Returns ------- imported object Raises ------ cihai.exc.ImportStringError (ImportError, cihai.exc.CihaiException) Notes ----- This is from werkzeug.utils c769200 on May 23, LICENSE BSD. https://github.com/pallets/werkzeug Changes: - Exception raised is cihai.exc.ImportStringError - Add NOQA C901 to avoid complexity lint - Format with black """ # force the import name to automatically convert to strings # __import__ is not able to handle unicode strings in the fromlist # if the module is a package import_name = str(import_name).replace(':', '.') try: try: __import__(import_name) except ImportError: if '.' not in import_name: raise else: return sys.modules[import_name] module_name, obj_name = import_name.rsplit('.', 1) try: module = __import__(module_name, None, None, [obj_name]) except ImportError: # support importing modules not yet set up by the parent module # (or package for that matter) module = import_string(module_name) try: return getattr(module, obj_name) except AttributeError as e: raise ImportError(e) except ImportError as e: if not silent: reraise( exc.ImportStringError, exc.ImportStringError(import_name, e), sys.exc_info()[2], )
import_string
error.rs
use std::env; use std::io; use thiserror::Error; #[derive(Debug, Error)] pub enum Error { #[error("unexpected status from GCP: {0}")] Status(#[from] tonic::Status), #[error("transport error: {0}")] Transport(#[from] tonic::transport::Error), #[error("IO error: {0}")] IO(#[from] io::Error), #[error("JSON error: {0}")] Json(#[from] json::Error), #[error("environment error: {0}")] Env(#[from] env::VarError), #[cfg(feature = "storage")] #[error("HTTP error: {0}")] Reqwest(#[from] reqwest::Error), #[error("conversion error: {0}")] Convert(#[from] ConvertError), #[error("authentication error: {0}")] Auth(#[from] AuthError), } #[derive(Debug, Error, PartialEq)] pub enum ConvertError { #[error("expected property `{0}` was missing")] MissingProperty(String), #[error("expected property type `{expected}`, got `{got}`")] UnexpectedPropertyType { expected: String, got: String }, } #[derive(Debug, Error)] pub enum
{ #[error("JWT error: {0}")] Jwt(#[from] jwt::errors::Error), #[error("JSON error: {0}")] Json(#[from] json::Error), #[error("Hyper error: {0}")] Http(#[from] http::Error), #[error("Hyper error: {0}")] Hyper(#[from] hyper::Error), }
AuthError
forms.py
# Copyright The IETF Trust 2011-2020, All Rights Reserved # -*- coding: utf-8 -*- import io import datetime, os import operator from typing import Union # pyflakes:ignore from email.utils import parseaddr from form_utils.forms import BetterModelForm from django import forms from django.conf import settings from django.core.exceptions import ObjectDoesNotExist, ValidationError from django.db.models.query import QuerySet from django.forms.utils import ErrorList from django.db.models import Q #from django.forms.widgets import RadioFieldRenderer from django.core.validators import validate_email import debug # pyflakes:ignore from ietf.ietfauth.utils import has_role from ietf.name.models import DocRelationshipName from ietf.liaisons.utils import get_person_for_user,is_authorized_individual from ietf.liaisons.widgets import ButtonWidget,ShowAttachmentsWidget from ietf.liaisons.models import (LiaisonStatement, LiaisonStatementEvent,LiaisonStatementAttachment,LiaisonStatementPurposeName) from ietf.liaisons.fields import SearchableLiaisonStatementsField from ietf.group.models import Group from ietf.person.models import Email from ietf.person.fields import SearchableEmailField from ietf.doc.models import Document, DocAlias from ietf.utils.fields import DatepickerDateField from functools import reduce ''' NOTES: Authorized individuals are people (in our Person table) who are authorized to send messages on behalf of some other group - they have a formal role in the other group, whereas the liasion manager has a formal role with the IETF (or more correctly, with the IAB). ''' # ------------------------------------------------- # Helper Functions # ------------------------------------------------- def liaison_manager_sdos(person): return Group.objects.filter(type="sdo", state="active", role__person=person, role__name="liaiman").distinct() def flatten_choices(choices): '''Returns a flat choice list given one with option groups defined''' flat = [] for optgroup,options in choices: flat.extend(options) return flat def get_internal_choices(user): '''Returns the set of internal IETF groups the user has permissions for, as a list of choices suitable for use in a select widget. If user == None, all active internal groups are included.''' choices = [] groups = get_groups_for_person(user.person if user else None) main = [ (g.pk, 'The {}'.format(g.acronym.upper())) for g in groups.filter(acronym__in=('ietf','iesg','iab')) ] areas = [ (g.pk, '{} - {}'.format(g.acronym,g.name)) for g in groups.filter(type='area') ] wgs = [ (g.pk, '{} - {}'.format(g.acronym,g.name)) for g in groups.filter(type='wg') ] choices.append(('Main IETF Entities', main)) choices.append(('IETF Areas', areas)) choices.append(('IETF Working Groups', wgs )) return choices def get_groups_for_person(person): '''Returns queryset of internal Groups the person has interesting roles in. This is a refactor of IETFHierarchyManager.get_entities_for_person(). If Person is None or Secretariat or Liaison Manager all internal IETF groups are returned. ''' if person == None or has_role(person.user, "Secretariat") or has_role(person.user, "Liaison Manager"): # collect all internal IETF groups queries = [Q(acronym__in=('ietf','iesg','iab')), Q(type='area',state='active'), Q(type='wg',state='active')] else: # Interesting roles, as Group queries queries = [Q(role__person=person,role__name='chair',acronym='ietf'), Q(role__person=person,role__name__in=('chair','execdir'),acronym='iab'), Q(role__person=person,role__name='ad',type='area',state='active'), Q(role__person=person,role__name__in=('chair','secretary'),type='wg',state='active'), Q(parent__role__person=person,parent__role__name='ad',type='wg',state='active')] return Group.objects.filter(reduce(operator.or_,queries)).order_by('acronym').distinct() def liaison_form_factory(request, type=None, **kwargs): """Returns appropriate Liaison entry form""" user = request.user if kwargs.get('instance',None): return EditLiaisonForm(user, **kwargs) elif type == 'incoming': return IncomingLiaisonForm(user, **kwargs) elif type == 'outgoing': return OutgoingLiaisonForm(user, **kwargs) return None def validate_emails(value): '''Custom validator for emails''' value = value.strip() # strip whitespace if '\r\n' in value: # cc_contacts has newlines value = value.replace('\r\n',',') value = value.rstrip(',') # strip trailing comma emails = value.split(',') for email in emails: name, addr = parseaddr(email) try: validate_email(addr) except ValidationError: raise forms.ValidationError('Invalid email address: %s' % addr) try: addr.encode('ascii') except UnicodeEncodeError as e: raise forms.ValidationError('Invalid email address: %s (check character %d)' % (addr,e.start)) # ------------------------------------------------- # Form Classes # ------------------------------------------------- class AddCommentForm(forms.Form): comment = forms.CharField(required=True, widget=forms.Textarea, strip=False) private = forms.BooleanField(label="Private comment", required=False,help_text="If this box is checked the comment will not appear in the statement's public history view.") # class RadioRenderer(RadioFieldRenderer): # def render(self): # output = [] # for widget in self: # output.append(format_html(force_text(widget))) # return mark_safe('\n'.join(output)) class SearchLiaisonForm(forms.Form): '''Expects initial keyword argument queryset which then gets filtered based on form data''' text = forms.CharField(required=False) # scope = forms.ChoiceField(choices=(("all", "All text fields"), ("title", "Title field")), required=False, initial='title') source = forms.CharField(required=False) destination = forms.CharField(required=False) start_date = DatepickerDateField(date_format="yyyy-mm-dd", picker_settings={"autoclose": "1" }, label='Start date', required=False) end_date = DatepickerDateField(date_format="yyyy-mm-dd", picker_settings={"autoclose": "1" }, label='End date', required=False) def __init__(self, *args, **kwargs): self.queryset = kwargs.pop('queryset') super(SearchLiaisonForm, self).__init__(*args, **kwargs) def get_results(self): results = self.queryset if self.is_bound: query = self.cleaned_data.get('text') if query: q = (Q(title__icontains=query) | Q(from_contact__address__icontains=query) | Q(to_contacts__icontains=query) | Q(other_identifiers__icontains=query) | Q(body__icontains=query) | Q(attachments__title__icontains=query,liaisonstatementattachment__removed=False) | Q(technical_contacts__icontains=query) | Q(action_holder_contacts__icontains=query) | Q(cc_contacts=query) | Q(response_contacts__icontains=query)) results = results.filter(q) source = self.cleaned_data.get('source') if source: source_list = source.split(',') if len(source_list) > 1: results = results.filter(Q(from_groups__acronym__in=source_list)) else: results = results.filter(Q(from_groups__name__icontains=source) | Q(from_groups__acronym__iexact=source)) destination = self.cleaned_data.get('destination') if destination:
start_date = self.cleaned_data.get('start_date') end_date = self.cleaned_data.get('end_date') events = None if start_date: events = LiaisonStatementEvent.objects.filter(type='posted', time__gte=start_date) if end_date: events = events.filter(time__lte=end_date) elif end_date: events = LiaisonStatementEvent.objects.filter(type='posted', time__lte=end_date) if events: results = results.filter(liaisonstatementevent__in=events) results = results.distinct().order_by('title') return results class CustomModelMultipleChoiceField(forms.ModelMultipleChoiceField): '''If value is a QuerySet, return it as is (for use in widget.render)''' def prepare_value(self, value): if isinstance(value, QuerySet): return value if (hasattr(value, '__iter__') and not isinstance(value, str) and not hasattr(value, '_meta')): return [super(CustomModelMultipleChoiceField, self).prepare_value(v) for v in value] return super(CustomModelMultipleChoiceField, self).prepare_value(value) class LiaisonModelForm(BetterModelForm): '''Specify fields which require a custom widget or that are not part of the model. NOTE: from_groups and to_groups are marked as not required because select2 has a problem with validating ''' from_groups = forms.ModelMultipleChoiceField(queryset=Group.objects.all(),label='Groups',required=False) from_contact = forms.EmailField() # type: Union[forms.EmailField, SearchableEmailField] to_contacts = forms.CharField(label="Contacts", widget=forms.Textarea(attrs={'rows':'3', }), strip=False) to_groups = forms.ModelMultipleChoiceField(queryset=Group.objects,label='Groups',required=False) deadline = DatepickerDateField(date_format="yyyy-mm-dd", picker_settings={"autoclose": "1" }, label='Deadline', required=True) related_to = SearchableLiaisonStatementsField(label='Related Liaison Statement', required=False) submitted_date = DatepickerDateField(date_format="yyyy-mm-dd", picker_settings={"autoclose": "1" }, label='Submission date', required=True, initial=datetime.date.today()) attachments = CustomModelMultipleChoiceField(queryset=Document.objects,label='Attachments', widget=ShowAttachmentsWidget, required=False) attach_title = forms.CharField(label='Title', required=False) attach_file = forms.FileField(label='File', required=False) attach_button = forms.CharField(label='', widget=ButtonWidget(label='Attach', show_on='id_attachments', require=['id_attach_title', 'id_attach_file'], required_label='title and file'), required=False) class Meta: model = LiaisonStatement exclude = ('attachments','state','from_name','to_name') fieldsets = [('From', {'fields': ['from_groups','from_contact', 'response_contacts'], 'legend': ''}), ('To', {'fields': ['to_groups','to_contacts'], 'legend': ''}), ('Other email addresses', {'fields': ['technical_contacts','action_holder_contacts','cc_contacts'], 'legend': ''}), ('Purpose', {'fields':['purpose', 'deadline'], 'legend': ''}), ('Reference', {'fields': ['other_identifiers','related_to'], 'legend': ''}), ('Liaison Statement', {'fields': ['title', 'submitted_date', 'body', 'attachments'], 'legend': ''}), ('Add attachment', {'fields': ['attach_title', 'attach_file', 'attach_button'], 'legend': ''})] def __init__(self, user, *args, **kwargs): super(LiaisonModelForm, self).__init__(*args, **kwargs) self.user = user self.edit = False self.person = get_person_for_user(user) self.is_new = not self.instance.pk self.fields["from_groups"].widget.attrs["placeholder"] = "Type in name to search for group" self.fields["to_groups"].widget.attrs["placeholder"] = "Type in name to search for group" self.fields["to_contacts"].label = 'Contacts' self.fields["other_identifiers"].widget.attrs["rows"] = 2 # add email validators for field in ['from_contact','to_contacts','technical_contacts','action_holder_contacts','cc_contacts']: if field in self.fields: self.fields[field].validators.append(validate_emails) self.set_from_fields() self.set_to_fields() def clean_from_groups(self): from_groups = self.cleaned_data.get('from_groups') if not from_groups: raise forms.ValidationError('You must specify a From Group') return from_groups def clean_to_groups(self): to_groups = self.cleaned_data.get('to_groups') if not to_groups: raise forms.ValidationError('You must specify a To Group') return to_groups def clean_from_contact(self): contact = self.cleaned_data.get('from_contact') from_groups = self.cleaned_data.get('from_groups') try: email = Email.objects.get(address=contact) if not email.origin: email.origin = "liaison: %s" % (','.join([ g.acronym for g in from_groups.all() ])) email.save() except ObjectDoesNotExist: raise forms.ValidationError('Email address does not exist') return email # Note to future person: This is the wrong place to fix the new lines # in cc_contacts and to_contacts. Those belong in the save function. # Or at least somewhere other than here. def clean_cc_contacts(self): '''Return a comma separated list of addresses''' cc_contacts = self.cleaned_data.get('cc_contacts') cc_contacts = cc_contacts.replace('\r\n',',') cc_contacts = cc_contacts.rstrip(',') return cc_contacts ## to_contacts can also have new lines def clean_to_contacts(self): '''Return a comma separated list of addresses''' to_contacts = self.cleaned_data.get('to_contacts') to_contacts = to_contacts.replace('\r\n',',') to_contacts = to_contacts.rstrip(',') return to_contacts def clean(self): if not self.cleaned_data.get('body', None) and not self.has_attachments(): self._errors['body'] = ErrorList(['You must provide a body or attachment files']) self._errors['attachments'] = ErrorList(['You must provide a body or attachment files']) # if purpose=response there must be a related statement purpose = LiaisonStatementPurposeName.objects.get(slug='response') if self.cleaned_data.get('purpose') == purpose and not self.cleaned_data.get('related_to'): self._errors['related_to'] = ErrorList(['You must provide a related statement when purpose is In Response']) return self.cleaned_data def full_clean(self): self.set_required_fields() super(LiaisonModelForm, self).full_clean() self.reset_required_fields() def has_attachments(self): for key in list(self.files.keys()): if key.startswith('attach_file_') and key.replace('file', 'title') in list(self.data.keys()): return True return False def is_approved(self): assert NotImplemented def save(self, *args, **kwargs): super(LiaisonModelForm, self).save(*args,**kwargs) # set state for new statements if self.is_new: self.instance.change_state(state_id='pending',person=self.person) if self.is_approved(): self.instance.change_state(state_id='posted',person=self.person) else: # create modified event LiaisonStatementEvent.objects.create( type_id='modified', by=self.person, statement=self.instance, desc='Statement Modified' ) self.save_related_liaisons() self.save_attachments() self.save_tags() return self.instance def save_attachments(self): '''Saves new attachments. Files come in with keys like "attach_file_N" where N is index of attachments displayed in the form. The attachment title is in the corresponding request.POST[attach_title_N] ''' written = self.instance.attachments.all().count() for key in list(self.files.keys()): title_key = key.replace('file', 'title') attachment_title = self.data.get(title_key) if not key.startswith('attach_file_') or not title_key in list(self.data.keys()): continue attached_file = self.files.get(key) extension=attached_file.name.rsplit('.', 1) if len(extension) > 1: extension = '.' + extension[1] else: extension = '' written += 1 name = self.instance.name() + ("-attachment-%s" % written) attach, created = Document.objects.get_or_create( name = name, defaults=dict( title = attachment_title, type_id = "liai-att", uploaded_filename = name + extension, ) ) if created: DocAlias.objects.create(name=attach.name).docs.add(attach) LiaisonStatementAttachment.objects.create(statement=self.instance,document=attach) attach_file = io.open(os.path.join(settings.LIAISON_ATTACH_PATH, attach.name + extension), 'wb') attach_file.write(attached_file.read()) attach_file.close() if not self.is_new: # create modified event LiaisonStatementEvent.objects.create( type_id='modified', by=self.person, statement=self.instance, desc='Added attachment: {}'.format(attachment_title) ) def save_related_liaisons(self): rel = DocRelationshipName.objects.get(slug='refold') new_related = self.cleaned_data.get('related_to', []) # add new ones for stmt in new_related: self.instance.source_of_set.get_or_create(target=stmt,relationship=rel) # delete removed ones for related in self.instance.source_of_set.all(): if related.target not in new_related: related.delete() def save_tags(self): '''Create tags as needed''' if self.instance.deadline and not self.instance.tags.filter(slug='taken'): self.instance.tags.add('required') def set_from_fields(self): assert NotImplemented def set_required_fields(self): purpose = self.data.get('purpose', None) if purpose in ['action', 'comment']: self.fields['deadline'].required = True else: self.fields['deadline'].required = False def reset_required_fields(self): self.fields['deadline'].required = True def set_to_fields(self): assert NotImplemented class IncomingLiaisonForm(LiaisonModelForm): def clean(self): if 'send' in list(self.data.keys()) and self.get_post_only(): raise forms.ValidationError('As an IETF Liaison Manager you can not send incoming liaison statements, you only can post them') return super(IncomingLiaisonForm, self).clean() def is_approved(self): '''Incoming Liaison Statements do not required approval''' return True def get_post_only(self): from_groups = self.cleaned_data.get('from_groups') if has_role(self.user, "Secretariat") or is_authorized_individual(self.user,from_groups): return False return True def set_from_fields(self): '''Set from_groups and from_contact options and initial value based on user accessing the form.''' if has_role(self.user, "Secretariat"): queryset = Group.objects.filter(type="sdo", state="active").order_by('name') else: queryset = Group.objects.filter(type="sdo", state="active", role__person=self.person, role__name__in=("liaiman", "auth")).distinct().order_by('name') self.fields['from_contact'].initial = self.person.role_set.filter(group=queryset[0]).first().email.address self.fields['from_contact'].widget.attrs['readonly'] = True self.fields['from_groups'].queryset = queryset self.fields['from_groups'].widget.submitter = str(self.person) # if there's only one possibility make it the default if len(queryset) == 1: self.fields['from_groups'].initial = queryset def set_to_fields(self): '''Set to_groups and to_contacts options and initial value based on user accessing the form. For incoming Liaisons, to_groups choices is the full set. ''' self.fields['to_groups'].choices = get_internal_choices(None) class OutgoingLiaisonForm(LiaisonModelForm): from_contact = SearchableEmailField(only_users=True) approved = forms.BooleanField(label="Obtained prior approval", required=False) class Meta: model = LiaisonStatement exclude = ('attachments','state','from_name','to_name','action_holder_contacts') # add approved field, no action_holder_contacts fieldsets = [('From', {'fields': ['from_groups','from_contact','response_contacts','approved'], 'legend': ''}), ('To', {'fields': ['to_groups','to_contacts'], 'legend': ''}), ('Other email addresses', {'fields': ['technical_contacts','cc_contacts'], 'legend': ''}), ('Purpose', {'fields':['purpose', 'deadline'], 'legend': ''}), ('Reference', {'fields': ['other_identifiers','related_to'], 'legend': ''}), ('Liaison Statement', {'fields': ['title', 'submitted_date', 'body', 'attachments'], 'legend': ''}), ('Add attachment', {'fields': ['attach_title', 'attach_file', 'attach_button'], 'legend': ''})] def is_approved(self): return self.cleaned_data['approved'] def set_from_fields(self): '''Set from_groups and from_contact options and initial value based on user accessing the form''' choices = get_internal_choices(self.user) self.fields['from_groups'].choices = choices # set initial value if only one entry flat_choices = flatten_choices(choices) if len(flat_choices) == 1: self.fields['from_groups'].initial = [flat_choices[0][0]] if has_role(self.user, "Secretariat"): return if self.person.role_set.filter(name='liaiman',group__state='active'): email = self.person.role_set.filter(name='liaiman',group__state='active').first().email.address elif self.person.role_set.filter(name__in=('ad','chair'),group__state='active'): email = self.person.role_set.filter(name__in=('ad','chair'),group__state='active').first().email.address else: email = self.person.email_address() self.fields['from_contact'].initial = email self.fields['from_contact'].widget.attrs['readonly'] = True def set_to_fields(self): '''Set to_groups and to_contacts options and initial value based on user accessing the form''' # set options. if the user is a Liaison Manager and nothing more, reduce set to his SDOs if has_role(self.user, "Liaison Manager") and not self.person.role_set.filter(name__in=('ad','chair'),group__state='active'): queryset = Group.objects.filter(type="sdo", state="active", role__person=self.person, role__name="liaiman").distinct().order_by('name') else: # get all outgoing entities queryset = Group.objects.filter(type="sdo", state="active").order_by('name') self.fields['to_groups'].queryset = queryset # set initial if has_role(self.user, "Liaison Manager"): self.fields['to_groups'].initial = [queryset.first()] class EditLiaisonForm(LiaisonModelForm): def __init__(self, *args, **kwargs): super(EditLiaisonForm, self).__init__(*args, **kwargs) self.edit = True self.fields['attachments'].initial = self.instance.liaisonstatementattachment_set.exclude(removed=True) related = [ str(x.pk) for x in self.instance.source_of_set.all() ] self.fields['related_to'].initial = ','.join(related) self.fields['submitted_date'].initial = self.instance.submitted def save(self, *args, **kwargs): super(EditLiaisonForm, self).save(*args,**kwargs) if self.has_changed() and 'submitted_date' in self.changed_data: event = self.instance.liaisonstatementevent_set.filter(type='submitted').first() event.time = self.cleaned_data.get('submitted_date') event.save() return self.instance def set_from_fields(self): '''Set from_groups and from_contact options and initial value based on user accessing the form.''' if self.instance.is_outgoing(): self.fields['from_groups'].choices = get_internal_choices(self.user) else: if has_role(self.user, "Secretariat"): queryset = Group.objects.filter(type="sdo").order_by('name') else: queryset = Group.objects.filter(type="sdo", role__person=self.person, role__name__in=("liaiman", "auth")).distinct().order_by('name') self.fields['from_contact'].widget.attrs['readonly'] = True self.fields['from_groups'].queryset = queryset def set_to_fields(self): '''Set to_groups and to_contacts options and initial value based on user accessing the form. For incoming Liaisons, to_groups choices is the full set. ''' if self.instance.is_outgoing(): # if the user is a Liaison Manager and nothing more, reduce to set to his SDOs if has_role(self.user, "Liaison Manager") and not self.person.role_set.filter(name__in=('ad','chair'),group__state='active'): queryset = Group.objects.filter(type="sdo", role__person=self.person, role__name="liaiman").distinct().order_by('name') else: # get all outgoing entities queryset = Group.objects.filter(type="sdo").order_by('name') self.fields['to_groups'].queryset = queryset else: self.fields['to_groups'].choices = get_internal_choices(None) class EditAttachmentForm(forms.Form): title = forms.CharField(max_length=255)
destination_list = destination.split(',') if len(destination_list) > 1: results = results.filter(Q(to_groups__acronym__in=destination_list)) else: results = results.filter(Q(to_groups__name__icontains=destination) | Q(to_groups__acronym__iexact=destination))