@aurigma/ui-framework
Version:
A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.
85 lines • 1.53 MB
JavaScript
(s=>{function e(e){for(var t,n,i=e[0],r=e[1],o=0,a=[];o<i.length;o++)n=i[o],Object.prototype.hasOwnProperty.call(l,n)&&l[n]&&a.push(l[n][0]),l[n]=0;for(t in r)Object.prototype.hasOwnProperty.call(r,t)&&(s[t]=r[t]);for(h&&h(e);a.length;)a.shift()()}var t,n={},l={52:0};function c(e){return u.p+"dynamic."+({0:"vendors~au-widget-canvas~au-widget-datasheet~au-widget-design-editor",1:"au-option-filtered-list-group~au-option-filtered-single-list",2:"au-widget-3d-viewer~au-widget-mockup-3d-viewer",3:"au-widget-image-carousel~au-widget-slider",4:"vendors~au-widget-pim-ajax~au-widget-pim-design-selector",5:"au-option-checkbox-group",6:"au-option-filtered-list-group",7:"au-option-filtered-single-list",8:"au-option-image-list",9:"au-option-image-list-compact",10:"au-option-radio-group",11:"au-option-radio-group-compact",12:"au-option-text",13:"au-widget-3d-viewer",14:"au-widget-ajax",15:"au-widget-asset-storage-ajax",16:"au-widget-button",17:"au-widget-canvas",18:"au-widget-cart",19:"au-widget-checkbox",20:"au-widget-color-picker",21:"au-widget-color-selector",22:"au-widget-data-driven-editor",23:"au-widget-datasheet",24:"au-widget-design-editor",25:"au-widget-dnd-controller",26:"au-widget-finish-button",27:"au-widget-finish-group",28:"au-widget-function-trigger",29:"au-widget-gallery",30:"au-widget-group",31:"au-widget-help",32:"au-widget-html",33:"au-widget-image-carousel",34:"au-widget-input-text",35:"au-widget-item-list",36:"au-widget-mockup-3d-viewer",37:"au-widget-option",38:"au-widget-order",39:"au-widget-pantone-color-picker",40:"au-widget-pim-ajax",41:"au-widget-pim-design-selector",42:"au-widget-pim-option",43:"au-widget-pim-options",44:"au-widget-preflight",45:"au-widget-preview-mockup-slider",46:"au-widget-slider",47:"au-widget-static-text",48:"au-widget-steps",49:"au-widget-template-editor",50:"au-widget-uploader",51:"au-widget-variant-selector",53:"vendors~au-widget-datasheet",54:"vendors~au-widget-design-editor",55:"vendors~au-widget-mockup-3d-viewer"}[e]||e)+".khmyapxzyk.js"}function u(e){var t;return(n[e]||(t=n[e]={i:e,l:!1,exports:{}},s[e].call(t.exports,t,t.exports,u),t.l=!0,t)).exports}"function"==typeof c&&(t=c,c=function(){try{if("function"!=typeof patchAurigmaEditorUrl)throw new Error("WebpackRequireFrom: 'patchAurigmaEditorUrl' is not a function or not available at runtime. See https://github.com/agoldis/webpack-require-from#troubleshooting");var e=patchAurigmaEditorUrl(t.apply(this,arguments));if(e&&"string"==typeof e)return e;throw new Error("WebpackRequireFrom: 'patchAurigmaEditorUrl' does not return string. See https://github.com/agoldis/webpack-require-from#troubleshooting")}catch(e){return console.error(e),t.apply(this,arguments)}}),u.e=function(i){var e,r,o,t,a,n=[],s=l[i];return 0!==s&&(s?n.push(s[2]):(e=new Promise(function(e,t){s=l[i]=[e,t]}),n.push(s[2]=e),(r=document.createElement("script")).charset="utf-8",r.timeout=120,u.nc&&r.setAttribute("nonce",u.nc),r.src=c(i),o=new Error,t=function(e){r.onerror=r.onload=null,clearTimeout(a);var t,n=l[i];0!==n&&(n&&(t=e&&("load"===e.type?"missing":e.type),e=e&&e.target&&e.target.src,o.message="Loading chunk "+i+" failed.\n("+t+": "+e+")",o.name="ChunkLoadError",o.type=t,o.request=e,n[1](o)),l[i]=void 0)},a=setTimeout(function(){t({type:"timeout",target:r})},12e4),r.onerror=r.onload=t,document.head.appendChild(r))),Promise.all(n)},u.m=s,u.c=n,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(t,e){if(1&e&&(t=u(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)u.d(n,i,function(e){return t[e]}.bind(null,i));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="EDITOR_BASE_PATHimports/es8/",u.oe=function(e){throw console.error(e),e};var i=(r=window.multistep_editor_jsonpFunction=window.multistep_editor_jsonpFunction||[]).push.bind(r);r.push=e;for(var r=r.slice(),o=0;o<r.length;o++)e(r[o]);var h=i;u(u.s=296)})([function(e,t,n){n.d(t,"c",function(){return i}),n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});function i(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function r(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;0<=s;s--)(r=e[s])&&(a=(o<3?r(a):3<o?r(t,n,a):r(t,n))||a);return 3<o&&a&&Object.defineProperty(t,n,a),a}function o(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}Object.create},function(e,t,n){n.d(t,"a",function(){return d});var t=n(0),o=n(102),i=n(14),a=n(265),r=n(37);class s{static _appendToHead(e){document.getElementsByTagName("head")[0].appendChild(e)}static _attachEventHandlers(e,t,n){e.readyState?e.onreadystatechange=function(){"load"!==e.readyState&&"loaded"!==e.readyState&&"complete"!==e.readyState||"function"==typeof t&&(e.onreadystatechange=null,t())}:(e.onload=function(){"function"==typeof t&&t()},e.onerror=function(){"function"==typeof n&&n(arguments)})}static initWebComponentsReadyPromise(){let t=window;return t.webComponentsReadyPromise||(t.webComponentsReadyPromise=new Promise(function(e){return t.WebComponents?setTimeout(()=>{e(!0)}):document.addEventListener("WebComponentsReady",()=>{e(!0)})})),t.webComponentsReadyPromise}static loadScript(e,t,n,i){e.toLowerCase().endsWith("au.editor.js")&&null!=(r=window.Aurigma)&&r.UIFramework&&n();var r=document.createElement("script");r.id=t,r.type="text/javascript",this._attachEventHandlers(r,n,i),this._appendToHead(r),r.src=e}static async loadScriptAsync(n,i){return new Promise((e,t)=>{s.loadScript(n,i,e,t)})}static loadLink(e,t,n,i,r){var o=document.createElement("link");o.type=t||"",o.rel=n,this._attachEventHandlers(o,i,r),this._appendToHead(o),o.href=e}static async loadLinkAsync(n,i,r){return new Promise((e,t)=>{s.loadLink(n,i,r,e,t)})}static loadHtml(e,n=()=>{},i=()=>{},r=!0){var t=new XMLHttpRequest;t.onload=function(){var e,t;200<=this.status&&this.status<=300?(r&&(e=this.response,(t=document.createElement("template")).setAttribute("style","display: none;"),t.innerHTML=e,document.head.appendChild(t.content)),n&&n(this.response)):i&&i(this.response)},t.onerror=function(){i&&i()},t.open("get",e,!0),t.send()}static async loadHtmlAsync(n,i=!0){return new Promise((e,t)=>{s.loadHtml(n,e,t,i)})}static loadJson(i){return new Promise((e,t)=>{var n=new XMLHttpRequest;n.onload=function(){200===this.status?e(JSON.parse(this.response)):404!==this.status&&500!==this.status||t(this.response)},n.open("get",i,!0),n.send()})}static load(e,t,n,i){var r=this.addTimestampToUrl(e);if(/\.js$/gi.test(e))this.loadScript(e,"",t,n);else if(/\.css$|\.scss$|\.less$/gi.test(e))this.loadLink(i?e:r,"text/css","stylesheet",t,n);else{if(!/\.html$|\.htm$/gi.test(e))throw"bad url: "+e;this.loadHtml(i?e:r,t,n)}}static async loadAsync(n,i){return new Promise((e,t)=>{s.load(n,e,t,i)})}static appendLoadAnimation(e,t){try{var n=["display:flex","align-items:center","justify-content:center","width:100%","height:100%","background-color:rgba(255, 255, 255, 0.9)","color: #666666;","position:absolute","z-index:600"];return e.style.position="relative",e.innerHTML=`
<div style="${n.join(";")}">
<au-preloader style="position: relative !important; z-index: 601;" message="${t}"></au-preloader>
<div style="${n.join(";")}">
<span style="top: 32px;position: relative;">${t}</span>
</div>
</div>`,e.firstElementChild}catch(e){throw"Failed to attach loader element"}}static toggleLoadAnimation(e,t){try{t?(e.removeAttribute("hidden"),e.style.display="flex"):(e.setAttribute("hidden","true"),e.style.display="none")}catch(e){console.warn("Failed to toggle loader element")}}static concatAndResolveUrl(e,t){return e.replace(/\/$/,"")+"/"+t.replace(/^\//,"")}static addTimestampToUrl(e){return e+(-1===e.indexOf("?")?"?":"&")+"t="+Date.now()}}var l=s,n=n(46);class d{static DeepMerge(i,r){let o=e=>e&&"object"==typeof e;return o(i)&&o(r)?(Object.keys(r).forEach(e=>{var t=i[e],n=r[e];(!Array.isArray(t)||!Array.isArray(n))&&o(t)&&o(n)?i[e]=d.DeepMerge(Object.assign({},t),n):i[e]=n}),i):r}static propertyEnsure(e,t,n){return d.isNullOrUndefined(e[t])?e[t]=n:e[t]}static valueEnsure(e,t){return d.isNullOrUndefined(e)?t:e}static valueEnsureMerge(e,t){e=this.valueEnsure(e,t);return Object.assign(t,e)}static isNullOrUndefined(e){return d.isNull(e)||d.isUndefined(e)}static isUndefined(e){return d.typeofCheck(e,"undefined")}static isNotUndefined(e){return!d.isUndefined(e)}static isNull(e){return null===e}static isNotNullOrUndefined(e){return!d.isNullOrUndefined(e)}static isLengthEqual(e,t){return d.isNotNullOrUndefined(e)&&d.isNotNullOrUndefined(t)&&e.length===t.length}static isEmptyStrOrArray(e){return!!d.isNullOrUndefined(e)||0===e.length}static isEmptyString(e){return d.isEmptyStrOrArray(e)}static isEmptyArray(e){return d.isEmptyStrOrArray(e)}static isNotEmptyArray(e){return!d.isEmptyArray(e)}static clone(e){return Object.assign({},e)}static objectDeepValue(e,t){if(d.isObject(e)){for(var n=0,i=(t=t.replace(/\[([^\]]+)\]/gi,".$1").split(".")).length;n<i;n++)if(e=e[e instanceof Array?+t[n]:t[n]],d.isUndefined(e))return null;return e}return null}static isObjectNotEmpty(e){return d.isNotNullOrUndefined(e)&&0<Object.keys(e).length}static isObject(e){return!(!e||"object"!=typeof e||e instanceof Array)}static isString(e){return"string"==typeof e}static arrayDiffByName(e,t){return d.arrayDiff(e,t,(e,t)=>e.name===t.name,(e,t)=>JSON.stringify(e)!==JSON.stringify(t))}static arrayDiff(n,i,r=(e,t)=>e===t,o=(e,t)=>!1){let a=[],s=[],l=[],c=[],u=[],h=(n.forEach(t=>{var e=i.find(e=>r(t,e));(d.isNotUndefined(e)?l:s).push(t)}),i.forEach(t=>{var e=n.find(e=>r(e,t));d.isUndefined(e)&&a.push(t)}),[]);return l.forEach((t,e)=>{e!==(n=i.indexOf(t))&&-1!==n&&u.push({from:e,to:n,item:t});var n=i.find(e=>r(t,e)&&o(t,e));d.isNotUndefined(n)&&(h.push(e),c.push(t))}),h.forEach(e=>{l.splice(e,1)}),{added:a,removed:s,updated:c,noChange:l,indexChanged:u}}static JSONStringifyQuotes(e){return JSON.stringify(e).replace(/['"]+/gi,"")}static objectEquals(e,t){return d.JSONStringifyQuotes(e)===d.JSONStringifyQuotes(t)}static tryParseJson(t){try{return JSON.parse(t)}catch(e){return t}}static typeofCheck(e,t){return typeof e===t}static createTemplateDocument(e){var t=document.createElement("template");return t.innerHTML=e,t.content}static createNodeFromString(e){return d.createTemplateDocument(e).firstChild.cloneNode(!0)}static trimAndLowerString(e){return e?e.replace(/\s+/g,"").toLocaleLowerCase():null}static isFunction(e){var t={}.toString.call(e);return e&&("[object Function]"===t||"[object AsyncFunction]"===t)}static isPromise(e){return e&&"[object Promise]"===Object.prototype.toString.call(e)}static isAsyncFunction(e){return!!(e&&e.constructor&&e.constructor.name)&&"AsyncFunction"===e.constructor.name}static recursiveJob(t,n,e=null,i){0===t.length?i(e):n(t.shift(),e).then(e=>{d.recursiveJob(t,n,e,i)}).catch(e=>{i(null,e)})}static recursiveJobPromise(e,t){let r=Array.prototype.slice.call(e);return new Promise((n,i)=>{d.recursiveJob(r,t,null,(e,t)=>{t?i(t):n(e)})})}static functionWrapperConstructor(i){switch(!0){case Array.isArray(i):return(...n)=>d.recursiveJobPromise(i,(e,t)=>Promise.resolve(e.apply(this.jsonParamsFetcher.scope,0===i.indexOf(e)?n:[t])));case this.isFunction(i):return(...e)=>i.apply(this.jsonParamsFetcher.scope,e);default:return e=>Promise.resolve()}}static objectPropertyFind(e,i){let r=!1,o=t=>{switch(!0){case Array.isArray(t):for(let e=0;e<t.length&&!r;e++)o(t[e]);break;case t instanceof Object:var n=Object.keys(t);for(let e=0;e<n.length&&!r;e++)o(n[e]),o(t[n[e]]);break;default:i(t)&&(r=!0)}};return o(e),r}static isNum(e){return/^\d+$/.test(e)}static addTimestampToURL(e,t=!0){var n;if(d.isNotNullOrUndefined(e))return""!==(n=new URL(e)).search&&!1===t||(e+=(""===n.search?"?":"&")+"t="+(t=(new Date).getTime().toString()).slice(0,t.length-4)+"."+t.slice(t.length-4)),e}static findDataInResponse(e,t){try{d.isEmptyString(t)&&(t="response");var n=d.tryParseJson(e);return d.typeofCheck(n,"string")?n:new Function("response","return "+t)(n)}catch(e){console.error(e.message,e.stack)}return""}static guid(){var e=()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1);return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}static getPatchedUrl(e){return window.patchAurigmaEditorUrl("EDITOR_BASE_PATH"+e)}static __setAuWizard(e){d.__auWizard=e}static getWizardElement(){return d.__auWizard||document.querySelector("au-wizard")}static loadJson(i){return i.toLowerCase().startsWith("https://")||i.toLowerCase().startsWith("http://")||(i=this.getPatchedUrl(i)),new Promise((e,t)=>{var n=new XMLHttpRequest;n.onload=function(){200<=this.status&&this.status<=300?e(JSON.parse(this.response)):t(this.response)},n.onerror=function(){t()},n.open("get",i,!0),n.send()})}static cloneFromDriver(e){if("object"!=typeof e)return e;if(!e)return e;var t,n=e instanceof Array?[]:{};for(t in e)e.hasOwnProperty(t)&&(n[t]=this.cloneFromDriver(e[t]));return n}static sessionGuid(){return this._timestamp.toString()}static getOrDefault(e,t){try{var n=d.jsonParamsFetcher.scope,i=Object.keys(n),r=Object.values(n),o=new Function(i.join(","),`return ${e};`).apply(n,r);return void 0===o||"undefined"===o?t:o}catch(e){return t}}static isNullableArray(e){return e.every(e=>null===e)}static isEmptyObject(e){return null==e||0===Object.keys(e).length||""===e}static isSafari(){var e=navigator.userAgent.toLowerCase();return 0<e.search(/safari/)&&-1===e.search(/chrome/)}static getBrowser(){var e=window,t=e.navigator.userAgent.toLowerCase();switch(!0){case-1<t.indexOf("edge"):return"edge";case-1<t.indexOf("opr")&&!!e.opr:return"opera";case-1<t.indexOf("chrome")&&!!e.chrome:return"chrome";case-1<t.indexOf("trident"):return"ie";case-1<t.indexOf("firefox"):return"firefox";case-1<t.indexOf("safari"):return"safari";default:return"other"}}static findParent(e,t){if(!e)return null;let n=e,i=null,r=!0;for(;r;)(i=n.parentNode||n.host)?(t(i)&&(r=!1),n=i):r=!1;return i}static IsTrue(e){return!0===e||"true"===e}static readFromLocalStorage(e){return localStorage.getItem(e)}static writeToLocalStorage(e,t){d.isObject(t)||Array.isArray(t)?localStorage.setItem(e,JSON.stringify(t)):localStorage.setItem(e,t)}static async setTimeoutWrapper(e,t,n){for(let e=0;e<n;e++)await new Promise(e=>{setTimeout(()=>{e()},t)});return e()}static getDocumentCustomStyles(){return((e,t=document.body,n=void 0)=>{var i,r=window.getComputedStyle(t,n),o={};for(i of e){var a=r.getPropertyValue(i);a&&(o[i]=a)}return o})(((e=document.styleSheets)=>{var t,n=[];for(t of Array.from(e))try{for(var i of Array.from(t.cssRules))try{for(var r of Array.from(i.style))(r.startsWith("--au")||r.startsWith("--theme"))&&-1===n.indexOf(r)&&n.push(r)}catch(e){}}catch(e){}return n})(),document.documentElement)}static async loadHtml(e){return new Promise((t,n)=>{l.loadHtml(e,e=>t(e),e=>n(e),!1)})}static containsAll(e,t){var n,i=[];let r=!0;for(n of t)-1===e.indexOf(n)&&(r=!1,i.push(n));return new o.a(r,i)}static objectUndefinedFind(e,i){let r=[],o=(t,e)=>{switch(!0){case Array.isArray(t):for(let e=0;e<t.length;e++)o(t[e]);break;case t instanceof Object:var n=Object.keys(t);for(let e=0;e<n.length;e++)o(n[e]),o(t[n[e]]);break;default:i(t)&&r.push(t)}};return o(e),r}static undefinedCriterion(e){return void 0===e||"undefined"===e||"string"==typeof e&&-1<e.indexOf("undefined")}static strAndTruncate(e){return JSON.stringify(e).replace(/['"]+/gi,"")}static ensureArray(e){return Array.isArray(e)?e:null!=e?[e]:[]}static ensureStartsWith(e,t){return e.startsWith(t)?e:t+e}static ensureEndsWith(e,t){return e.endsWith(t)?e:e+t}static removeTrailingSlash(e){return e.endsWith("/")?e.slice(0,-1):e}static isNullOrEmptyString(e){return null==e||""===e||"string"==typeof e&&""===e.trim()}static parseJwt(e){e=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),e=decodeURIComponent(atob(e).split("").map(e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(e)}static deepSearch(t,n,i){if(null!=t){if(t.hasOwnProperty(n)&&!0===i(n,t[n]))return t;var r=Object.keys(t);for(let e=0;e<r.length;e++){var o=t[r[e]];if("object"==typeof o&&null!=o){o=d.deepSearch(t[r[e]],n,i);if(null!==o)return o}}}return null}static isMobile(){return window.innerWidth<769}static executeTimeout(t,e){e.forEach(e=>setTimeout(t,e))}static applyMixins(n,e){e.forEach(t=>{Object.getOwnPropertyNames(t.prototype).forEach(e=>{"constructor"!==e&&(n.prototype[e]=t.prototype[e])})})}static openFullscreen(e){e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}static closeFullscreen(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}static getSafeName(e){let t="";return t="string"==typeof e?e:e.title||e.name,(t=this.computeValue(t)).replace(/[^a-z0-9]/g,function(e){var t=e.charCodeAt(0);return 32===t?"-":65<=t&&t<=90?"_"+e.toLowerCase():"__"+("000"+t.toString(16)).slice(-4)})}static computeValue(e){var t,n;return-1!==e.indexOf("{{")&&-1!==e.indexOf("}}")?(t=new i.a,(n={value:e,vars:this.jsonParamsFetcher.head})[i.a.SCOPE_HEAD_KEY]=this.jsonParamsFetcher.head,t.process(n,this.jsonParamsFetcher.scope).value):e}static async computeFunction(e){var t=new i.a,e={func:e,vars:this.jsonParamsFetcher.head},t=t.process(e,this.jsonParamsFetcher.scope),e=d.functionWrapperConstructor(t.func);try{return await e()}catch(e){return!0}}static getNameOrTitle(e){return this.computeValue(e.name||e.title)}static async downloadFilesAsZip(e){let r=new a;await Promise.all(e.map(e=>(async e=>{var t,n=await(await fetch(e.url)).blob();let i=e.filename;-1===i.indexOf(".")&&(t=(t=e.url.split("."))[t.length-1],e.url.endsWith(t))&&(i+="."+t),r.file(i,n)})(e)));e=await r.generateAsync({type:"blob"});return URL.createObjectURL(e)}static async downloadFile(t,e,n=!1){var i=document.createElement("a");if(i.setAttribute("style","position:absolute; top: -99999px; left: -99999px"),document.body.appendChild(i),n)d.isMobile()||(i.target="_blank"),i.href=t;else try{var r=await(await fetch(t)).blob();i.href=URL.createObjectURL(r)}catch(e){d.isMobile()||(i.target="_blank"),i.href=t,console.error(e)}i.download=e,i.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1})),document.body.removeChild(i)}static addCssStyles(e,t,n){var i=document.createElement("style"),t="style_"+t,e=(i.type="text/css",i.id=t,i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e)),n.querySelectorAllShadow?n.querySelectorAllShadow("style#"+t):n.querySelectorAll("style#"+t));e&&0<e.length&&e.forEach(e=>e.remove()),(n.shadowRoot||n).append(i)}static maybeGet(e){e=e();return null==e?r.Maybe.nothing():r.Maybe.just(e)}}d.instanceGuid=d.guid(),d.CC_SCRIPT_RELATIVE_PATH="Resources/Generated/IframeApi.js",d._timestamp=Date.now(),Object(t.a)([Object(n.b)("JsonVariablesWidgetFetcherService"),Object(t.b)("design:type",Object)],d,"jsonParamsFetcher",void 0)},function(e,t,n){n.d(t,"a",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return a});n(298);function i(t,n){return e=>{if(e.is?t=e.is:e.is=t,!customElements.get(t)){n&&Object.defineProperty(e,"template",{get(){var e=document.createElement("template");return e.innerHTML=n,e}});try{customElements.define(t,e)}catch(e){throw`can't define ${t} `+e}}}}function r(e,t,n){e.constructor.hasOwnProperty("properties")||Object.defineProperty(e.constructor,"properties",{value:{},configurable:!0});var i,n=Object.assign(Object.assign({},e.constructor.properties[t]),n);n.type||((i=window.Reflect)&&i.hasMetadata&&i.getMetadata&&i.hasMetadata("design:type",e,t)?n.type=i.getMetadata("design:type",e,t):console.error(`A type could not be found for ${t}. `+"Set a type or configure Metadata Reflection API support.")),e.constructor.properties[t]=n}function o(n){return(e,t)=>{r(e,t,n)}}function a(...n){return(e,t)=>{e.constructor.hasOwnProperty("observers")||Object.defineProperty(e.constructor,"observers",{value:[]}),e.constructor.observers.push(`${t}(${n.join(",")})`)}}s((e,t)=>e.querySelector(t)),s((e,t)=>e.querySelectorAll(t));function s(i){return n=>(e,t)=>{Object.defineProperty(e,t,{get(){return i(this.shadowRoot,n)},enumerable:!0,configurable:!0})}}},function(e,U,V){!function(e,t,n){var i,r=V(156);let o=Object.prototype.toString,l=Object.getPrototypeOf,a=(i=Object.create(null),e=>{e=o.call(e);return i[e]||(i[e]=e.slice(8,-1).toLowerCase())});var s=t=>(t=t.toLowerCase(),e=>a(e)===t),c=t=>e=>typeof e===t;let u=Array.isArray,h=c("undefined");let d=s("ArrayBuffer");var p=c("string");let f=c("function"),g=c("number"),m=e=>null!==e&&"object"==typeof e;let v=e=>{var t;return"object"===a(e)&&!(null!==(t=l(e))&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)};var c=s("Date"),_=s("File"),y=s("Blob"),b=s("FileList"),A=s("URLSearchParams"),[R,N,D,F]=["ReadableStream","Request","Response","Headers"].map(s);function w(t,n,{allOwnKeys:i=!1}={}){if(null!=t){let e;var r;if("object"!=typeof t&&(t=[t]),u(t))for(e=0,r=t.length;e<r;e++)n.call(null,t[e],e,t);else{var o,a=i?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;for(e=0;e<s;e++)o=a[e],n.call(null,t[o],o,t)}}}function x(e,t){t=t.toLowerCase();var n,i=Object.keys(e);let r=i.length;for(;0<r--;)if(t===(n=i[r]).toLowerCase())return n;return null}let S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e,O=e=>!h(e)&&e!==S;C="undefined"!=typeof Uint8Array&&l(Uint8Array);var C,E,e=e=>C&&e instanceof C,B=s("HTMLFormElement"),T=(E=[Object.prototype.hasOwnProperty][0],(e,t)=>E.call(e,t)),H=s("RegExp");let P=(i,r)=>{var e=Object.getOwnPropertyDescriptors(i);let o={};w(e,(e,t)=>{var n;!1!==(n=r(e,t,i))&&(o[t]=n||e)}),Object.defineProperties(i,o)};var k="abcdefghijklmnopqrstuvwxyz",M="0123456789";let I={DIGIT:M,ALPHA:k,ALPHA_DIGIT:k+k.toUpperCase()+M};var z,j,L,k=s("AsyncFunction"),M=(M="function"==typeof t,z=f(S.postMessage),M?t:z?(j="axios@"+Math.random(),L=[],S.addEventListener("message",({source:e,data:t})=>{e===S&&t===j&&L.length&&L.shift()()},!1),e=>{L.push(e),S.postMessage(j,"*")}):e=>setTimeout(e)),t="undefined"!=typeof queueMicrotask?queueMicrotask.bind(S):void 0!==n&&n.nextTick||M;U.a={isArray:u,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{var t;return e&&("function"==typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=a(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer)},isString:p,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:m,isPlainObject:v,isReadableStream:R,isRequest:N,isResponse:D,isHeaders:F,isUndefined:h,isDate:c,isFile:_,isBlob:y,isRegExp:H,isFunction:f,isStream:e=>m(e)&&f(e.pipe),isURLSearchParams:A,isTypedArray:e,isFileList:b,forEach:w,merge:function n(){let i=(O(this)&&this||{}).caseless,r={};var o=(e,t)=>{t=i&&x(r,t)||t,v(r[t])&&v(e)?r[t]=n(r[t],e):v(e)?r[t]=n({},e):u(e)?r[t]=e.slice():r[t]=e};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&w(arguments[e],o);return r},extend:(n,e,i,{allOwnKeys:t}={})=>(w(e,(e,t)=>{i&&f(e)?n[t]=Object(r.a)(e,i):n[t]=e},{allOwnKeys:t}),n),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>e=65279===e.charCodeAt(0)?e.slice(1):e,inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{var r,o;let a;var s={};if(t=t||{},null!=e)do{for(r=Object.getOwnPropertyNames(e),a=r.length;0<a--;)o=r[a],i&&!i(o,e,t)||s[o]||(t[o]=e[o],s[o]=!0)}while((e=!1!==n&&l(e))&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;e=e.indexOf(t,n);return-1!==e&&e===n},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!g(t))return null;for(var n=new Array(t);0<t--;)n[t]=e[t];return n},forEachEntry:(e,t)=>{for(var n=(e&&e[Symbol.iterator]).call(e);(i=n.next())&&!i.done;){var i=i.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{for(var n,i=[];null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:B,hasOwnProperty:T,hasOwnProp:T,reduceDescriptors:P,freezeMethods:i=>{P(i,(e,t)=>{if(f(i)&&-1!==["arguments","caller","callee"].indexOf(t))return!1;var n=i[t];f(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")}))})},toObjectSet:(e,t)=>{let n={};var i=e=>{e.forEach(e=>{n[e]=!0})};return u(e)?i(e):i(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:x,global:S,isContextDefined:O,ALPHABET:I,generateString:(e=16,t=I.ALPHA_DIGIT)=>{let n="";for(var i=t.length;e--;)n+=t[Math.random()*i|0];return n},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=new Array(10),r=(e,i)=>{if(m(e)){if(0<=t.indexOf(e))return;if(!("toJSON"in e)){t[i]=e;let n=u(e)?[]:{};return w(e,(e,t)=>{e=r(e,i+1);h(e)||(n[t]=e)}),t[i]=void 0,n}}return e};return r(e,0)},isAsyncFn:k,isThenable:e=>e&&(m(e)||f(e))&&f(e.then)&&f(e.catch),setImmediate:M,asap:t}}.call(this,V(53),V(200).setImmediate,V(124))},function(e,t,n){n.d(t,"a",function(){return r});let i=n(100),r=(n(22),function(e){let t;return t="function"==typeof e?e:r.Class(e),e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t});r.Class=i.a},function(e,t,n){n.d(t,"b",function(){return c}),n.d(t,"a",function(){return _});n(22);var i=n(8),o=(n(9),n(150)),r=n(18);
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
function a(e){return"slot"===e.localName}let s=class{static getFlattenedNodes(e){var t=Object(i.a)(e);return a(e)?t.assignedNodes({flatten:!0}):Array.from(t.childNodes).map(e=>a(e)?Object(i.a)(e).assignedNodes({flatten:!0}):[e]).reduce((e,t)=>e.concat(t),[])}constructor(e,t){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=e,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){a(this._target)?this._listenSlots([this._target]):Object(i.a)(this._target).children&&(this._listenSlots(Object(i.a)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,e=>{this._processMutations(e)}):(this._nativeChildrenObserver=new MutationObserver(e=>{this._processMutations(e)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){a(this._target)?this._unlistenSlots([this._target]):Object(i.a)(this._target).children&&(this._unlistenSlots(Object(i.a)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,r.c.run(()=>this.flush()))}_processMutations(e){this._processSlotMutations(e),this.flush()}_processSlotMutations(t){if(t)for(let e=0;e<t.length;e++){var n=t[e];n.addedNodes&&this._listenSlots(n.addedNodes),n.removedNodes&&this._unlistenSlots(n.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;var i={target:this._target,addedNodes:[],removedNodes:[]},n=this.constructor.getFlattenedNodes(this._target),r=Object(o.a)(n,this._effectiveNodes);for(let e=0,n;e<r.length&&(n=r[e]);e++)for(let e=0,t;e<n.removed.length&&(t=n.removed[e]);e++)i.removedNodes.push(t);for(let e=0,t;e<r.length&&(t=r[e]);e++)for(let e=t.index;e<t.index+t.addedCount;e++)i.addedNodes.push(n[e]);this._effectiveNodes=n;let e=!1;return(i.addedNodes.length||i.removedNodes.length)&&(e=!0,this.callback.call(this._target,i)),e}_listenSlots(t){for(let e=0;e<t.length;e++){var n=t[e];a(n)&&n.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(t){for(let e=0;e<t.length;e++){var n=t[e];a(n)&&n.removeEventListener("slotchange",this._boundSchedule)}}};n(41),n(34);
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
t=Element.prototype;let l=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector,c=function(e,t){return l.call(e,t)};class u{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new s(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if(Object(i.a)(this.node).contains(e))return!0;let t=e;for(var n=e.ownerDocument;t&&t!==n&&t!==this.node;)t=Object(i.a)(t).parentNode||Object(i.a)(t).host;return t===this.node}getOwnerRoot(){return Object(i.a)(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?Object(i.a)(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){var e=[];let t=Object(i.a)(this.node).assignedSlot;for(;t;)e.push(t),t=Object(i.a)(t).assignedSlot;return e}importNode(e,t){var n=this.node instanceof Document?this.node:this.node.ownerDocument;return Object(i.a)(n).importNode(e,t)}getEffectiveChildNodes(){return s.getFlattenedNodes(this.node)}queryDistributedElements(i){var r=this.getEffectiveChildNodes(),o=[];for(let e=0,t=r.length,n;e<t&&(n=r[e]);e++)n.nodeType===Node.ELEMENT_NODE&&c(n,i)&&o.push(n);return o}get activeElement(){var e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function h(n,i){for(let t=0;t<i.length;t++){let e=i[t];Object.defineProperty(n,e,{get:function(){return this.node[e]},configurable:!0})}}class d{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u;let p=u;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class y extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(u.prototype).forEach(e=>{"activeElement"!=e&&(y.prototype[e]=u.prototype[e])}),h(y.prototype,["classList"]),p=y,Object.defineProperties(d.prototype,{localTarget:{get(){var e=this.event.currentTarget,t=e&&_(e).getOwnerRoot(),n=this.path;for(let e=0;e<n.length;e++){var i=n[e];if(_(i).getOwnerRoot()===t)return i}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else{var f=u.prototype,g=["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll"];for(let t=0;t<g.length;t++){let e=g[t];f[e]=function(){return this.node[e].apply(this.node,arguments)}}h(u.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList"]);var m=u.prototype,v=["textContent","innerHTML","className"];for(let e=0;e<v.length;e++){let t=v[e];Object.defineProperty(m,t,{get:function(){return this.node[t]},set:function(e){this.node[t]=e},configurable:!0})}}p;let _=function(e){if((e=e||document)instanceof p)return e;if(e instanceof d)return e;let t=e.__domApi;return t||(t=new(e instanceof Event?d:p)(e),e.__domApi=t),t}},function(e,t,n){n.d(t,"b",function(){return E.a}),n.d(t,"a",function(){return T});var t=n(84),i=(n(4),n(192),n(22),n(85)),r=n(70),o=n(153),a=n(9),s=n(8),l=n(101),o=Object(o.a)(Object(r.b)(Object(i.a)(HTMLElement)));class c extends o{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),a.m)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,n,i){this.mutableData=!0}connectedCallback(){Object(l.a)()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){Object(s.a)(Object(s.a)(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])}render(){let t;if(!this.__children){if(!(t=t||this.querySelector("template"))){let e=new MutationObserver(()=>{if(!(t=this.querySelector("template")))throw new Error("dom-bind requires a <template> child");e.disconnect(),this.render()});return void e.observe(this,{childList:!0})}this.root=this._stampTemplate(t),this.$=this.root.$,this.__children=[];for(let e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}customElements.get("dom-bind")||customElements.define("dom-bind",c);n(295);var r=n(51),u=n(34),h=n(41),d=n(18),p=n(10),f=n(59);
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
class g extends r.a{static get is(){return"dom-if"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}constructor(){super(),this.__renderDebouncer=null,this._lastIf=!1,this.__hideTemplateChildren__=!1,this.__template,this._templateInfo}__debounceRender(){this.__renderDebouncer=u.a.debounce(this.__renderDebouncer,d.c,()=>this.__render()),Object(h.a)(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();var e=Object(s.a)(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||Object(s.a)(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),Object(l.a)()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){var e=this._templateInfo?this:Object(s.a)(this).querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!Object(s.a)(this).querySelector("template"))throw new Error("dom-if requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}this.__template=e}return!0}__ensureInstance(){var n=Object(s.a)(this).parentNode;if(this.__hasInstance()){var i=this.__getInstanceNodes();if(i&&i.length)if(Object(s.a)(this).previousSibling!==i[i.length-1])for(let e=0,t;e<i.length&&(t=i[e]);e++)Object(s.a)(n).insertBefore(t,this)}else{if(!n)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(n)}return!0}render(){Object(h.b)()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),a.o&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}__hasInstance(){}__getInstanceNodes(){}__createAndInsertInstance(e){}__teardownInstance(){}_showHideChildren(){}}class m extends g{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){var t=this.__dataHost||this;if(a.m&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");var n=t._bindTemplate(this.__template,!0);n.runEffects=(e,t,n)=>{let i=this.__syncInfo;if(this.if)i&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(i.changedProps,t)),e(t,n);else if(this.__instance)if(i=i||(this.__syncInfo={runEffects:e,changedProps:{}}),n)for(var r in t){r=Object(p.g)(r);i.changedProps[r]=this.__dataHost[r]}else Object.assign(i.changedProps,t)},this.__instance=t._stampTemplate(this.__template,n),Object(s.a)(e).insertBefore(this.__instance,this)}__syncHostProperties(){var e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))}__teardownInstance(){var e=this.__dataHost||this;this.__instance&&(e._removeBoundDom(this.__instance),this.__instance=null,this.__syncInfo=null)}_showHideChildren(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,Object(f.b)(e,this.__instance.templateInfo.childNodes)),e||this.__syncHostProperties()}}class v extends g{constructor(){super(),this.__ctor=null,this.__instance=null,this.__invalidProps=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.children}__createAndInsertInstance(e){this.__ctor||(this.__ctor=Object(f.c)(this.__template,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Object(p.g)(e)]=!0))}})),this.__instance=new this.__ctor,Object(s.a)(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){var n=this.__instance.children;if(n&&n.length){var i=Object(s.a)(n[0]).parentNode;if(i){i=Object(s.a)(i);for(let e=0,t;e<n.length&&(t=n[e]);e++)i.removeChild(t)}}this.__invalidProps=null,this.__instance=null}}__syncHostProperties(){var e=this.__invalidProps;if(e){for(var t in this.__invalidProps=null,e)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}}_showHideChildren(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,this.__instance._showHideChildren(e)),e||this.__syncHostProperties()}}var i=a.c?m:v,o=(customElements.get("dom-if")||customElements.define(i.is,i),n(23)),_=n(150),y=n(58),i=Object(o.a)(e=>{e=Object(y.a)(e);class t extends e{static get properties(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}static get observers(){return["__updateSelection(multi, items.*)"]}constructor(){super(),this.__lastItems=null,this.__lastMulti=null,this.__selectedMap=null}__updateSelection(e,t){var n,i,r=t.path;r==JSCompiler_renameProperty("items",this)?(i=t.base||[],n=this.__lastItems,e!==this.__lastMulti&&this.clearSelection(),n&&(n=Object(_.a)(i,n),this.__applySplices(n)),this.__lastItems=i,this.__lastMulti=e):t.path==JSCompiler_renameProperty("items",this)+".splices"?this.__applySplices(t.value.indexSplices):(n=r.slice((JSCompiler_renameProperty("items",this)+".").length),i=parseInt(n,10),n.indexOf(".")<0&&n==i&&this.__deselectChangedIdx(i))}__applySplices(t){let i=this.__selectedMap;for(let e=0;e<t.length;e++){let n=t[e];i.forEach((e,t)=>{e<n.index||(e>=n.index+n.removed.length?i.set(t,e+n.addedCount-n.removed.length):i.set(t,-1))});for(let e=0;e<n.addedCount;e++){var r=n.index+e;i.has(this.items[r])&&i.set(this.items[r],r)}}this.__updateLinks();let n=0;i.forEach((e,t)=>{e<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),n,1):this.selected=this.selectedItem=null,i.delete(t)):n++})}__updateLinks(){if(this.__dataLinkedPaths={},this.multi){let t=0;this.__selectedMap.forEach(e=>{0<=e&&this.linkPaths(JSCompiler_renameProperty("items",this)+"."+e,JSCompiler_renameProperty("selected",this)+"."+t++)})}else this.__selectedMap.forEach(e=>{this.linkPaths(JSCompiler_renameProperty("selected",this),JSCompiler_renameProperty("items",this)+"."+e),this.linkPaths(JSCompiler_renameProperty("selectedItem",this),JSCompiler_renameProperty("items",this)+"."+e)})}clearSelection(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}isSelected(e){return this.__selectedMap.has(e)}isIndexSelected(e){return this.isSelected(this.items[e])}__deselectChangedIdx(e){let i=this.__selectedIndexForItemIndex(e);if(0<=i){let n=0;this.__selectedMap.forEach((e,t)=>{i==n++&&this.deselect(t)})}}__selectedIndexForItemIndex(e){e=this.__dataLinkedPaths[JSCompiler_renameProperty("items",this)+"."+e];if(e)return parseInt(e.slice((JSCompiler_renameProperty("selected",this)+".").length),10)}deselect(t){var n=this.__selectedMap.get(t);if(0<=n){this.__selectedMap.delete(t);let e;this.multi&&(e=this.__selectedIndexForItemIndex(n)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),e,1):this.selected=this.selectedItem=null}}deselectIndex(e){this.deselect(this.items[e])}select(e){this.selectIndex(this.items.indexOf(e))}selectIndex(e){var t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),t):this.selected=this.selectedItem=t)}}return t})(r.a);class b extends i{static get is(){return"array-selector"}static get template(){return null}}customElements.get("array-selector")||customElements.define(b.is,b);var o=n(195),A=n(72),r=n(29);
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
let w=new o.a;window.ShadyCSS||(window.ShadyCSS={prepareTemplate(e,t,n){},prepareTemplateDom(e,t){},prepareTemplateStyles(e,t,n){},styleSubtree(e,t){w.processStyles(),Object(A.c)(e,t)},styleElement(e){w.processStyles()},styleDocument(e){w.processStyles(),Object(A.c)(document.body,e)},getComputedStyleValue(e,t){return Object(A.b)(e,t)},flushCustomStyles(){},nativeCss:r.c,nativeShadow:r.d,cssBuild:r.a,disableRuntime:r.b}),window.ShadyCSS.CustomStyleInterface=w;var x=n(117);
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/let S="include",O=window.ShadyCSS.CustomStyleInterface;class C extends HTMLElement{constructor(){super(),this._style=null,O.addCustomStyle(this)}getStyle(){if(!this._style){var e=this.querySelector("style");if(!e)return null;var t=(this._style=e).getAttribute(S);t&&(e.removeAttribute(S),e.textContent=Object(x.a)(t)+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this)}return this._style}}customElements.get("custom-style")||window.customElements.define("custom-style",C);n(193);var E=n(7);
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
let T=Object(t.a)(HTMLElement).prototype},function(e,t,n){n.d(t,"a",function(){return i});n(22);
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/function r(e){if(!1)return e.value;throw new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}let i=function(i,...e){var t=document.createElement("template");return t.innerHTML=e.reduce((e,t,n)=>e+(e=>{if(e instanceof HTMLTemplateElement)return e.innerHTML;if(!1)return r(e);throw new Error("non-template value passed to Polymer's html function: "+e)})(t)+i[n+1],i[0]),t}},function(e,t,n){n.d(t,"a",function(){return i});
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
let i=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e},function(e,t,n){n.d(t,"r",function(){return r}),n.d(t,"n",function(){return o}),n.d(t,"k",function(){return a}),n.d(t,"l",function(){return s}),n.d(t,"i",function(){return l}),n.d(t,"m",function(){return c}),n.d(t,"a",function(){return u}),n.d(t,"e",function(){return h}),n.d(t,"g",function(){return d}),n.d(t,"p",function(){return p}),n.d(t,"f",function(){return f}),n.d(t,"h",function(){return g}),n.d(t,"b",function(){return m}),n.d(t,"j",function(){return v}),n.d(t,"c",function(){return _}),n.d(t,"o",function(){return y}),n.d(t,"d",function(){return b}),n.d(t,"q",function(){return A});n(22);let i=n(35),r=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),window.customElements.polyfillWrapFlushCallback;let o=r&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{var e=new CSSStyleSheet,t=(e.replaceSync(""),document.createElement("div"));return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})(),a=window.Polymer&&window.Polymer.rootPath||Object(i.a)(document.baseURI||window.location.href);let s=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;let l=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1;let c=window.Polymer&&window.Polymer.strictTemplatePolicy||!1;let u=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1;let h=window.Polymer&&window.Polymer.legacyOptimizations||!1;let d=window.Polymer&&window.Polymer.legacyWarnings||!1;let p=window.Polymer&&window.Polymer.syncInitialRender||!1;let f=window.Polymer&&window.Polymer.legacyUndefined||!1;let g=window.Polymer&&window.Polymer.orderedComputed||!1;let m=!0;let v=window.Polymer&&window.Polymer.removeNestedTemplates||!1;let _=window.Polymer&&window.Polymer.fastDomIf||!1;let y=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;let b=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1;le