UNPKG

97.6 kBJavaScriptView Raw
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/chips",[],e):"object"==typeof exports?exports.chips=e():(t.mdc=t.mdc||{},t.mdc.chips=e())}(this,function(){return n={},o.m=i=[function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var n=(Object.defineProperty(o,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),o.prototype.init=function(){},o.prototype.destroy=function(){},o);function o(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=n,e.default=n},function(t,e,i){"use strict";var o=this&&this.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,o,r=i.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=r.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return s},r=this&&this.__spreadArray||function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var n=i(0),s=(a.attachTo=function(t){return new a(t,new n.MDCFoundation({}))},a.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation.destroy()},a.prototype.listen=function(t,e,i){this.root.addEventListener(t,e,i)},a.prototype.unlisten=function(t,e,i){this.root.removeEventListener(t,e,i)},a.prototype.emit=function(t,e,i){var n;void 0===i&&(i=!1),"function"==typeof CustomEvent?n=new CustomEvent(t,{bubbles:i,detail:e}):(n=document.createEvent("CustomEvent")).initCustomEvent(t,i,!1,e),this.root.dispatchEvent(n)},a);function a(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];this.root=t,this.initialize.apply(this,r([],o(i))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=s,e.default=s},function(t,e,i){"use strict";function n(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var i=t;i;){if(n(i,e))return i;i=i.parentElement}return null},e.matches=n,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var i=e.cloneNode(!0);i.style.setProperty("position","absolute"),i.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(i);var n=i.scrollWidth;return document.documentElement.removeChild(i),n}},function(t,e,i){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedEventCoords=e.supportsCssVariables=void 0,e.supportsCssVariables=function(t,e){void 0===e&&(e=!1);var i,n=t.CSS;if("boolean"==typeof s&&!e)return s;if(!(n&&"function"==typeof n.supports))return!1;var o=n.supports("--css-vars","yes"),r=n.supports("(--css-vars: yes)")&&n.supports("color","#00000000");return i=o||r,e||(s=i),i},e.getNormalizedEventCoords=function(t,e,i){if(!t)return{x:0,y:0};var n,o,r=e.x,s=e.y,a=r+i.left,c=s+i.top;if("touchstart"===t.type){var u=t;n=u.changedTouches[0].pageX-a,o=u.changedTouches[0].pageY-c}else{var p=t;n=p.pageX-a,o=p.pageY-c}return{x:n,y:o}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRippleFoundation=void 0;var a,c=i(0),u=i(7),p=i(3),l=["touchstart","pointerdown","mousedown","keydown"],d=["touchend","pointerup","mouseup","contextmenu"],h=[],f=(a=c.MDCFoundation,o(C,a),Object.defineProperty(C,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(C,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(C,"numbers",{get:function(){return u.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(C,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),C.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var i=C.cssClasses,n=i.ROOT,o=i.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(n),t.adapter.isUnbounded()&&(t.adapter.addClass(o),t.layoutInternal())})}},C.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(C.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(C.cssClasses.FG_DEACTIVATION));var e=C.cssClasses,i=e.ROOT,n=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(i),t.adapter.removeClass(n),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},C.prototype.activate=function(t){this.activateImpl(t)},C.prototype.deactivate=function(){this.deactivateImpl()},C.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},C.prototype.setUnbounded=function(t){var e=C.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},C.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(C.cssClasses.BG_FOCUSED)})},C.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(C.cssClasses.BG_FOCUSED)})},C.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},C.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},C.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var n=s(l),o=n.next();!o.done;o=n.next()){var r=o.value;this.adapter.registerInteractionHandler(r,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},C.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var n=s(d),o=n.next();!o.done;o=n.next()){var r=o.value;this.adapter.registerDocumentInteractionHandler(r,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},C.prototype.deregisterRootHandlers=function(){var e,t;try{for(var i=s(l),n=i.next();!n.done;n=i.next()){var o=n.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},C.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=s(d),n=i.next();!n.done;n=i.next()){var o=n.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},C.prototype.removeCssVars=function(){var e=this,i=C.strings;Object.keys(i).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(i[t],null)})},C.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var n=this.previousActivationEvent;n&&void 0!==t&&n.type!==t.type||(i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0<h.length&&h.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState():(void 0!==t&&(h.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){h=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},C.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},C.prototype.animateActivation=function(){var t=this,e=C.strings,i=e.VAR_FG_TRANSLATE_START,n=e.VAR_FG_TRANSLATE_END,o=C.cssClasses,r=o.FG_DEACTIVATION,s=o.FG_ACTIVATION,a=C.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",u="";if(!this.adapter.isUnbounded()){var p=this.getFgTranslationCoordinates(),l=p.startPoint,d=p.endPoint;c=l.x+"px, "+l.y+"px",u=d.x+"px, "+d.y+"px"}this.adapter.updateCssVariable(i,c),this.adapter.updateCssVariable(n,u),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(r),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},a)},C.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?p.getNormalizedEventCoords(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},C.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=C.cssClasses.FG_DEACTIVATION,i=this.activationState,n=i.hasDeactivationUXRun,o=i.isActivated;!n&&o||!this.activationAnimationHasEnded||(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(e)},u.numbers.FG_DEACTIVATION_MS))},C.prototype.rmBoundedActivationClasses=function(){var t=C.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},C.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},C.numbers.TAP_DELAY_MS)},C.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var i=r({},e);e.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(i)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()}))}},C.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},C.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var e=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?e:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+C.numbers.PADDING;var i=Math.floor(e*C.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&i%2!=0?this.initialSize=i-1:this.initialSize=i,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},C.prototype.updateLayoutCssVars=function(){var t=C.strings,e=t.VAR_FG_SIZE,i=t.VAR_LEFT,n=t.VAR_TOP,o=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,this.initialSize+"px"),this.adapter.updateCssVariable(o,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(i,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(n,this.unboundedCoords.top+"px"))},C);function C(t){var e=a.call(this,r(r({},C.defaultAdapter),t))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(t){e.activateImpl(t)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}e.MDCRippleFoundation=f,e.default=f},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyPassive=void 0,e.applyPassive=function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var i={get passive(){return!(e=!0)}},n=function(){};t.document.addEventListener("test",n,i),t.document.removeEventListener("test",n,i)}catch(t){e=!1}return e}(t)&&{passive:!0}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&r(e,t,i);return s(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRipple=void 0;var c,u=i(1),p=i(5),l=i(2),d=i(4),h=a(i(3)),f=(c=u.MDCComponent,o(C,c),C.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var i=new C(t);return void 0!==e.isUnbounded&&(i.unbounded=e.isUnbounded),i},C.createAdapter=function(i){return{addClass:function(t){return i.root.classList.add(t)},browserSupportsCssVars:function(){return h.supportsCssVariables(window)},computeBoundingRect:function(){return i.root.getBoundingClientRect()},containsEventTarget:function(t){return i.root.contains(t)},deregisterDocumentInteractionHandler:function(t,e){return document.documentElement.removeEventListener(t,e,p.applyPassive())},deregisterInteractionHandler:function(t,e){return i.root.removeEventListener(t,e,p.applyPassive())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return l.matches(i.root,":active")},isSurfaceDisabled:function(){return Boolean(i.disabled)},isUnbounded:function(){return Boolean(i.unbounded)},registerDocumentInteractionHandler:function(t,e){return document.documentElement.addEventListener(t,e,p.applyPassive())},registerInteractionHandler:function(t,e){return i.root.addEventListener(t,e,p.applyPassive())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(t){return i.root.classList.remove(t)},updateCssVariable:function(t,e){return i.root.style.setProperty(t,e)}}},Object.defineProperty(C.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(t){this.isUnbounded=Boolean(t),this.setUnbounded()},enumerable:!1,configurable:!0}),C.prototype.activate=function(){this.foundation.activate()},C.prototype.deactivate=function(){this.foundation.deactivate()},C.prototype.layout=function(){this.foundation.layout()},C.prototype.getDefaultFoundation=function(){return new d.MDCRippleFoundation(C.createAdapter(this))},C.prototype.initialSyncWithDOM=function(){var t=this.root;this.isUnbounded="mdcRippleIsUnbounded"in t.dataset},C.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},C);function C(){var t=null!==c&&c.apply(this,arguments)||this;return t.disabled=!1,t}e.MDCRipple=f},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},e.strings={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},e.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isNavigationEvent=n.normalizeKey=n.KEY=void 0,n.KEY={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"};var o=new Set;o.add(n.KEY.BACKSPACE),o.add(n.KEY.ENTER),o.add(n.KEY.SPACEBAR),o.add(n.KEY.PAGE_UP),o.add(n.KEY.PAGE_DOWN),o.add(n.KEY.END),o.add(n.KEY.HOME),o.add(n.KEY.ARROW_LEFT),o.add(n.KEY.ARROW_UP),o.add(n.KEY.ARROW_RIGHT),o.add(n.KEY.ARROW_DOWN),o.add(n.KEY.DELETE),o.add(n.KEY.ESCAPE),o.add(n.KEY.TAB);var i=8,r=13,s=32,a=33,c=34,u=35,p=36,l=37,d=38,h=39,f=40,C=46,y=27,A=9,v=new Map;v.set(i,n.KEY.BACKSPACE),v.set(r,n.KEY.ENTER),v.set(s,n.KEY.SPACEBAR),v.set(a,n.KEY.PAGE_UP),v.set(c,n.KEY.PAGE_DOWN),v.set(u,n.KEY.END),v.set(p,n.KEY.HOME),v.set(l,n.KEY.ARROW_LEFT),v.set(d,n.KEY.ARROW_UP),v.set(h,n.KEY.ARROW_RIGHT),v.set(f,n.KEY.ARROW_DOWN),v.set(C,n.KEY.DELETE),v.set(y,n.KEY.ESCAPE),v.set(A,n.KEY.TAB);var E=new Set;function g(t){var e=t.key;if(o.has(e))return e;var i=v.get(t.keyCode);return i||n.KEY.UNKNOWN}E.add(n.KEY.PAGE_UP),E.add(n.KEY.PAGE_DOWN),E.add(n.KEY.END),E.add(n.KEY.HOME),E.add(n.KEY.ARROW_LEFT),E.add(n.KEY.ARROW_UP),E.add(n.KEY.ARROW_RIGHT),E.add(n.KEY.ARROW_DOWN),n.normalizeKey=g,n.isNavigationEvent=function(t){return E.has(g(t))}},,,,,,,,,function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrame=void 0;var n=(o.prototype.request=function(e,i){var n=this;this.cancel(e);var t=requestAnimationFrame(function(t){n.rafIDs.delete(e),i(t)});this.rafIDs.set(e,t)},o.prototype.cancel=function(t){var e=this.rafIDs.get(t);e&&(cancelAnimationFrame(e),this.rafIDs.delete(t))},o.prototype.cancelAll=function(){var i=this;this.rafIDs.forEach(function(t,e){i.cancel(e)})},o.prototype.getQueue=function(){var i=[];return this.rafIDs.forEach(function(t,e){i.push(e)}),i},o);function o(){this.rafIDs=new Map}e.AnimationFrame=n},,function(t,e,i){"use strict";var n,o,r,s,a,c;Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipActionAttributes=e.MDCChipActionFocusBehavior=e.MDCChipActionEvents=e.MDCChipActionType=e.MDCChipActionInteractionTrigger=e.MDCChipActionCssClasses=void 0,(n=e.MDCChipActionCssClasses||(e.MDCChipActionCssClasses={})).PRIMARY_ACTION="mdc-evolution-chip__action--primary",n.TRAILING_ACTION="mdc-evolution-chip__action--trailing",n.CHIP_ROOT="mdc-evolution-chip",(o=e.MDCChipActionInteractionTrigger||(e.MDCChipActionInteractionTrigger={}))[o.UNSPECIFIED=0]="UNSPECIFIED",o[o.CLICK=1]="CLICK",o[o.BACKSPACE_KEY=2]="BACKSPACE_KEY",o[o.DELETE_KEY=3]="DELETE_KEY",o[o.SPACEBAR_KEY=4]="SPACEBAR_KEY",o[o.ENTER_KEY=5]="ENTER_KEY",(r=e.MDCChipActionType||(e.MDCChipActionType={}))[r.UNSPECIFIED=0]="UNSPECIFIED",r[r.PRIMARY=1]="PRIMARY",r[r.TRAILING=2]="TRAILING",(s=e.MDCChipActionEvents||(e.MDCChipActionEvents={})).INTERACTION="MDCChipAction:interaction",s.NAVIGATION="MDCChipAction:navigation",(a=e.MDCChipActionFocusBehavior||(e.MDCChipActionFocusBehavior={}))[a.FOCUSABLE=0]="FOCUSABLE",a[a.FOCUSABLE_AND_FOCUSED=1]="FOCUSABLE_AND_FOCUSED",a[a.NOT_FOCUSABLE=2]="NOT_FOCUSABLE",(c=e.MDCChipActionAttributes||(e.MDCChipActionAttributes={})).ARIA_DISABLED="aria-disabled",c.ARIA_HIDDEN="aria-hidden",c.ARIA_SELECTED="aria-selected",c.DATA_DELETABLE="data-mdc-deletable",c.DISABLED="disabled",c.ROLE="role",c.TAB_INDEX="tabindex"},,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";var n,o,r,s;Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipAnimation=e.MDCChipAttributes=e.MDCChipEvents=e.MDCChipCssClasses=void 0,(n=e.MDCChipCssClasses||(e.MDCChipCssClasses={})).SELECTING="mdc-evolution-chip--selecting",n.DESELECTING="mdc-evolution-chip--deselecting",n.SELECTING_WITH_PRIMARY_ICON="mdc-evolution-chip--selecting-with-primary-icon",n.DESELECTING_WITH_PRIMARY_ICON="mdc-evolution-chip--deselecting-with-primary-icon",n.DISABLED="mdc-evolution-chip--disabled",n.ENTER="mdc-evolution-chip--enter",n.EXIT="mdc-evolution-chip--exit",n.SELECTED="mdc-evolution-chip--selected",n.HIDDEN="mdc-evolution-chip--hidden",n.WITH_PRIMARY_ICON="mdc-evolution-chip--with-primary-icon",(o=e.MDCChipEvents||(e.MDCChipEvents={})).INTERACTION="MDCChip:interaction",o.NAVIGATION="MDCChip:navigation",o.ANIMATION="MDCChip:animation",(r=e.MDCChipAttributes||(e.MDCChipAttributes={})).DATA_REMOVED_ANNOUNCEMENT="data-mdc-removed-announcement",r.DATA_ADDED_ANNOUNCEMENT="data-mdc-added-announcement",(s=e.MDCChipAnimation||(e.MDCChipAnimation={})).ENTER="mdc-evolution-chip-enter",s.EXIT="mdc-evolution-chip-exit"},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.InteractionTrigger=void 0,(n=e.InteractionTrigger||(e.InteractionTrigger={}))[n.UNSPECIFIED=0]="UNSPECIFIED",n[n.CLICK=1]="CLICK",n[n.BACKSPACE_KEY=2]="BACKSPACE_KEY",n[n.DELETE_KEY=3]="DELETE_KEY",n[n.SPACEBAR_KEY=4]="SPACEBAR_KEY",n[n.ENTER_KEY=5]="ENTER_KEY",e.strings={ARIA_HIDDEN:"aria-hidden",INTERACTION_EVENT:"MDCChipTrailingAction:interaction",NAVIGATION_EVENT:"MDCChipTrailingAction:navigation",TAB_INDEX:"tabindex"}},function(t,e,i){"use strict";var n,o;Object.defineProperty(e,"__esModule",{value:!0}),e.jumpChipKeys=e.navigationKeys=e.cssClasses=e.strings=e.EventSource=e.Direction=void 0,(n=e.Direction||(e.Direction={})).LEFT="left",n.RIGHT="right",(o=e.EventSource||(e.EventSource={})).PRIMARY="primary",o.TRAILING="trailing",o.NONE="none",e.strings={ADDED_ANNOUNCEMENT_ATTRIBUTE:"data-mdc-chip-added-announcement",ARIA_CHECKED:"aria-checked",ARROW_DOWN_KEY:"ArrowDown",ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",ARROW_UP_KEY:"ArrowUp",BACKSPACE_KEY:"Backspace",CHECKMARK_SELECTOR:".mdc-chip__checkmark",DELETE_KEY:"Delete",END_KEY:"End",ENTER_KEY:"Enter",ENTRY_ANIMATION_NAME:"mdc-chip-entry",HOME_KEY:"Home",IE_ARROW_DOWN_KEY:"Down",IE_ARROW_LEFT_KEY:"Left",IE_ARROW_RIGHT_KEY:"Right",IE_ARROW_UP_KEY:"Up",IE_DELETE_KEY:"Del",INTERACTION_EVENT:"MDCChip:interaction",LEADING_ICON_SELECTOR:".mdc-chip__icon--leading",NAVIGATION_EVENT:"MDCChip:navigation",PRIMARY_ACTION_SELECTOR:".mdc-chip__primary-action",REMOVED_ANNOUNCEMENT_ATTRIBUTE:"data-mdc-chip-removed-announcement",REMOVAL_EVENT:"MDCChip:removal",SELECTION_EVENT:"MDCChip:selection",SPACEBAR_KEY:" ",TAB_INDEX:"tabindex",TRAILING_ACTION_SELECTOR:".mdc-chip-trailing-action",TRAILING_ICON_INTERACTION_EVENT:"MDCChip:trailingIconInteraction",TRAILING_ICON_SELECTOR:".mdc-chip__icon--trailing"},e.cssClasses={CHECKMARK:"mdc-chip__checkmark",CHIP_EXIT:"mdc-chip--exit",DELETABLE:"mdc-chip--deletable",EDITABLE:"mdc-chip--editable",EDITING:"mdc-chip--editing",HIDDEN_LEADING_ICON:"mdc-chip__icon--leading-hidden",LEADING_ICON:"mdc-chip__icon--leading",PRIMARY_ACTION:"mdc-chip__primary-action",PRIMARY_ACTION_FOCUSED:"mdc-chip--primary-action-focused",SELECTED:"mdc-chip--selected",TEXT:"mdc-chip__text",TRAILING_ACTION:"mdc-chip__trailing-action",TRAILING_ICON:"mdc-chip__icon--trailing"},e.navigationKeys=new Set,e.navigationKeys.add(e.strings.ARROW_LEFT_KEY),e.navigationKeys.add(e.strings.ARROW_RIGHT_KEY),e.navigationKeys.add(e.strings.ARROW_DOWN_KEY),e.navigationKeys.add(e.strings.ARROW_UP_KEY),e.navigationKeys.add(e.strings.END_KEY),e.navigationKeys.add(e.strings.HOME_KEY),e.navigationKeys.add(e.strings.IE_ARROW_LEFT_KEY),e.navigationKeys.add(e.strings.IE_ARROW_RIGHT_KEY),e.navigationKeys.add(e.strings.IE_ARROW_DOWN_KEY),e.navigationKeys.add(e.strings.IE_ARROW_UP_KEY),e.jumpChipKeys=new Set,e.jumpChipKeys.add(e.strings.ARROW_UP_KEY),e.jumpChipKeys.add(e.strings.ARROW_DOWN_KEY),e.jumpChipKeys.add(e.strings.HOME_KEY),e.jumpChipKeys.add(e.strings.END_KEY),e.jumpChipKeys.add(e.strings.IE_ARROW_UP_KEY),e.jumpChipKeys.add(e.strings.IE_ARROW_DOWN_KEY)},,,,,,,,,,function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipActionFoundation=void 0;var s=i(0),a=i(8),c=i(19),u=new Map;u.set(a.KEY.SPACEBAR,c.MDCChipActionInteractionTrigger.SPACEBAR_KEY),u.set(a.KEY.ENTER,c.MDCChipActionInteractionTrigger.ENTER_KEY),u.set(a.KEY.DELETE,c.MDCChipActionInteractionTrigger.DELETE_KEY),u.set(a.KEY.BACKSPACE,c.MDCChipActionInteractionTrigger.BACKSPACE_KEY);var p,l=(p=s.MDCFoundation,o(d,p),Object.defineProperty(d,"defaultAdapter",{get:function(){return{emitEvent:function(){},focus:function(){},getAttribute:function(){return null},getElementID:function(){return""},removeAttribute:function(){},setAttribute:function(){}}},enumerable:!1,configurable:!0}),d.prototype.handleClick=function(){this.isDisabled()||this.emitInteraction(c.MDCChipActionInteractionTrigger.CLICK)},d.prototype.handleKeydown=function(t){var e=a.normalizeKey(t);return this.shouldNotifyInteractionFromKey(e)?(t.preventDefault(),void this.emitInteraction(this.getTriggerFromKey(e))):a.isNavigationEvent(t)?(t.preventDefault(),void this.emitNavigation(e)):void 0},d.prototype.setDisabled=function(t){this.isSelectable()?this.adapter.setAttribute(c.MDCChipActionAttributes.ARIA_DISABLED,""+t):t?this.adapter.setAttribute(c.MDCChipActionAttributes.DISABLED,"true"):this.adapter.removeAttribute(c.MDCChipActionAttributes.DISABLED)},d.prototype.isDisabled=function(){return"true"===this.adapter.getAttribute(c.MDCChipActionAttributes.ARIA_DISABLED)||null!==this.adapter.getAttribute(c.MDCChipActionAttributes.DISABLED)},d.prototype.setFocus=function(t){if(this.isFocusable())return t===c.MDCChipActionFocusBehavior.FOCUSABLE_AND_FOCUSED?(this.adapter.setAttribute(c.MDCChipActionAttributes.TAB_INDEX,"0"),void this.adapter.focus()):void(t!==c.MDCChipActionFocusBehavior.FOCUSABLE?t!==c.MDCChipActionFocusBehavior.NOT_FOCUSABLE||this.adapter.setAttribute(c.MDCChipActionAttributes.TAB_INDEX,"-1"):this.adapter.setAttribute(c.MDCChipActionAttributes.TAB_INDEX,"0"))},d.prototype.isFocusable=function(){return!this.isDisabled()&&"true"!==this.adapter.getAttribute(c.MDCChipActionAttributes.ARIA_HIDDEN)},d.prototype.setSelected=function(t){this.isSelectable()&&this.adapter.setAttribute(c.MDCChipActionAttributes.ARIA_SELECTED,""+t)},d.prototype.isSelected=function(){return"true"===this.adapter.getAttribute(c.MDCChipActionAttributes.ARIA_SELECTED)},d.prototype.emitInteraction=function(t){this.adapter.emitEvent(c.MDCChipActionEvents.INTERACTION,{actionID:this.adapter.getElementID(),source:this.actionType(),trigger:t})},d.prototype.emitNavigation=function(t){this.adapter.emitEvent(c.MDCChipActionEvents.NAVIGATION,{source:this.actionType(),key:t})},d.prototype.shouldNotifyInteractionFromKey=function(t){var e=t===a.KEY.ENTER||t===a.KEY.SPACEBAR,i=t===a.KEY.BACKSPACE||t===a.KEY.DELETE;return e||!(!i||!this.shouldEmitInteractionOnRemoveKey())},d.prototype.getTriggerFromKey=function(t){var e=u.get(t);return e||c.MDCChipActionInteractionTrigger.UNSPECIFIED},d);function d(t){return p.call(this,r(r({},d.defaultAdapter),t))||this}e.MDCChipActionFoundation=l,e.default=l},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipSetEvents=e.MDCChipSetCssClasses=e.MDCChipSetAttributes=void 0,(e.MDCChipSetAttributes||(e.MDCChipSetAttributes={})).ARIA_MULTISELECTABLE="aria-multiselectable",(e.MDCChipSetCssClasses||(e.MDCChipSetCssClasses={})).CHIP="mdc-evolution-chip",(n=e.MDCChipSetEvents||(e.MDCChipSetEvents={})).INTERACTION="MDCChipSet:interaction",n.REMOVAL="MDCChipSet:removal",n.SELECTION="MDCChipSet:selection"},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipFoundation=void 0;var s,a,c=i(0),u=i(44),p={bottom:0,height:0,left:0,right:0,top:0,width:0};(a=s=s||{})[a.SHOULD_FOCUS=0]="SHOULD_FOCUS",a[a.SHOULD_NOT_FOCUS=1]="SHOULD_NOT_FOCUS";var l,d=(l=c.MDCFoundation,o(h,l),Object.defineProperty(h,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(h,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(h,"defaultAdapter",{get:function(){return{addClass:function(){},addClassToLeadingIcon:function(){},eventTargetHasClass:function(){return!1},focusPrimaryAction:function(){},focusTrailingAction:function(){},getAttribute:function(){return null},getCheckmarkBoundingClientRect:function(){return p},getComputedStyleValue:function(){return""},getRootBoundingClientRect:function(){return p},hasClass:function(){return!1},hasLeadingIcon:function(){return!1},isRTL:function(){return!1},isTrailingActionNavigable:function(){return!1},notifyEditFinish:function(){},notifyEditStart:function(){},notifyInteraction:function(){},notifyNavigation:function(){},notifyRemoval:function(){},notifySelection:function(){},notifyTrailingIconInteraction:function(){},removeClass:function(){},removeClassFromLeadingIcon:function(){},removeTrailingActionFocus:function(){},setPrimaryActionAttr:function(){},setStyleProperty:function(){}}},enumerable:!1,configurable:!0}),h.prototype.isSelected=function(){return this.adapter.hasClass(u.cssClasses.SELECTED)},h.prototype.isEditable=function(){return this.adapter.hasClass(u.cssClasses.EDITABLE)},h.prototype.isEditing=function(){return this.adapter.hasClass(u.cssClasses.EDITING)},h.prototype.setSelected=function(t){this.setSelectedImpl(t),this.notifySelection(t)},h.prototype.setSelectedFromChipSet=function(t,e){this.setSelectedImpl(t),e&&this.notifyIgnoredSelection(t)},h.prototype.getShouldRemoveOnTrailingIconClick=function(){return this.shouldRemoveOnTrailingIconClick},h.prototype.setShouldRemoveOnTrailingIconClick=function(t){this.shouldRemoveOnTrailingIconClick=t},h.prototype.setShouldFocusPrimaryActionOnClick=function(t){this.shouldFocusPrimaryActionOnClick=t},h.prototype.getDimensions=function(){function t(){return e.adapter.getRootBoundingClientRect()}var e=this;if(!this.adapter.hasLeadingIcon()){var i=e.adapter.getCheckmarkBoundingClientRect();if(i){var n=t();return{bottom:n.bottom,height:n.height,left:n.left,right:n.right,top:n.top,width:n.width+i.height}}}return t()},h.prototype.beginExit=function(){this.adapter.addClass(u.cssClasses.CHIP_EXIT)},h.prototype.handleClick=function(){this.adapter.notifyInteraction(),this.setPrimaryActionFocusable(this.getFocusBehavior())},h.prototype.handleDoubleClick=function(){this.isEditable()&&this.startEditing()},h.prototype.handleTransitionEnd=function(t){var e=this,i=this.adapter.eventTargetHasClass(t.target,u.cssClasses.CHIP_EXIT),n="width"===t.propertyName,o="opacity"===t.propertyName;if(i&&o){var r=this.adapter.getComputedStyleValue("width");requestAnimationFrame(function(){e.adapter.setStyleProperty("width",r),e.adapter.setStyleProperty("padding","0"),e.adapter.setStyleProperty("margin","0"),requestAnimationFrame(function(){e.adapter.setStyleProperty("width","0")})})}else{if(i&&n){this.removeFocus();var s=this.adapter.getAttribute(u.strings.REMOVED_ANNOUNCEMENT_ATTRIBUTE);this.adapter.notifyRemoval(s)}if(o){var a=this.adapter.eventTargetHasClass(t.target,u.cssClasses.LEADING_ICON)&&this.adapter.hasClass(u.cssClasses.SELECTED),c=this.adapter.eventTargetHasClass(t.target,u.cssClasses.CHECKMARK)&&!this.adapter.hasClass(u.cssClasses.SELECTED);a?this.adapter.addClassToLeadingIcon(u.cssClasses.HIDDEN_LEADING_ICON):c&&this.adapter.removeClassFromLeadingIcon(u.cssClasses.HIDDEN_LEADING_ICON)}}},h.prototype.handleFocusIn=function(t){this.eventFromPrimaryAction(t)&&this.adapter.addClass(u.cssClasses.PRIMARY_ACTION_FOCUSED)},h.prototype.handleFocusOut=function(t){this.eventFromPrimaryAction(t)&&(this.isEditing()&&this.finishEditing(),this.adapter.removeClass(u.cssClasses.PRIMARY_ACTION_FOCUSED))},h.prototype.handleTrailingActionInteraction=function(){this.adapter.notifyTrailingIconInteraction(),this.removeChip()},h.prototype.handleKeydown=function(t){if(!this.isEditing())return this.isEditable()&&this.shouldStartEditing(t)&&(t.preventDefault(),this.startEditing()),this.shouldNotifyInteraction(t)?(this.adapter.notifyInteraction(),void this.setPrimaryActionFocusable(this.getFocusBehavior())):this.isDeleteAction(t)?(t.preventDefault(),void this.removeChip()):void(u.navigationKeys.has(t.key)&&(t.preventDefault(),this.focusNextAction(t.key,u.EventSource.PRIMARY)));this.shouldFinishEditing(t)&&(t.preventDefault(),this.finishEditing())},h.prototype.handleTrailingActionNavigation=function(t){this.focusNextAction(t.detail.key,u.EventSource.TRAILING)},h.prototype.removeFocus=function(){this.adapter.setPrimaryActionAttr(u.strings.TAB_INDEX,"-1"),this.adapter.removeTrailingActionFocus()},h.prototype.focusPrimaryAction=function(){this.setPrimaryActionFocusable(s.SHOULD_FOCUS)},h.prototype.focusTrailingAction=function(){if(this.adapter.isTrailingActionNavigable())return this.adapter.setPrimaryActionAttr(u.strings.TAB_INDEX,"-1"),void this.adapter.focusTrailingAction();this.focusPrimaryAction()},h.prototype.setPrimaryActionFocusable=function(t){this.adapter.setPrimaryActionAttr(u.strings.TAB_INDEX,"0"),t===s.SHOULD_FOCUS&&this.adapter.focusPrimaryAction(),this.adapter.removeTrailingActionFocus()},h.prototype.getFocusBehavior=function(){return this.shouldFocusPrimaryActionOnClick?s.SHOULD_FOCUS:s.SHOULD_NOT_FOCUS},h.prototype.focusNextAction=function(t,e){var i=this.adapter.isTrailingActionNavigable(),n=this.getDirection(t);!u.jumpChipKeys.has(t)&&i?e!==u.EventSource.PRIMARY||n!==u.Direction.RIGHT?e!==u.EventSource.TRAILING||n!==u.Direction.LEFT?this.adapter.notifyNavigation(t,u.EventSource.NONE):this.focusPrimaryAction():this.focusTrailingAction():this.adapter.notifyNavigation(t,e)},h.prototype.getDirection=function(t){var e=this.adapter.isRTL(),i=t===u.strings.ARROW_LEFT_KEY||t===u.strings.IE_ARROW_LEFT_KEY,n=t===u.strings.ARROW_RIGHT_KEY||t===u.strings.IE_ARROW_RIGHT_KEY;return!e&&i||e&&n?u.Direction.LEFT:u.Direction.RIGHT},h.prototype.removeChip=function(){this.shouldRemoveOnTrailingIconClick&&this.beginExit()},h.prototype.shouldStartEditing=function(t){return this.eventFromPrimaryAction(t)&&t.key===u.strings.ENTER_KEY},h.prototype.shouldFinishEditing=function(t){return t.key===u.strings.ENTER_KEY},h.prototype.shouldNotifyInteraction=function(t){return t.key===u.strings.ENTER_KEY||t.key===u.strings.SPACEBAR_KEY},h.prototype.isDeleteAction=function(t){return this.adapter.hasClass(u.cssClasses.DELETABLE)&&(t.key===u.strings.BACKSPACE_KEY||t.key===u.strings.DELETE_KEY||t.key===u.strings.IE_DELETE_KEY)},h.prototype.setSelectedImpl=function(t){t?(this.adapter.addClass(u.cssClasses.SELECTED),this.adapter.setPrimaryActionAttr(u.strings.ARIA_CHECKED,"true")):(this.adapter.removeClass(u.cssClasses.SELECTED),this.adapter.setPrimaryActionAttr(u.strings.ARIA_CHECKED,"false"))},h.prototype.notifySelection=function(t){this.adapter.notifySelection(t,!1)},h.prototype.notifyIgnoredSelection=function(t){this.adapter.notifySelection(t,!0)},h.prototype.eventFromPrimaryAction=function(t){return this.adapter.eventTargetHasClass(t.target,u.cssClasses.PRIMARY_ACTION)},h.prototype.startEditing=function(){this.adapter.addClass(u.cssClasses.EDITING),this.adapter.notifyEditStart()},h.prototype.finishEditing=function(){this.adapter.removeClass(u.cssClasses.EDITING),this.adapter.notifyEditFinish()},h);function h(t){var e=l.call(this,r(r({},h.defaultAdapter),t))||this;return e.shouldRemoveOnTrailingIconClick=!0,e.shouldFocusPrimaryActionOnClick=!0,e}e.MDCChipFoundation=d,e.default=d},,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipAction=void 0;var s,a=i(1),c=i(2),u=i(6),p=i(4),l=i(149),d=i(19),h=i(78),f=i(79),C=(s=a.MDCComponent,o(y,s),y.attachTo=function(t){return new y(t)},Object.defineProperty(y.prototype,"ripple",{get:function(){return this.rippleInstance},enumerable:!1,configurable:!0}),y.prototype.initialize=function(t){var e=this;void 0===t&&(t=function(t,e){return new u.MDCRipple(t,e)});var i=r(r({},u.MDCRipple.createAdapter(this)),{computeBoundingRect:function(){return e.computeRippleClientRect()}});this.rippleInstance=t(this.root,new p.MDCRippleFoundation(i))},y.prototype.initialSyncWithDOM=function(){var e=this;this.handleClick=function(){e.foundation.handleClick()},this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.listen("click",this.handleClick),this.listen("keydown",this.handleKeydown)},y.prototype.destroy=function(){this.ripple.destroy(),this.unlisten("click",this.handleClick),this.unlisten("keydown",this.handleKeydown),s.prototype.destroy.call(this)},y.prototype.getDefaultFoundation=function(){var i=this,t={emitEvent:function(t,e){i.emit(t,e,!0)},focus:function(){i.rootHTML.focus()},getAttribute:function(t){return i.root.getAttribute(t)},getElementID:function(){return i.root.id},removeAttribute:function(t){i.root.removeAttribute(t)},setAttribute:function(t,e){i.root.setAttribute(t,e)}};return this.root.classList.contains(d.MDCChipActionCssClasses.TRAILING_ACTION)?new f.MDCChipTrailingActionFoundation(t):new h.MDCChipPrimaryActionFoundation(t)},y.prototype.setDisabled=function(t){this.foundation.setDisabled(t)},y.prototype.isDisabled=function(){return this.foundation.isDisabled()},y.prototype.setFocus=function(t){this.foundation.setFocus(t)},y.prototype.isFocusable=function(){return this.foundation.isFocusable()},y.prototype.setSelected=function(t){this.foundation.setSelected(t)},y.prototype.isSelected=function(){return this.foundation.isSelected()},y.prototype.isSelectable=function(){return this.foundation.isSelectable()},y.prototype.actionType=function(){return this.foundation.actionType()},y.prototype.computeRippleClientRect=function(){if(this.root.classList.contains(d.MDCChipActionCssClasses.PRIMARY_ACTION)){var t=c.closest(this.root,"."+d.MDCChipActionCssClasses.CHIP_ROOT);if(!t)return this.root.getBoundingClientRect();var e=window.getComputedStyle(t).getPropertyValue(l.GRAPHIC_SELECTED_WIDTH_STYLE_PROP);return l.computePrimaryActionRippleClientRect(t.getBoundingClientRect(),e)}return this.root.getBoundingClientRect()},y);function y(){var t=null!==s&&s.apply(this,arguments)||this;return t.rootHTML=t.root,t}e.MDCChipAction=C},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipPrimaryActionFoundation=void 0;var r,s=i(19),a=i(54),c=(r=a.MDCChipActionFoundation,o(u,r),u.prototype.isSelectable=function(){return"option"===this.adapter.getAttribute(s.MDCChipActionAttributes.ROLE)},u.prototype.actionType=function(){return s.MDCChipActionType.PRIMARY},u.prototype.shouldEmitInteractionOnRemoveKey=function(){return"true"===this.adapter.getAttribute(s.MDCChipActionAttributes.DATA_DELETABLE)},u);function u(){return null!==r&&r.apply(this,arguments)||this}e.MDCChipPrimaryActionFoundation=c,e.default=c},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipTrailingActionFoundation=void 0;var r,s=i(19),a=i(54),c=(r=a.MDCChipActionFoundation,o(u,r),u.prototype.isSelectable=function(){return!1},u.prototype.actionType=function(){return s.MDCChipActionType.TRAILING},u.prototype.shouldEmitInteractionOnRemoveKey=function(){return!0},u);function u(){return null!==r&&r.apply(this,arguments)||this}e.MDCChipTrailingActionFoundation=c,e.default=c},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,o,r=i.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=r.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChip=void 0;var r,s=i(1),u=i(77),p=i(19),l=i(81),d=(r=s.MDCComponent,o(h,r),h.attachTo=function(t){return new h(t)},h.prototype.initialize=function(t){void 0===t&&(t=function(t){return new u.MDCChipAction(t)}),this.actions=new Map;for(var e=this.root.querySelectorAll(".mdc-evolution-chip__action"),i=0;i<e.length;i++){var n=t(e[i]);this.actions.set(n.actionType(),n)}},h.prototype.initialSyncWithDOM=function(){var e=this;this.handleActionInteraction=function(t){e.foundation.handleActionInteraction(t)},this.handleActionNavigation=function(t){e.foundation.handleActionNavigation(t)},this.listen(p.MDCChipActionEvents.INTERACTION,this.handleActionInteraction),this.listen(p.MDCChipActionEvents.NAVIGATION,this.handleActionNavigation)},h.prototype.destroy=function(){this.unlisten(p.MDCChipActionEvents.INTERACTION,this.handleActionInteraction),this.unlisten(p.MDCChipActionEvents.NAVIGATION,this.handleActionNavigation),r.prototype.destroy.call(this)},h.prototype.getDefaultFoundation=function(){var s=this,t={addClass:function(t){s.root.classList.add(t)},emitEvent:function(t,e){s.emit(t,e,!0)},getActions:function(){var e,t,i=[];try{for(var n=a(s.actions),o=n.next();!o.done;o=n.next()){var r=c(o.value,1)[0];i.push(r)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return i},getAttribute:function(t){return s.root.getAttribute(t)},getElementID:function(){return s.rootHTML.id},getOffsetWidth:function(){return s.rootHTML.offsetWidth},hasClass:function(t){return s.root.classList.contains(t)},isActionSelectable:function(t){var e=s.actions.get(t);return!!e&&e.isSelectable()},isActionSelected:function(t){var e=s.actions.get(t);return!!e&&e.isSelected()},isActionFocusable:function(t){var e=s.actions.get(t);return!!e&&e.isFocusable()},isActionDisabled:function(t){var e=s.actions.get(t);return!!e&&e.isDisabled()},isRTL:function(){return"rtl"===window.getComputedStyle(s.root).getPropertyValue("direction")},removeClass:function(t){s.root.classList.remove(t)},setActionDisabled:function(t,e){var i=s.actions.get(t);i&&i.setDisabled(e)},setActionFocus:function(t,e){var i=s.actions.get(t);i&&i.setFocus(e)},setActionSelected:function(t,e){var i=s.actions.get(t);i&&i.setSelected(e)},setStyleProperty:function(t,e){s.rootHTML.style.setProperty(t,e)}};return new l.MDCChipFoundation(t)},h.prototype.remove=function(){var t=this.root.parentNode;null!==t&&t.removeChild(this.root)},h.prototype.getActions=function(){return this.foundation.getActions()},h.prototype.getElementID=function(){return this.foundation.getElementID()},h.prototype.isDisabled=function(){return this.foundation.isDisabled()},h.prototype.setDisabled=function(t){this.foundation.setDisabled(t)},h.prototype.isActionFocusable=function(t){return this.foundation.isActionFocusable(t)},h.prototype.isActionSelectable=function(t){return this.foundation.isActionSelectable(t)},h.prototype.isActionSelected=function(t){return this.foundation.isActionSelected(t)},h.prototype.setActionFocus=function(t,e){this.foundation.setActionFocus(t,e)},h.prototype.setActionSelected=function(t,e){this.foundation.setActionSelected(t,e)},h.prototype.startAnimation=function(t){this.foundation.startAnimation(t)},h);function h(){var t=null!==r&&r.apply(this,arguments)||this;return t.rootHTML=t.root,t}e.MDCChip=d},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipFoundation=void 0;var p,s,c,u,l=i(17),d=i(0),h=i(8),f=i(19),C=i(42);(s=p=p||{})[s.UNSPECIFIED=0]="UNSPECIFIED",s[s.LEFT=1]="LEFT",s[s.RIGHT=2]="RIGHT",(u=c=c||{}).SELECTION="selection",u.EXIT="exit";var y,A=(y=d.MDCFoundation,o(v,y),Object.defineProperty(v,"defaultAdapter",{get:function(){return{addClass:function(){},emitEvent:function(){},getActions:function(){return[]},getAttribute:function(){return null},getElementID:function(){return""},getOffsetWidth:function(){return 0},hasClass:function(){return!1},isActionDisabled:function(){return!1},isActionFocusable:function(){return!1},isActionSelectable:function(){return!1},isActionSelected:function(){return!1},isRTL:function(){return!1},removeClass:function(){},setActionDisabled:function(){},setActionFocus:function(){},setActionSelected:function(){},setStyleProperty:function(){}}},enumerable:!1,configurable:!0}),v.prototype.destroy=function(){this.animFrame.cancelAll()},v.prototype.getElementID=function(){return this.adapter.getElementID()},v.prototype.setDisabled=function(t){var e,i,n=this.getActions();try{for(var o=a(n),r=o.next();!r.done;r=o.next()){var s=r.value;this.adapter.setActionDisabled(s,t)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}t?this.adapter.addClass(C.MDCChipCssClasses.DISABLED):this.adapter.removeClass(C.MDCChipCssClasses.DISABLED)},v.prototype.isDisabled=function(){var e,t,i=this.getActions();try{for(var n=a(i),o=n.next();!o.done;o=n.next()){var r=o.value;if(this.adapter.isActionDisabled(r))return!0}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return!1},v.prototype.getActions=function(){return this.adapter.getActions()},v.prototype.isActionFocusable=function(t){return this.adapter.isActionFocusable(t)},v.prototype.isActionSelectable=function(t){return this.adapter.isActionSelectable(t)},v.prototype.isActionSelected=function(t){return this.adapter.isActionSelected(t)},v.prototype.setActionFocus=function(t,e){this.adapter.setActionFocus(t,e)},v.prototype.setActionSelected=function(t,e){this.adapter.setActionSelected(t,e),this.animateSelection(e)},v.prototype.startAnimation=function(t){t!==C.MDCChipAnimation.ENTER?t!==C.MDCChipAnimation.EXIT||this.adapter.addClass(C.MDCChipCssClasses.EXIT):this.adapter.addClass(C.MDCChipCssClasses.ENTER)},v.prototype.handleAnimationEnd=function(t){var e=this,i=t.animationName;if(i===C.MDCChipAnimation.ENTER)return this.adapter.removeClass(C.MDCChipCssClasses.ENTER),void this.adapter.emitEvent(C.MDCChipEvents.ANIMATION,{chipID:this.getElementID(),animation:C.MDCChipAnimation.ENTER,addedAnnouncement:this.getAddedAnnouncement(),isComplete:!0});if(i===C.MDCChipAnimation.EXIT){this.adapter.removeClass(C.MDCChipCssClasses.EXIT),this.adapter.addClass(C.MDCChipCssClasses.HIDDEN);var n=this.adapter.getOffsetWidth();this.adapter.setStyleProperty("width",n+"px"),this.animFrame.request(c.EXIT,function(){e.animFrame.request(c.EXIT,function(){e.adapter.setStyleProperty("width","0")})})}},v.prototype.handleTransitionEnd=function(){this.adapter.hasClass(C.MDCChipCssClasses.HIDDEN)&&this.adapter.emitEvent(C.MDCChipEvents.ANIMATION,{chipID:this.getElementID(),animation:C.MDCChipAnimation.EXIT,removedAnnouncement:this.getRemovedAnnouncement(),isComplete:!0})},v.prototype.handleActionInteraction=function(t){var e=t.detail,i=e.source,n=e.actionID,o=this.adapter.isActionSelectable(i),r=this.adapter.isActionSelected(i);this.adapter.emitEvent(C.MDCChipEvents.INTERACTION,{chipID:this.getElementID(),shouldRemove:this.shouldRemove(e),actionID:n,isSelectable:o,isSelected:r,source:i})},v.prototype.handleActionNavigation=function(t){var e=t.detail,i=e.source,n=e.key,o=this.adapter.isRTL(),r=this.adapter.isActionFocusable(f.MDCChipActionType.TRAILING),s=this.adapter.isActionFocusable(f.MDCChipActionType.PRIMARY),a=this.directionFromKey(n,o),c=i===f.MDCChipActionType.PRIMARY&&a===p.RIGHT&&r,u=i===f.MDCChipActionType.TRAILING&&a===p.LEFT&&s;c?this.navigateActions({from:i,to:f.MDCChipActionType.TRAILING}):u?this.navigateActions({from:i,to:f.MDCChipActionType.PRIMARY}):this.adapter.emitEvent(C.MDCChipEvents.NAVIGATION,{chipID:this.getElementID(),isRTL:o,source:i,key:n})},v.prototype.directionFromKey=function(t,e){var i=t===h.KEY.ARROW_LEFT,n=t===h.KEY.ARROW_RIGHT;return!e&&i||e&&n?p.LEFT:!e&&n||e&&i?p.RIGHT:p.UNSPECIFIED},v.prototype.navigateActions=function(t){this.adapter.setActionFocus(t.from,f.MDCChipActionFocusBehavior.NOT_FOCUSABLE),this.adapter.setActionFocus(t.to,f.MDCChipActionFocusBehavior.FOCUSABLE_AND_FOCUSED)},v.prototype.shouldRemove=function(t){var e=t.source,i=t.trigger;return i===f.MDCChipActionInteractionTrigger.BACKSPACE_KEY||i===f.MDCChipActionInteractionTrigger.DELETE_KEY||e===f.MDCChipActionType.TRAILING},v.prototype.getRemovedAnnouncement=function(){return this.adapter.getAttribute(C.MDCChipAttributes.DATA_REMOVED_ANNOUNCEMENT)||void 0},v.prototype.getAddedAnnouncement=function(){return this.adapter.getAttribute(C.MDCChipAttributes.DATA_ADDED_ANNOUNCEMENT)||void 0},v.prototype.animateSelection=function(t){var e=this;this.resetAnimationStyles(),this.animFrame.request(c.SELECTION,function(){e.animFrame.request(c.SELECTION,function(){e.updateSelectionStyles(t)})})},v.prototype.resetAnimationStyles=function(){this.adapter.removeClass(C.MDCChipCssClasses.SELECTING),this.adapter.removeClass(C.MDCChipCssClasses.DESELECTING),this.adapter.removeClass(C.MDCChipCssClasses.SELECTING_WITH_PRIMARY_ICON),this.adapter.removeClass(C.MDCChipCssClasses.DESELECTING_WITH_PRIMARY_ICON)},v.prototype.updateSelectionStyles=function(t){var e=this,i=this.adapter.hasClass(C.MDCChipCssClasses.WITH_PRIMARY_ICON);return i&&t?(this.adapter.addClass(C.MDCChipCssClasses.SELECTING_WITH_PRIMARY_ICON),void this.animFrame.request(c.SELECTION,function(){e.adapter.addClass(C.MDCChipCssClasses.SELECTED)})):i&&!t?(this.adapter.addClass(C.MDCChipCssClasses.DESELECTING_WITH_PRIMARY_ICON),void this.animFrame.request(c.SELECTION,function(){e.adapter.removeClass(C.MDCChipCssClasses.SELECTED)})):t?(this.adapter.addClass(C.MDCChipCssClasses.SELECTING),void this.animFrame.request(c.SELECTION,function(){e.adapter.addClass(C.MDCChipCssClasses.SELECTED)})):t?void 0:(this.adapter.addClass(C.MDCChipCssClasses.DESELECTING),void this.animFrame.request(c.SELECTION,function(){e.adapter.removeClass(C.MDCChipCssClasses.SELECTED)}))},v);function v(t){var e=y.call(this,r(r({},v.defaultAdapter),t))||this;return e.animFrame=new l.AnimationFrame,e}e.MDCChipFoundation=A,e.default=A},function(t,n,e){"use strict";var c,i;Object.defineProperty(n,"__esModule",{value:!0}),n.announce=n.DATA_MDC_DOM_ANNOUNCE=n.AnnouncerPriority=void 0,(i=c=n.AnnouncerPriority||(n.AnnouncerPriority={})).POLITE="polite",i.ASSERTIVE="assertive",n.DATA_MDC_DOM_ANNOUNCE="data-mdc-dom-announce",n.announce=function(t,e){o.getInstance().say(t,e)};var o=(r.getInstance=function(){return r.instance||(r.instance=new r),r.instance},r.prototype.say=function(t,e){var i,n,o=null!==(i=null==e?void 0:e.priority)&&void 0!==i?i:c.POLITE,r=null!==(n=null==e?void 0:e.ownerDocument)&&void 0!==n?n:document,s=this.getLiveRegion(o,r);function a(){s.textContent="",r.removeEventListener("click",a)}s.textContent="",setTimeout(function(){s.textContent=t,r.addEventListener("click",a)},1)},r.prototype.getLiveRegion=function(t,e){var i=this.liveRegions.get(e);i||(i=new Map,this.liveRegions.set(e,i));var n=i.get(t);if(n&&e.body.contains(n))return n;var o=this.createLiveRegion(t,e);return i.set(t,o),o},r.prototype.createLiveRegion=function(t,e){var i=e.createElement("div");return i.style.position="absolute",i.style.top="-9999px",i.style.left="-9999px",i.style.height="1px",i.style.overflow="hidden",i.setAttribute("aria-atomic","true"),i.setAttribute("aria-live",t),i.setAttribute(n.DATA_MDC_DOM_ANNOUNCE,"true"),e.body.appendChild(i),i},r);function r(){this.liveRegions=new Map}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipSetFoundation=void 0;var s,a,c=i(0),u=i(8),d=i(19),p=i(42),h=i(55);(a=s=s||{})[a.INCREMENT=0]="INCREMENT",a[a.DECREMENT=1]="DECREMENT";var f,C=(f=c.MDCFoundation,o(y,f),Object.defineProperty(y,"defaultAdapter",{get:function(){return{announceMessage:function(){},emitEvent:function(){},getAttribute:function(){return null},getChipActionsAtIndex:function(){return[]},getChipCount:function(){return 0},getChipIdAtIndex:function(){return""},getChipIndexById:function(){return 0},isChipFocusableAtIndex:function(){return!1},isChipSelectableAtIndex:function(){return!1},isChipSelectedAtIndex:function(){return!1},removeChipAtIndex:function(){},setChipFocusAtIndex:function(){},setChipSelectedAtIndex:function(){},startChipAnimationAtIndex:function(){}}},enumerable:!1,configurable:!0}),y.prototype.handleChipAnimation=function(t){var e=t.detail,i=e.chipID,n=e.animation,o=e.isComplete,r=e.addedAnnouncement,s=e.removedAnnouncement,a=this.adapter.getChipIndexById(i);if(n===p.MDCChipAnimation.EXIT&&o)return s&&this.adapter.announceMessage(s),void this.removeAfterAnimation(a,i);n===p.MDCChipAnimation.ENTER&&o&&r&&this.adapter.announceMessage(r)},y.prototype.handleChipInteraction=function(t){var e=t.detail,i=e.source,n=e.chipID,o=e.isSelectable,r=e.isSelected,s=e.shouldRemove,a=this.adapter.getChipIndexById(n);s?this.removeChip(a):(this.focusChip(a,i,d.MDCChipActionFocusBehavior.FOCUSABLE),this.adapter.emitEvent(h.MDCChipSetEvents.INTERACTION,{chipIndex:a,chipID:n}),o&&this.setSelection(a,i,!r))},y.prototype.handleChipNavigation=function(t){var e=t.detail,i=e.chipID,n=e.key,o=e.isRTL,r=e.source,s=this.adapter.getChipIndexById(i);n===u.KEY.ARROW_RIGHT&&!o||n===u.KEY.ARROW_LEFT&&o?this.focusNextChipFrom(s+1):n===u.KEY.ARROW_LEFT&&!o||n===u.KEY.ARROW_RIGHT&&o?this.focusPrevChipFrom(s-1):n!==u.KEY.ARROW_DOWN?n!==u.KEY.ARROW_UP?n!==u.KEY.HOME?n!==u.KEY.END||this.focusPrevChipFrom(this.adapter.getChipCount()-1,r):this.focusNextChipFrom(0,r):this.focusPrevChipFrom(s-1,r):this.focusNextChipFrom(s+1,r)},y.prototype.getSelectedChipIndexes=function(){for(var e,t,i=new Set,n=this.adapter.getChipCount(),o=0;o<n;o++){var r=this.adapter.getChipActionsAtIndex(o);try{for(var s=(e=void 0,l(r)),a=s.next();!a.done;a=s.next()){var c=a.value;this.adapter.isChipSelectedAtIndex(o,c)&&i.add(o)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}}return i},y.prototype.setChipSelected=function(t,e,i){this.adapter.isChipSelectableAtIndex(t,e)&&this.setSelection(t,e,i)},y.prototype.isChipSelected=function(t,e){return this.adapter.isChipSelectedAtIndex(t,e)},y.prototype.removeChip=function(t){t>=this.adapter.getChipCount()||t<0||(this.adapter.startChipAnimationAtIndex(t,p.MDCChipAnimation.EXIT),this.adapter.emitEvent(h.MDCChipSetEvents.REMOVAL,{chipID:this.adapter.getChipIdAtIndex(t),chipIndex:t,isComplete:!1}))},y.prototype.addChip=function(t){t>=this.adapter.getChipCount()||t<0||this.adapter.startChipAnimationAtIndex(t,p.MDCChipAnimation.ENTER)},y.prototype.focusNextChipFrom=function(t,e){for(var i=this.adapter.getChipCount(),n=t;n<i;n++){var o=this.getFocusableAction(n,s.INCREMENT,e);if(o)return void this.focusChip(n,o,d.MDCChipActionFocusBehavior.FOCUSABLE_AND_FOCUSED)}},y.prototype.focusPrevChipFrom=function(t,e){for(var i=t;-1<i;i--){var n=this.getFocusableAction(i,s.DECREMENT,e);if(n)return void this.focusChip(i,n,d.MDCChipActionFocusBehavior.FOCUSABLE_AND_FOCUSED)}},y.prototype.getFocusableAction=function(t,e,i){var n=this.adapter.getChipActionsAtIndex(t);return e===s.DECREMENT&&n.reverse(),i?this.getMatchingFocusableAction(t,n,i):this.getFirstFocusableAction(t,n)},y.prototype.getFirstFocusableAction=function(t,e){var i,n;try{for(var o=l(e),r=o.next();!r.done;r=o.next()){var s=r.value;if(this.adapter.isChipFocusableAtIndex(t,s))return s}}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return null},y.prototype.getMatchingFocusableAction=function(t,e,i){var n,o,r=null;try{for(var s=l(e),a=s.next();!a.done;a=s.next()){var c=a.value;if(this.adapter.isChipFocusableAtIndex(t,c)&&(r=c),r===i)return r}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}return r},y.prototype.focusChip=function(t,e,i){var n,o;this.adapter.setChipFocusAtIndex(t,e,i);for(var r=this.adapter.getChipCount(),s=0;s<r;s++){var a=this.adapter.getChipActionsAtIndex(s);try{for(var c=(n=void 0,l(a)),u=c.next();!u.done;u=c.next()){var p=u.value;p===e&&s===t||this.adapter.setChipFocusAtIndex(s,p,d.MDCChipActionFocusBehavior.NOT_FOCUSABLE)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}}},y.prototype.supportsMultiSelect=function(){return"true"===this.adapter.getAttribute(h.MDCChipSetAttributes.ARIA_MULTISELECTABLE)},y.prototype.setSelection=function(t,e,i){var n,o;if(this.adapter.setChipSelectedAtIndex(t,e,i),this.adapter.emitEvent(h.MDCChipSetEvents.SELECTION,{chipID:this.adapter.getChipIdAtIndex(t),chipIndex:t,isSelected:i}),!this.supportsMultiSelect())for(var r=this.adapter.getChipCount(),s=0;s<r;s++){var a=this.adapter.getChipActionsAtIndex(s);try{for(var c=(n=void 0,l(a)),u=c.next();!u.done;u=c.next()){var p=u.value;p===e&&s===t||this.adapter.setChipSelectedAtIndex(s,p,!1)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}}},y.prototype.removeAfterAnimation=function(t,e){this.adapter.removeChipAtIndex(t),this.adapter.emitEvent(h.MDCChipSetEvents.REMOVAL,{chipIndex:t,isComplete:!0,chipID:e}),this.adapter.getChipCount()<=0||this.focusNearestFocusableAction(t)},y.prototype.focusNearestFocusableAction=function(t){for(var e=this.adapter.getChipCount(),i=t,n=t;-1<i||n<e;){var o=this.getNearestFocusableAction(i,n,d.MDCChipActionType.TRAILING);if(o)return void this.focusChip(o.index,o.action,d.MDCChipActionFocusBehavior.FOCUSABLE_AND_FOCUSED);i--,n++}},y.prototype.getNearestFocusableAction=function(t,e,i){var n=this.getFocusableAction(t,s.DECREMENT,i);if(n)return{index:t,action:n};if(e===t)return null;var o=this.getFocusableAction(e,s.INCREMENT,i);return o?{index:e,action:o}:null},y);function y(t){return f.call(this,r(r({},y.defaultAdapter),t))||this}e.MDCChipSetFoundation=C,e.default=C},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipTrailingAction=void 0;var r,s=i(1),a=i(6),c=i(4),u=i(43),p=i(85),l=(r=s.MDCComponent,o(d,r),Object.defineProperty(d.prototype,"ripple",{get:function(){return this.rippleSurface},enumerable:!1,configurable:!0}),d.attachTo=function(t){return new d(t)},d.prototype.initialize=function(t){void 0===t&&(t=function(t,e){return new a.MDCRipple(t,e)});var e=a.MDCRipple.createAdapter(this);this.rippleSurface=t(this.root,new c.MDCRippleFoundation(e))},d.prototype.initialSyncWithDOM=function(){var e=this;this.handleClick=function(t){e.foundation.handleClick(t)},this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.listen("click",this.handleClick),this.listen("keydown",this.handleKeydown)},d.prototype.destroy=function(){this.rippleSurface.destroy(),this.unlisten("click",this.handleClick),this.unlisten("keydown",this.handleKeydown),r.prototype.destroy.call(this)},d.prototype.getDefaultFoundation=function(){var i=this,t={focus:function(){i.root.focus()},getAttribute:function(t){return i.root.getAttribute(t)},notifyInteraction:function(t){return i.emit(u.strings.INTERACTION_EVENT,{trigger:t},!0)},notifyNavigation:function(t){i.emit(u.strings.NAVIGATION_EVENT,{key:t},!0)},setAttribute:function(t,e){i.root.setAttribute(t,e)}};return new p.MDCChipTrailingActionFoundation(t)},d.prototype.isNavigable=function(){return this.foundation.isNavigable()},d.prototype.focus=function(){this.foundation.focus()},d.prototype.removeFocus=function(){this.foundation.removeFocus()},d);function d(){return null!==r&&r.apply(this,arguments)||this}e.MDCChipTrailingAction=l},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipTrailingActionFoundation=void 0;var s,a=i(0),c=i(8),u=i(43),p=(s=a.MDCFoundation,o(l,s),Object.defineProperty(l,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(l,"defaultAdapter",{get:function(){return{focus:function(){},getAttribute:function(){return null},setAttribute:function(){},notifyInteraction:function(){},notifyNavigation:function(){}}},enumerable:!1,configurable:!0}),l.prototype.handleClick=function(t){t.stopPropagation(),this.adapter.notifyInteraction(u.InteractionTrigger.CLICK)},l.prototype.handleKeydown=function(t){t.stopPropagation();var e=c.normalizeKey(t);if(this.shouldNotifyInteractionFromKey(e)){var i=this.getTriggerFromKey(e);this.adapter.notifyInteraction(i)}else c.isNavigationEvent(t)&&this.adapter.notifyNavigation(e)},l.prototype.removeFocus=function(){this.adapter.setAttribute(u.strings.TAB_INDEX,"-1")},l.prototype.focus=function(){this.adapter.setAttribute(u.strings.TAB_INDEX,"0"),this.adapter.focus()},l.prototype.isNavigable=function(){return"true"!==this.adapter.getAttribute(u.strings.ARIA_HIDDEN)},l.prototype.shouldNotifyInteractionFromKey=function(t){var e=t===c.KEY.ENTER||t===c.KEY.SPACEBAR,i=t===c.KEY.BACKSPACE||t===c.KEY.DELETE;return e||i},l.prototype.getTriggerFromKey=function(t){return t===c.KEY.SPACEBAR?u.InteractionTrigger.SPACEBAR_KEY:t===c.KEY.ENTER?u.InteractionTrigger.ENTER_KEY:t===c.KEY.DELETE?u.InteractionTrigger.DELETE_KEY:t===c.KEY.BACKSPACE?u.InteractionTrigger.BACKSPACE_KEY:u.InteractionTrigger.UNSPECIFIED},l);function l(t){return s.call(this,r(r({},l.defaultAdapter),t))||this}e.MDCChipTrailingActionFoundation=p,e.default=p},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChip=void 0;var s,a=i(1),c=i(6),u=i(4),p=i(84),l=i(43),d=i(44),h=i(56),f=(s=a.MDCComponent,o(C,s),Object.defineProperty(C.prototype,"selected",{get:function(){return this.foundation.isSelected()},set:function(t){this.foundation.setSelected(t)},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"shouldRemoveOnTrailingIconClick",{get:function(){return this.foundation.getShouldRemoveOnTrailingIconClick()},set:function(t){this.foundation.setShouldRemoveOnTrailingIconClick(t)},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"setShouldFocusPrimaryActionOnClick",{set:function(t){this.foundation.setShouldFocusPrimaryActionOnClick(t)},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"ripple",{get:function(){return this.rippleSurface},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"id",{get:function(){return this.root.id},enumerable:!1,configurable:!0}),C.attachTo=function(t){return new C(t)},C.prototype.initialize=function(t,e){var i=this;void 0===t&&(t=function(t,e){return new c.MDCRipple(t,e)}),void 0===e&&(e=function(t){return new p.MDCChipTrailingAction(t)}),this.leadingIcon=this.root.querySelector(d.strings.LEADING_ICON_SELECTOR),this.checkmark=this.root.querySelector(d.strings.CHECKMARK_SELECTOR),this.primaryAction=this.root.querySelector(d.strings.PRIMARY_ACTION_SELECTOR);var n=this.root.querySelector(d.strings.TRAILING_ACTION_SELECTOR);n&&(this.trailingAction=e(n));var o=r(r({},c.MDCRipple.createAdapter(this)),{computeBoundingRect:function(){return i.foundation.getDimensions()}});this.rippleSurface=t(this.root,new u.MDCRippleFoundation(o))},C.prototype.initialSyncWithDOM=function(){var e=this;this.handleTrailingActionInteraction=function(){e.foundation.handleTrailingActionInteraction()},this.handleTrailingActionNavigation=function(t){e.foundation.handleTrailingActionNavigation(t)},this.handleClick=function(){e.foundation.handleClick()},this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleTransitionEnd=function(t){e.foundation.handleTransitionEnd(t)},this.handleFocusIn=function(t){e.foundation.handleFocusIn(t)},this.handleFocusOut=function(t){e.foundation.handleFocusOut(t)},this.listen("transitionend",this.handleTransitionEnd),this.listen("click",this.handleClick),this.listen("keydown",this.handleKeydown),this.listen("focusin",this.handleFocusIn),this.listen("focusout",this.handleFocusOut),this.trailingAction&&(this.listen(l.strings.INTERACTION_EVENT,this.handleTrailingActionInteraction),this.listen(l.strings.NAVIGATION_EVENT,this.handleTrailingActionNavigation))},C.prototype.destroy=function(){this.rippleSurface.destroy(),this.unlisten("transitionend",this.handleTransitionEnd),this.unlisten("keydown",this.handleKeydown),this.unlisten("click",this.handleClick),this.unlisten("focusin",this.handleFocusIn),this.unlisten("focusout",this.handleFocusOut),this.trailingAction&&(this.unlisten(l.strings.INTERACTION_EVENT,this.handleTrailingActionInteraction),this.unlisten(l.strings.NAVIGATION_EVENT,this.handleTrailingActionNavigation)),s.prototype.destroy.call(this)},C.prototype.beginExit=function(){this.foundation.beginExit()},C.prototype.getDefaultFoundation=function(){var i=this,t={addClass:function(t){return i.root.classList.add(t)},addClassToLeadingIcon:function(t){i.leadingIcon&&i.leadingIcon.classList.add(t)},eventTargetHasClass:function(t,e){return!!t&&t.classList.contains(e)},focusPrimaryAction:function(){i.primaryAction&&i.primaryAction.focus()},focusTrailingAction:function(){i.trailingAction&&i.trailingAction.focus()},getAttribute:function(t){return i.root.getAttribute(t)},getCheckmarkBoundingClientRect:function(){return i.checkmark?i.checkmark.getBoundingClientRect():null},getComputedStyleValue:function(t){return window.getComputedStyle(i.root).getPropertyValue(t)},getRootBoundingClientRect:function(){return i.root.getBoundingClientRect()},hasClass:function(t){return i.root.classList.contains(t)},hasLeadingIcon:function(){return!!i.leadingIcon},isRTL:function(){return"rtl"===window.getComputedStyle(i.root).getPropertyValue("direction")},isTrailingActionNavigable:function(){return!!i.trailingAction&&i.trailingAction.isNavigable()},notifyInteraction:function(){return i.emit(d.strings.INTERACTION_EVENT,{chipId:i.id},!0)},notifyNavigation:function(t,e){return i.emit(d.strings.NAVIGATION_EVENT,{chipId:i.id,key:t,source:e},!0)},notifyRemoval:function(t){i.emit(d.strings.REMOVAL_EVENT,{chipId:i.id,removedAnnouncement:t},!0)},notifySelection:function(t,e){return i.emit(d.strings.SELECTION_EVENT,{chipId:i.id,selected:t,shouldIgnore:e},!0)},notifyTrailingIconInteraction:function(){return i.emit(d.strings.TRAILING_ICON_INTERACTION_EVENT,{chipId:i.id},!0)},notifyEditStart:function(){},notifyEditFinish:function(){},removeClass:function(t){return i.root.classList.remove(t)},removeClassFromLeadingIcon:function(t){i.leadingIcon&&i.leadingIcon.classList.remove(t)},removeTrailingActionFocus:function(){i.trailingAction&&i.trailingAction.removeFocus()},setPrimaryActionAttr:function(t,e){i.primaryAction&&i.primaryAction.setAttribute(t,e)},setStyleProperty:function(t,e){return i.root.style.setProperty(t,e)}};return new h.MDCChipFoundation(t)},C.prototype.setSelectedFromChipSet=function(t,e){this.foundation.setSelectedFromChipSet(t,e)},C.prototype.focusPrimaryAction=function(){this.foundation.focusPrimaryAction()},C.prototype.focusTrailingAction=function(){this.foundation.focusTrailingAction()},C.prototype.removeFocus=function(){this.foundation.removeFocus()},C.prototype.remove=function(){var t=this.root.parentNode;null!==t&&t.removeChild(this.root)},C);function C(){return null!==s&&s.apply(this,arguments)||this}e.MDCChip=f},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipSetFoundation=void 0;var s,a=i(0),h=i(44),c=i(88),u=(s=a.MDCFoundation,o(p,s),Object.defineProperty(p,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(p,"cssClasses",{get:function(){return c.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(p,"defaultAdapter",{get:function(){return{announceMessage:function(){},focusChipPrimaryActionAtIndex:function(){},focusChipTrailingActionAtIndex:function(){},getChipListCount:function(){return-1},getIndexOfChipById:function(){return-1},hasClass:function(){return!1},isRTL:function(){return!1},removeChipAtIndex:function(){},removeFocusFromChipAtIndex:function(){},selectChipAtIndex:function(){}}},enumerable:!1,configurable:!0}),p.prototype.getSelectedChipIds=function(){return this.selectedChipIds.slice()},p.prototype.select=function(t){this.selectImpl(t,!1)},p.prototype.handleChipInteraction=function(t){var e=t.chipId,i=this.adapter.getIndexOfChipById(e);this.removeFocusFromChipsExcept(i),(this.adapter.hasClass(c.cssClasses.CHOICE)||this.adapter.hasClass(c.cssClasses.FILTER))&&this.toggleSelect(e)},p.prototype.handleChipSelection=function(t){var e=t.chipId,i=t.selected;if(!t.shouldIgnore){var n=0<=this.selectedChipIds.indexOf(e);i&&!n?this.select(e):!i&&n&&this.deselectImpl(e)}},p.prototype.handleChipRemoval=function(t){var e=t.chipId,i=t.removedAnnouncement;i&&this.adapter.announceMessage(i);var n=this.adapter.getIndexOfChipById(e);this.deselectAndNotifyClients(e),this.adapter.removeChipAtIndex(n);var o=this.adapter.getChipListCount()-1;if(!(o<0)){var r=Math.min(n,o);this.removeFocusFromChipsExcept(r),this.adapter.focusChipTrailingActionAtIndex(r)}},p.prototype.handleChipNavigation=function(t){var e=t.chipId,i=t.key,n=t.source,o=this.adapter.getChipListCount()-1,r=this.adapter.getIndexOfChipById(e);if(-1!==r&&h.navigationKeys.has(i)){var s=this.adapter.isRTL(),a=i===h.strings.ARROW_LEFT_KEY||i===h.strings.IE_ARROW_LEFT_KEY,c=i===h.strings.ARROW_RIGHT_KEY||i===h.strings.IE_ARROW_RIGHT_KEY,u=i===h.strings.ARROW_DOWN_KEY||i===h.strings.IE_ARROW_DOWN_KEY,p=!s&&c||s&&a||u,l=i===h.strings.HOME_KEY,d=i===h.strings.END_KEY;p?r++:l?r=0:d?r=o:r--,r<0||o<r||(this.removeFocusFromChipsExcept(r),this.focusChipAction(r,i,n))}},p.prototype.focusChipAction=function(t,e,i){var n=h.jumpChipKeys.has(e);if(n&&i===h.EventSource.PRIMARY)return this.adapter.focusChipPrimaryActionAtIndex(t);if(n&&i===h.EventSource.TRAILING)return this.adapter.focusChipTrailingActionAtIndex(t);var o=this.getDirection(e);return o===h.Direction.LEFT?this.adapter.focusChipTrailingActionAtIndex(t):o===h.Direction.RIGHT?this.adapter.focusChipPrimaryActionAtIndex(t):void 0},p.prototype.getDirection=function(t){var e=this.adapter.isRTL(),i=t===h.strings.ARROW_LEFT_KEY||t===h.strings.IE_ARROW_LEFT_KEY,n=t===h.strings.ARROW_RIGHT_KEY||t===h.strings.IE_ARROW_RIGHT_KEY;return!e&&i||e&&n?h.Direction.LEFT:h.Direction.RIGHT},p.prototype.deselectImpl=function(t,e){void 0===e&&(e=!1);var i=this.selectedChipIds.indexOf(t);if(0<=i){this.selectedChipIds.splice(i,1);var n=this.adapter.getIndexOfChipById(t);this.adapter.selectChipAtIndex(n,!1,e)}},p.prototype.deselectAndNotifyClients=function(t){this.deselectImpl(t,!0)},p.prototype.toggleSelect=function(t){0<=this.selectedChipIds.indexOf(t)?this.deselectAndNotifyClients(t):this.selectAndNotifyClients(t)},p.prototype.removeFocusFromChipsExcept=function(t){for(var e=this.adapter.getChipListCount(),i=0;i<e;i++)i!==t&&this.adapter.removeFocusFromChipAtIndex(i)},p.prototype.selectAndNotifyClients=function(t){this.selectImpl(t,!0)},p.prototype.selectImpl=function(t,e){if(!(0<=this.selectedChipIds.indexOf(t))){if(this.adapter.hasClass(c.cssClasses.CHOICE)&&0<this.selectedChipIds.length){var i=this.selectedChipIds[0],n=this.adapter.getIndexOfChipById(i);this.selectedChipIds=[],this.adapter.selectChipAtIndex(n,!1,e)}this.selectedChipIds.push(t);var o=this.adapter.getIndexOfChipById(t);this.adapter.selectChipAtIndex(o,!0,e)}},p);function p(t){var e=s.call(this,r(r({},p.defaultAdapter),t))||this;return e.selectedChipIds=[],e}e.MDCChipSetFoundation=u,e.default=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses=e.strings=void 0,e.strings={CHIP_SELECTOR:".mdc-chip"},e.cssClasses={CHOICE:"mdc-chip-set--choice",FILTER:"mdc-chip-set--filter"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)},s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&n(e,t,i);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.deprecated=void 0,r(i(147),e),r(i(151),e),r(i(154),e);var a=s(i(158));e.deprecated=a},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(148),e),o(i(77),e),o(i(19),e),o(i(54),e),o(i(78),e),o(i(79),e),o(i(150),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GRAPHIC_SELECTED_WIDTH_STYLE_PROP=e.computePrimaryActionRippleClientRect=void 0,e.computePrimaryActionRippleClientRect=function(t,e){var i=Number(e.replace("px",""));return Number.isNaN(i)?t:{width:t.width+i,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left}},e.GRAPHIC_SELECTED_WIDTH_STYLE_PROP="--mdc-chip-graphic-selected-width"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(152),e),o(i(80),e),o(i(42),e),o(i(81),e),o(i(153),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(155),e),o(i(156),e),o(i(55),e),o(i(83),e),o(i(157),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipSet=void 0;var r,s=i(1),a=i(82),c=i(80),u=i(42),p=i(55),l=i(83),d=(r=s.MDCComponent,o(h,r),h.attachTo=function(t){return new h(t)},h.prototype.initialize=function(t){void 0===t&&(t=function(t){return new c.MDCChip(t)}),this.chips=[];for(var e=this.root.querySelectorAll("."+p.MDCChipSetCssClasses.CHIP),i=0;i<e.length;i++){var n=t(e[i]);this.chips.push(n)}},h.prototype.initialSyncWithDOM=function(){var e=this;this.handleChipAnimation=function(t){e.foundation.handleChipAnimation(t)},this.handleChipInteraction=function(t){e.foundation.handleChipInteraction(t)},this.handleChipNavigation=function(t){e.foundation.handleChipNavigation(t)},this.listen(u.MDCChipEvents.ANIMATION,this.handleChipAnimation),this.listen(u.MDCChipEvents.INTERACTION,this.handleChipInteraction),this.listen(u.MDCChipEvents.NAVIGATION,this.handleChipNavigation)},h.prototype.destroy=function(){this.unlisten(u.MDCChipEvents.ANIMATION,this.handleChipAnimation),this.unlisten(u.MDCChipEvents.INTERACTION,this.handleChipInteraction),this.unlisten(u.MDCChipEvents.NAVIGATION,this.handleChipNavigation),r.prototype.destroy.call(this)},h.prototype.getDefaultFoundation=function(){var n=this,t={announceMessage:function(t){a.announce(t)},emitEvent:function(t,e){n.emit(t,e,!0)},getAttribute:function(t){return n.root.getAttribute(t)},getChipActionsAtIndex:function(t){return n.isIndexValid(t)?n.chips[t].getActions():[]},getChipCount:function(){return n.chips.length},getChipIdAtIndex:function(t){return n.isIndexValid(t)?n.chips[t].getElementID():""},getChipIndexById:function(e){return n.chips.findIndex(function(t){return t.getElementID()===e})},isChipFocusableAtIndex:function(t,e){return!!n.isIndexValid(t)&&n.chips[t].isActionFocusable(e)},isChipSelectableAtIndex:function(t,e){return!!n.isIndexValid(t)&&n.chips[t].isActionSelectable(e)},isChipSelectedAtIndex:function(t,e){return!!n.isIndexValid(t)&&n.chips[t].isActionSelected(e)},removeChipAtIndex:function(t){n.isIndexValid(t)&&(n.chips[t].destroy(),n.chips[t].remove(),n.chips.splice(t,1))},setChipFocusAtIndex:function(t,e,i){n.isIndexValid(t)&&n.chips[t].setActionFocus(e,i)},setChipSelectedAtIndex:function(t,e,i){n.isIndexValid(t)&&n.chips[t].setActionSelected(e,i)},startChipAnimationAtIndex:function(t,e){n.isIndexValid(t)&&n.chips[t].startAnimation(e)}};return new l.MDCChipSetFoundation(t)},h.prototype.getChipIndexByID=function(e){return this.chips.findIndex(function(t){return t.getElementID()===e})},h.prototype.getChipIdAtIndex=function(t){return this.isIndexValid(t)?this.chips[t].getElementID():""},h.prototype.getSelectedChipIndexes=function(){return this.foundation.getSelectedChipIndexes()},h.prototype.setChipSelected=function(t,e,i){this.foundation.setChipSelected(t,e,i)},h.prototype.isChipSelected=function(t,e){return this.foundation.isChipSelected(t,e)},h.prototype.addChip=function(t){this.foundation.addChip(t)},h.prototype.removeChip=function(t){this.foundation.removeChip(t)},h.prototype.isIndexValid=function(t){return-1<t&&t<this.chips.length},h);function h(){return null!==r&&r.apply(this,arguments)||this}e.MDCChipSet=d},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(159),e),o(i(162),e),o(i(165),e)},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.trailingActionStrings=void 0,o(i(160),e),o(i(84),e),o(i(85),e),o(i(161),e);var r=i(43);Object.defineProperty(e,"trailingActionStrings",{enumerable:!0,get:function(){return r.strings}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.chipStrings=e.chipCssClasses=void 0,o(i(163),e),o(i(86),e),o(i(56),e),o(i(164),e);var r=i(44);Object.defineProperty(e,"chipCssClasses",{enumerable:!0,get:function(){return r.cssClasses}}),Object.defineProperty(e,"chipStrings",{enumerable:!0,get:function(){return r.strings}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.chipSetStrings=e.chipSetCssClasses=void 0,o(i(166),e),o(i(167),e),o(i(87),e);var r=i(88);Object.defineProperty(e,"chipSetCssClasses",{enumerable:!0,get:function(){return r.cssClasses}}),Object.defineProperty(e,"chipSetStrings",{enumerable:!0,get:function(){return r.strings}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipSet=void 0;var r,a=i(1),c=i(82),u=i(86),p=i(56),l=i(87),d=p.MDCChipFoundation.strings,h=d.INTERACTION_EVENT,f=d.SELECTION_EVENT,C=d.REMOVAL_EVENT,y=d.NAVIGATION_EVENT,A=l.MDCChipSetFoundation.strings.CHIP_SELECTOR,v=0,E=(r=a.MDCComponent,o(g,r),g.attachTo=function(t){return new g(t)},Object.defineProperty(g.prototype,"chips",{get:function(){return this.chipsList.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"selectedChipIds",{get:function(){return this.foundation.getSelectedChipIds()},enumerable:!1,configurable:!0}),g.prototype.initialize=function(t){void 0===t&&(t=function(t){return new u.MDCChip(t)}),this.chipFactory=t,this.chipsList=this.instantiateChips(this.chipFactory)},g.prototype.initialSyncWithDOM=function(){var e,t,i=this;try{for(var n=s(this.chipsList),o=n.next();!o.done;o=n.next()){var r=o.value;r.id&&r.selected&&this.foundation.select(r.id)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.handleChipInteraction=function(t){return i.foundation.handleChipInteraction(t.detail)},this.handleChipSelection=function(t){return i.foundation.handleChipSelection(t.detail)},this.handleChipRemoval=function(t){return i.foundation.handleChipRemoval(t.detail)},this.handleChipNavigation=function(t){return i.foundation.handleChipNavigation(t.detail)},this.listen(h,this.handleChipInteraction),this.listen(f,this.handleChipSelection),this.listen(C,this.handleChipRemoval),this.listen(y,this.handleChipNavigation)},g.prototype.destroy=function(){var e,t;try{for(var i=s(this.chipsList),n=i.next();!n.done;n=i.next())n.value.destroy()}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.unlisten(h,this.handleChipInteraction),this.unlisten(f,this.handleChipSelection),this.unlisten(C,this.handleChipRemoval),this.unlisten(y,this.handleChipNavigation),r.prototype.destroy.call(this)},g.prototype.addChip=function(t){t.id=t.id||"mdc-chip-"+ ++v,this.chipsList.push(this.chipFactory(t))},g.prototype.getDefaultFoundation=function(){var n=this,t={announceMessage:function(t){c.announce(t)},focusChipPrimaryActionAtIndex:function(t){n.chipsList[t].focusPrimaryAction()},focusChipTrailingActionAtIndex:function(t){n.chipsList[t].focusTrailingAction()},getChipListCount:function(){return n.chips.length},getIndexOfChipById:function(t){return n.findChipIndex(t)},hasClass:function(t){return n.root.classList.contains(t)},isRTL:function(){return"rtl"===window.getComputedStyle(n.root).getPropertyValue("direction")},removeChipAtIndex:function(t){0<=t&&t<n.chips.length&&(n.chipsList[t].destroy(),n.chipsList[t].remove(),n.chipsList.splice(t,1))},removeFocusFromChipAtIndex:function(t){n.chipsList[t].removeFocus()},selectChipAtIndex:function(t,e,i){0<=t&&t<n.chips.length&&n.chipsList[t].setSelectedFromChipSet(e,i)}};return new l.MDCChipSetFoundation(t)},g.prototype.instantiateChips=function(e){return[].slice.call(this.root.querySelectorAll(A)).map(function(t){return t.id=t.id||"mdc-chip-"+ ++v,e(t)})},g.prototype.findChipIndex=function(t){for(var e=0;e<this.chips.length;e++)if(this.chipsList[e].id===t)return e;return-1},g);function g(){return null!==r&&r.apply(this,arguments)||this}e.MDCChipSet=E}],o.c=n,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=146);function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var i,n});
\No newline at end of file