UNPKG

@aurigma/ui-framework

Version:

A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.

46 lines (44 loc) 1.85 MB
(s=>{function e(e){for(var t,n,r=e[0],o=e[1],i=0,a=[];i<r.length;i++)n=r[i],Object.prototype.hasOwnProperty.call(l,n)&&l[n]&&a.push(l[n][0]),l[n]=0;for(t in o)Object.prototype.hasOwnProperty.call(o,t)&&(s[t]=o[t]);for(d&&d(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(r){var e,o,i,t,a,n=[],s=l[r];return 0!==s&&(s?n.push(s[2]):(e=new Promise(function(e,t){s=l[r]=[e,t]}),n.push(s[2]=e),(o=document.createElement("script")).charset="utf-8",o.timeout=120,u.nc&&o.setAttribute("nonce",u.nc),o.src=c(r),i=new Error,t=function(e){o.onerror=o.onload=null,clearTimeout(a);var t,n=l[r];0!==n&&(n&&(t=e&&("load"===e.type?"missing":e.type),e=e&&e.target&&e.target.src,i.message="Loading chunk "+r+" failed.\n("+t+": "+e+")",i.name="ChunkLoadError",i.type=t,i.request=e,n[1](i)),l[r]=void 0)},a=setTimeout(function(){t({type:"timeout",target:o})},12e4),o.onerror=o.onload=t,document.head.appendChild(o))),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 r in t)u.d(n,r,function(e){return t[e]}.bind(null,r));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/es5/",u.oe=function(e){throw console.error(e),e};var r=(o=window.multistep_editor_jsonpFunction=window.multistep_editor_jsonpFunction||[]).push.bind(o);o.push=e;for(var o=o.slice(),i=0;i<o.length;i++)e(o[i]);var d=r;u(u.s=296)})([function(e,t,n){n.d(t,"d",function(){return o}),n.d(t,"a",function(){return i}),n.d(t,"i",function(){return a}),n.d(t,"c",function(){return s}),n.d(t,"g",function(){return l}),n.d(t,"b",function(){return c}),n.d(t,"e",function(){return u}),n.d(t,"k",function(){return d}),n.d(t,"h",function(){return p}),n.d(t,"j",function(){return h}),n.d(t,"f",function(){return f}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function s(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;0<=s;s--)(o=e[s])&&(a=(i<3?o(a):3<i?o(t,n,a):o(t,n))||a);return 3<i&&a&&Object.defineProperty(t,n,a),a}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{i(l.next(e))}catch(e){t(e)}}function o(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}i((l=l.apply(e,a||[])).next())})}function u(r,o){var i,a,s,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return l.label++,{value:t[1],done:!1};case 5:l.label++,a=t[1],t=[0];continue;case 7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(s=0<(s=l.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3]))l.label=t[1];else if(6===t[0]&&l.label<s[1])l.label=s[1],s=t;else{if(!(s&&l.label<s[2])){s[2]&&l.ops.pop(),l.trys.pop();continue}l.label=s[2],l.ops.push(t)}}t=o.call(r,l)}catch(e){t=[6,e],a=0}finally{i=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}Object.create;function d(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function h(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function f(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}},function(e,t,n){n.d(t,"a",function(){return d});var v=n(0),c=n(102),o=n(14),a=n(265),r=n(37);function i(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{i(l.next(e))}catch(e){t(e)}}function o(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}i((l=l.apply(e,a||[])).next())})}function s(r,o){var i,a,s,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return l.label++,{value:t[1],done:!1};case 5:l.label++,a=t[1],t=[0];continue;case 7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(s=0<(s=l.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3]))l.label=t[1];else if(6===t[0]&&l.label<s[1])l.label=s[1],s=t;else{if(!(s&&l.label<s[2])){s[2]&&l.ops.pop(),l.trys.pop();continue}l.label=s[2],l.ops.push(t)}}t=o.call(r,l)}catch(e){t=[6,e],a=0}finally{i=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}function l(){}l._appendToHead=function(e){document.getElementsByTagName("head")[0].appendChild(e)},l._attachEventHandlers=function(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)})},l.initWebComponentsReadyPromise=function(){var t=window;return t.webComponentsReadyPromise||(t.webComponentsReadyPromise=new Promise(function(e){return t.WebComponents?setTimeout(function(){e(!0)}):document.addEventListener("WebComponentsReady",function(){e(!0)})})),t.webComponentsReadyPromise},l.loadScript=function(e,t,n,r){e.toLowerCase().endsWith("au.editor.js")&&null!=(o=window.Aurigma)&&o.UIFramework&&n();var o=document.createElement("script");o.id=t,o.type="text/javascript",this._attachEventHandlers(o,n,r),this._appendToHead(o),o.src=e},l.loadScriptAsync=function(n,r){return i(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,new Promise(function(e,t){l.loadScript(n,r,e,t)})];case 1:return[2,e.sent()]}})})},l.loadLink=function(e,t,n,r,o){var i=document.createElement("link");i.type=t||"",i.rel=n,this._attachEventHandlers(i,r,o),this._appendToHead(i),i.href=e},l.loadLinkAsync=function(n,r,o){return i(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,new Promise(function(e,t){l.loadLink(n,r,o,e,t)})];case 1:return[2,e.sent()]}})})},l.loadHtml=function(e,n,r,o){void 0===n&&(n=function(){}),void 0===r&&(r=function(){}),void 0===o&&(o=!0);var t=new XMLHttpRequest;t.onload=function(){var e,t;200<=this.status&&this.status<=300?(o&&(e=this.response,(t=document.createElement("template")).setAttribute("style","display: none;"),t.innerHTML=e,document.head.appendChild(t.content)),n&&n(this.response)):r&&r(this.response)},t.onerror=function(){r&&r()},t.open("get",e,!0),t.send()},l.loadHtmlAsync=function(n,r){return void 0===r&&(r=!0),i(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,new Promise(function(e,t){l.loadHtml(n,e,t,r)})];case 1:return[2,e.sent()]}})})},l.loadJson=function(r){return new Promise(function(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",r,!0),n.send()})},l.load=function(e,t,n,r){var o=this.addTimestampToUrl(e);if(/\.js$/gi.test(e))this.loadScript(e,"",t,n);else if(/\.css$|\.scss$|\.less$/gi.test(e))this.loadLink(r?e:o,"text/css","stylesheet",t,n);else{if(!/\.html$|\.htm$/gi.test(e))throw"bad url: "+e;this.loadHtml(r?e:o,t,n)}},l.loadAsync=function(n,r){return i(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,new Promise(function(e,t){l.load(n,e,t,r)})];case 1:return[2,e.sent()]}})})},l.appendLoadAnimation=function(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='\n <div style="'.concat(n.join(";"),'">\n <au-preloader style="position: relative !important; z-index: 601;" message="').concat(t,'"></au-preloader>\n <div style="').concat(n.join(";"),'">\n <span style="top: 32px;position: relative;">').concat(t,"</span>\n </div>\n </div>"),e.firstElementChild}catch(e){throw"Failed to attach loader element"}},l.toggleLoadAnimation=function(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")}},l.concatAndResolveUrl=function(e,t){return e.replace(/\/$/,"")+"/"+t.replace(/^\//,"")},l.addTimestampToUrl=function(e){return e+(-1===e.indexOf("?")?"?":"&")+"t="+Date.now()};var u=l,t=n(46),d=(p.DeepMerge=function(r,o){function i(e){return e&&"object"==typeof e}return i(r)&&i(o)?(Object.keys(o).forEach(function(e){var t=r[e],n=o[e];(!Array.isArray(t)||!Array.isArray(n))&&i(t)&&i(n)?r[e]=p.DeepMerge(Object.assign({},t),n):r[e]=n}),r):o},p.propertyEnsure=function(e,t,n){return p.isNullOrUndefined(e[t])?e[t]=n:e[t]},p.valueEnsure=function(e,t){return p.isNullOrUndefined(e)?t:e},p.valueEnsureMerge=function(e,t){e=this.valueEnsure(e,t);return Object.assign(t,e)},p.isNullOrUndefined=function(e){return p.isNull(e)||p.isUndefined(e)},p.isUndefined=function(e){return p.typeofCheck(e,"undefined")},p.isNotUndefined=function(e){return!p.isUndefined(e)},p.isNull=function(e){return null===e},p.isNotNullOrUndefined=function(e){return!p.isNullOrUndefined(e)},p.isLengthEqual=function(e,t){return p.isNotNullOrUndefined(e)&&p.isNotNullOrUndefined(t)&&e.length===t.length},p.isEmptyStrOrArray=function(e){return!!p.isNullOrUndefined(e)||0===e.length},p.isEmptyString=function(e){return p.isEmptyStrOrArray(e)},p.isEmptyArray=function(e){return p.isEmptyStrOrArray(e)},p.isNotEmptyArray=function(e){return!p.isEmptyArray(e)},p.clone=function(e){return Object.assign({},e)},p.objectDeepValue=function(e,t){if(p.isObject(e)){for(var n=0,r=(t=t.replace(/\[([^\]]+)\]/gi,".$1").split(".")).length;n<r;n++)if(e=e[e instanceof Array?+t[n]:t[n]],p.isUndefined(e))return null;return e}return null},p.isObjectNotEmpty=function(e){return p.isNotNullOrUndefined(e)&&0<Object.keys(e).length},p.isObject=function(e){return!(!e||"object"!=typeof e||e instanceof Array)},p.isString=function(e){return"string"==typeof e},p.arrayDiffByName=function(e,t){return p.arrayDiff(e,t,function(e,t){return e.name===t.name},function(e,t){return JSON.stringify(e)!==JSON.stringify(t)})},p.arrayDiff=function(n,r,o,i){void 0===o&&(o=function(e,t){return e===t}),void 0===i&&(i=function(e,t){return!1});var a=[],s=[],l=[],c=[],u=[],d=(n.forEach(function(t){var e=r.find(function(e){return o(t,e)});(p.isNotUndefined(e)?l:s).push(t)}),r.forEach(function(t){var e=n.find(function(e){return o(e,t)});p.isUndefined(e)&&a.push(t)}),[]);return l.forEach(function(t,e){e!==(n=r.indexOf(t))&&-1!==n&&u.push({from:e,to:n,item:t});var n=r.find(function(e){return o(t,e)&&i(t,e)});p.isNotUndefined(n)&&(d.push(e),c.push(t))}),d.forEach(function(e){l.splice(e,1)}),{added:a,removed:s,updated:c,noChange:l,indexChanged:u}},p.JSONStringifyQuotes=function(e){return JSON.stringify(e).replace(/['"]+/gi,"")},p.objectEquals=function(e,t){return p.JSONStringifyQuotes(e)===p.JSONStringifyQuotes(t)},p.tryParseJson=function(t){try{return JSON.parse(t)}catch(e){return t}},p.typeofCheck=function(e,t){return typeof e===t},p.createTemplateDocument=function(e){var t=document.createElement("template");return t.innerHTML=e,t.content},p.createNodeFromString=function(e){return p.createTemplateDocument(e).firstChild.cloneNode(!0)},p.trimAndLowerString=function(e){return e?e.replace(/\s+/g,"").toLocaleLowerCase():null},p.isFunction=function(e){var t={}.toString.call(e);return e&&("[object Function]"===t||"[object AsyncFunction]"===t)},p.isPromise=function(e){return e&&"[object Promise]"===Object.prototype.toString.call(e)},p.isAsyncFunction=function(e){return!!(e&&e.constructor&&e.constructor.name)&&"AsyncFunction"===e.constructor.name},p.recursiveJob=function(t,n,e,r){void 0===e&&(e=null),0===t.length?r(e):n(t.shift(),e).then(function(e){p.recursiveJob(t,n,e,r)}).catch(function(e){r(null,e)})},p.recursiveJobPromise=function(e,t){var o=Array.prototype.slice.call(e);return new Promise(function(n,r){p.recursiveJob(o,t,null,function(e,t){t?r(t):n(e)})})},p.functionWrapperConstructor=function(r){var o=this;switch(!0){case Array.isArray(r):return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return p.recursiveJobPromise(r,function(e,t){return Promise.resolve(e.apply(o.jsonParamsFetcher.scope,0===r.indexOf(e)?n:[t]))})};case this.isFunction(r):return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.apply(o.jsonParamsFetcher.scope,e)};default:return function(e){return Promise.resolve()}}},p.objectPropertyFind=function(e,r){function o(e){switch(!0){case Array.isArray(e):for(var t=0;t<e.length&&!i;t++)o(e[t]);break;case e instanceof Object:for(var n=Object.keys(e),t=0;t<n.length&&!i;t++)o(n[t]),o(e[n[t]]);break;default:r(e)&&(i=!0)}}var i=!1;return o(e),i},p.isNum=function(e){return/^\d+$/.test(e)},p.addTimestampToURL=function(e,t){var n;if(void 0===t&&(t=!0),p.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},p.findDataInResponse=function(e,t){try{p.isEmptyString(t)&&(t="response");var n=p.tryParseJson(e);return p.typeofCheck(n,"string")?n:new Function("response","return ".concat(t))(n)}catch(e){console.error(e.message,e.stack)}return""},p.guid=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},p.getPatchedUrl=function(e){return window.patchAurigmaEditorUrl("EDITOR_BASE_PATH".concat(e))},p.__setAuWizard=function(e){p.__auWizard=e},p.getWizardElement=function(){return p.__auWizard||document.querySelector("au-wizard")},p.loadJson=function(r){return r.toLowerCase().startsWith("https://")||r.toLowerCase().startsWith("http://")||(r=this.getPatchedUrl(r)),new Promise(function(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",r,!0),n.send()})},p.cloneFromDriver=function(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},p.sessionGuid=function(){return this._timestamp.toString()},p.getOrDefault=function(e,t){try{var n=p.jsonParamsFetcher.scope,r=Object.keys(n),o=Object.values(n),i=new Function(r.join(","),"return ".concat(e,";")).apply(n,o);return void 0===i||"undefined"===i?t:i}catch(e){return t}},p.isNullableArray=function(e){return e.every(function(e){return null===e})},p.isEmptyObject=function(e){return null==e||0===Object.keys(e).length||""===e},p.isSafari=function(){var e=navigator.userAgent.toLowerCase();return 0<e.search(/safari/)&&-1===e.search(/chrome/)},p.getBrowser=function(){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"}},p.findParent=function(e,t){if(!e)return null;for(var n=e,r=null,o=!0;o;)(r=n.parentNode||n.host)?(t(r)&&(o=!1),n=r):o=!1;return r},p.IsTrue=function(e){return!0===e||"true"===e},p.readFromLocalStorage=function(e){return localStorage.getItem(e)},p.writeToLocalStorage=function(e,t){p.isObject(t)||Array.isArray(t)?localStorage.setItem(e,JSON.stringify(t)):localStorage.setItem(e,t)},p.setTimeoutWrapper=function(r,o,i){return Object(v.b)(this,void 0,void 0,function(){var t,n;return Object(v.e)(this,function(e){switch(e.label){case 0:t=function(){return new Promise(function(e){setTimeout(function(){e()},o)})},n=0,e.label=1;case 1:return n<i?[4,t()]:[3,4];case 2:e.sent(),e.label=3;case 3:return n++,[3,1];case 4:return[2,r()]}})})},p.getDocumentCustomStyles=function(){var e=(e=>{void 0===e&&(e=document.styleSheets);var t,n,r,o,i,a,s=[];try{for(var l=Object(v.k)(Array.from(e)),c=l.next();!c.done;c=l.next()){var u=c.value;try{try{r=void 0;for(var d=Object(v.k)(Array.from(u.cssRules)),p=d.next();!p.done;p=d.next()){var h=p.value;try{try{i=void 0;for(var f=Object(v.k)(Array.from(h.style)),m=f.next();!m.done;m=f.next()){var g=m.value;(g.startsWith("--au")||g.startsWith("--theme"))&&-1===s.indexOf(g)&&s.push(g)}}catch(e){i={error:e}}finally{try{m&&!m.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}}catch(e){}}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}catch(e){}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return s})(),t=document.documentElement,n=void 0;void 0===t&&(t=document.body),void 0===n&&(n=void 0);var r,o,i=window.getComputedStyle(t,n),a={};try{for(var s=Object(v.k)(e),l=s.next();!l.done;l=s.next()){var c=l.value,u=i.getPropertyValue(c);u&&(a[c]=u)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return a},p.loadHtml=function(r){return Object(v.b)(this,void 0,void 0,function(){return Object(v.e)(this,function(e){return[2,new Promise(function(t,n){u.loadHtml(r,function(e){return t(e)},function(e){return n(e)},!1)})]})})},p.containsAll=function(e,t){var n,r,o=[],i=!0;try{for(var a=Object(v.k)(t),s=a.next();!s.done;s=a.next()){var l=s.value;-1===e.indexOf(l)&&(i=!1,o.push(l))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return new c.a(i,o)},p.objectUndefinedFind=function(e,o){function i(e,t){switch(!0){case Array.isArray(e):for(var n=0;n<e.length;n++)i(e[n]);break;case e instanceof Object:for(var r=Object.keys(e),n=0;n<r.length;n++)i(r[n]),i(e[r[n]]);break;default:o(e)&&a.push(e)}}var a=[];return i(e),a},p.undefinedCriterion=function(e){return void 0===e||"undefined"===e||"string"==typeof e&&-1<e.indexOf("undefined")},p.strAndTruncate=function(e){return JSON.stringify(e).replace(/['"]+/gi,"")},p.ensureArray=function(e){return Array.isArray(e)?e:null!=e?[e]:[]},p.ensureStartsWith=function(e,t){return e.startsWith(t)?e:t+e},p.ensureEndsWith=function(e,t){return e.endsWith(t)?e:e+t},p.removeTrailingSlash=function(e){return e.endsWith("/")?e.slice(0,-1):e},p.isNullOrEmptyString=function(e){return null==e||""===e||"string"==typeof e&&""===e.trim()},p.parseJwt=function(e){e=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),e=decodeURIComponent(atob(e).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(e)},p.deepSearch=function(e,t,n){if(null!=e){if(e.hasOwnProperty(t)&&!0===n(t,e[t]))return e;for(var r=Object.keys(e),o=0;o<r.length;o++){var i=e[r[o]];if("object"==typeof i&&null!=i){i=p.deepSearch(e[r[o]],t,n);if(null!==i)return i}}}return null},p.isMobile=function(){return window.innerWidth<769},p.executeTimeout=function(t,e){e.forEach(function(e){return setTimeout(t,e)})},p.applyMixins=function(n,e){e.forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(e){"constructor"!==e&&(n.prototype[e]=t.prototype[e])})})},p.openFullscreen=function(e){e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},p.closeFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},p.getSafeName=function(e){var t="",t="string"==typeof e?e:e.title||e.name;return(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)})},p.computeValue=function(e){var t,n;return-1!==e.indexOf("{{")&&-1!==e.indexOf("}}")?(t=new o.a,(n={value:e,vars:this.jsonParamsFetcher.head})[o.a.SCOPE_HEAD_KEY]=this.jsonParamsFetcher.head,t.process(n,this.jsonParamsFetcher.scope).value):e},p.computeFunction=function(r){return Object(v.b)(this,void 0,void 0,function(){var t,n;return Object(v.e)(this,function(e){switch(e.label){case 0:t=new o.a,n={func:r,vars:this.jsonParamsFetcher.head},t=t.process(n,this.jsonParamsFetcher.scope),n=p.functionWrapperConstructor(t.func),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,n()];case 2:return[2,e.sent()];case 3:return e.sent(),[2,!0];case 4:return[2]}})})},p.getNameOrTitle=function(e){return this.computeValue(e.name||e.title)},p.downloadFilesAsZip=function(r){return Object(v.b)(this,void 0,void 0,function(){var i,t,n;return Object(v.e)(this,function(e){switch(e.label){case 0:return i=new a,t=function(o){return Object(v.b)(this,void 0,void 0,function(){var t,n,r;return Object(v.e)(this,function(e){switch(e.label){case 0:return[4,fetch(o.url)];case 1:return[4,e.sent().blob()];case 2:return t=e.sent(),-1===(n=o.filename).indexOf(".")&&(r=o.url.split("."),r=r[r.length-1],o.url.endsWith(r))&&(n+="."+r),i.file(n,t),[2]}})})},[4,Promise.all(r.map(function(e){return t(e)}))];case 1:return e.sent(),[4,i.generateAsync({type:"blob"})];case 2:return n=e.sent(),[2,URL.createObjectURL(n)]}})})},p.downloadFile=function(r,o,i){return void 0===i&&(i=!1),Object(v.b)(this,void 0,void 0,function(){var t,n;return Object(v.e)(this,function(e){switch(e.label){case 0:return((t=document.createElement("a")).setAttribute("style","position:absolute; top: -99999px; left: -99999px"),document.body.appendChild(t),i)?(p.isMobile()||(t.target="_blank"),t.href=r,[3,5]):[3,1];case 1:return e.trys.push([1,4,,5]),[4,fetch(r)];case 2:return[4,e.sent().blob()];case 3:return n=e.sent(),t.href=URL.createObjectURL(n),[3,5];case 4:return n=e.sent(),p.isMobile()||(t.target="_blank"),t.href=r,console.error(n),[3,5];case 5:return t.download=o,t.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1})),document.body.removeChild(t),[2]}})})},p.addCssStyles=function(e,t,n){var r=document.createElement("style"),t="style_"+t,e=(r.type="text/css",r.id=t,r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e)),n.querySelectorAllShadow?n.querySelectorAllShadow("style#"+t):n.querySelectorAll("style#"+t));e&&0<e.length&&e.forEach(function(e){return e.remove()}),(n.shadowRoot||n).append(r)},p.maybeGet=function(e){e=e();return null==e?r.Maybe.nothing():r.Maybe.just(e)},p.instanceGuid=p.guid(),p.CC_SCRIPT_RELATIVE_PATH="Resources/Generated/IframeApi.js",p._timestamp=Date.now(),Object(v.c)([Object(t.b)("JsonVariablesWidgetFetcherService"),Object(v.g)("design:type",Object)],p,"jsonParamsFetcher",void 0),p);function p(){}},function(e,t,n){n.d(t,"a",function(){return r}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return s});var o=n(0);n(298);function r(t,n){return function(e){if(e.is?t=e.is:e.is=t,!customElements.get(t)){n&&Object.defineProperty(e,"template",{get:function(){var e=document.createElement("template");return e.innerHTML=n,e}});try{customElements.define(t,e)}catch(e){throw"can't define ".concat(t," ").concat(e)}}}}function i(e,t,n){e.constructor.hasOwnProperty("properties")||Object.defineProperty(e.constructor,"properties",{value:{},configurable:!0});var r,n=Object(o.a)(Object(o.a)({},e.constructor.properties[t]),n);n.type||((r=window.Reflect)&&r.hasMetadata&&r.getMetadata&&r.hasMetadata("design:type",e,t)?n.type=r.getMetadata("design:type",e,t):console.error("A type could not be found for ".concat(t,". ")+"Set a type or configure Metadata Reflection API support.")),e.constructor.properties[t]=n}function a(n){return function(e,t){i(e,t,n)}}function s(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return function(e,t){e.constructor.hasOwnProperty("observers")||Object.defineProperty(e.constructor,"observers",{value:[]}),e.constructor.observers.push("".concat(t,"(").concat(n.join(","),")"))}}l(function(e,t){return e.querySelector(t)}),l(function(e,t){return e.querySelectorAll(t)});function l(r){return function(n){return function(e,t){Object.defineProperty(e,t,{get:function(){return r(this.shadowRoot,n)},enumerable:!0,configurable:!0})}}}},function(e,H,V){!function(e,t,n){var r,o=V(156);let i=Object.prototype.toString,l=Object.getPrototypeOf,a=(r=Object.create(null),e=>{e=i.call(e);return r[e]||(r[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,d=c("undefined");let p=s("ArrayBuffer");var h=c("string");let f=c("function"),m=c("number"),g=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"),y=s("File"),_=s("Blob"),b=s("FileList"),A=s("URLSearchParams"),[L,N,D,F]=["ReadableStream","Request","Response","Headers"].map(s);function w(t,n,{allOwnKeys:r=!1}={}){if(null!=t){let e;var o;if("object"!=typeof t&&(t=[t]),u(t))for(e=0,o=t.length;e<o;e++)n.call(null,t[e],e,t);else{var i,a=r?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;for(e=0;e<s;e++)i=a[e],n.call(null,t[i],i,t)}}}function O(e,t){t=t.toLowerCase();var n,r=Object.keys(e);let o=r.length;for(;0<o--;)if(t===(n=r[o]).toLowerCase())return n;return null}let x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e,C=e=>!d(e)&&e!==x;S="undefined"!=typeof Uint8Array&&l(Uint8Array);var S,E,e=e=>S&&e instanceof S,U=s("HTMLFormElement"),T=(E=[Object.prototype.hasOwnProperty][0],(e,t)=>E.call(e,t)),B=s("RegExp");let P=(r,o)=>{var e=Object.getOwnPropertyDescriptors(r);let i={};w(e,(e,t)=>{var n;!1!==(n=o(e,t,r))&&(i[t]=n||e)}),Object.defineProperties(r,i)};var I="abcdefghijklmnopqrstuvwxyz",k="0123456789";let j={DIGIT:k,ALPHA:I,ALPHA_DIGIT:I+I.toUpperCase()+k};var M,R,z,I=s("AsyncFunction"),k=(k="function"==typeof t,M=f(x.postMessage),k?t:M?(R="axios@"+Math.random(),z=[],x.addEventListener("message",({source:e,data:t})=>{e===x&&t===R&&z.length&&z.shift()()},!1),e=>{z.push(e),x.postMessage(R,"*")}):e=>setTimeout(e)),t="undefined"!=typeof queueMicrotask?queueMicrotask.bind(x):void 0!==n&&n.nextTick||k;H.a={isArray:u,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(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&&p(e.buffer)},isString:h,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:v,isReadableStream:L,isRequest:N,isResponse:D,isHeaders:F,isUndefined:d,isDate:c,isFile:y,isBlob:_,isRegExp:B,isFunction:f,isStream:e=>g(e)&&f(e.pipe),isURLSearchParams:A,isTypedArray:e,isFileList:b,forEach:w,merge:function n(){let r=(C(this)&&this||{}).caseless,o={};var i=(e,t)=>{t=r&&O(o,t)||t,v(o[t])&&v(e)?o[t]=n(o[t],e):v(e)?o[t]=n({},e):u(e)?o[t]=e.slice():o[t]=e};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&w(arguments[e],i);return o},extend:(n,e,r,{allOwnKeys:t}={})=>(w(e,(e,t)=>{r&&f(e)?n[t]=Object(o.a)(e,r):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,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{var o,i;let a;var s={};if(t=t||{},null!=e)do{for(o=Object.getOwnPropertyNames(e),a=o.length;0<a--;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!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(!m(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);(r=n.next())&&!r.done;){var r=r.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:U,hasOwnProperty:T,hasOwnProp:T,reduceDescriptors:P,freezeMethods:r=>{P(r,(e,t)=>{if(f(r)&&-1!==["arguments","caller","callee"].indexOf(t))return!1;var n=r[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 r=e=>{e.forEach(e=>{n[e]=!0})};return u(e)?r(e):r(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:O,global:x,isContextDefined:C,ALPHABET:j,generateString:(e=16,t=j.ALPHA_DIGIT)=>{let n="";for(var r=t.length;e--;)n+=t[Math.random()*r|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),o=(e,r)=>{if(g(e)){if(0<=t.indexOf(e))return;if(!("toJSON"in e)){t[r]=e;let n=u(e)?[]:{};return w(e,(e,t)=>{e=o(e,r+1);d(e)||(n[t]=e)}),t[r]=void 0,n}}return e};return o(e,0)},isAsyncFn:I,isThenable:e=>e&&(g(e)||f(e))&&f(e.then)&&f(e.catch),setImmediate:k,asap:t}}.call(this,V(53),V(200).setImmediate,V(124))},function(e,t,n){n.d(t,"a",function(){return o});let r=n(100),o=(n(22),function(e){let t;return t="function"==typeof e?e:o.Class(e),e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t});o.Class=r.a},function(e,t,n){n.d(t,"b",function(){return c}),n.d(t,"a",function(){return y});n(22);var r=n(8),i=(n(9),n(150)),o=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(r.a)(e);return a(e)?t.assignedNodes({flatten:!0}):Array.from(t.childNodes).map(e=>a(e)?Object(r.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(r.a)(this._target).children&&(this._listenSlots(Object(r.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(r.a)(this._target).children&&(this._unlistenSlots(Object(r.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,o.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 r={target:this._target,addedNodes:[],removedNodes:[]},n=this.constructor.getFlattenedNodes(this._target),o=Object(i.a)(n,this._effectiveNodes);for(let e=0,n;e<o.length&&(n=o[e]);e++)for(let e=0,t;e<n.removed.length&&(t=n.removed[e]);e++)r.removedNodes.push(t);for(let e=0,t;e<o.length&&(t=o[e]);e++)for(let e=t.index;e<t.index+t.addedCount;e++)r.addedNodes.push(n[e]);this._effectiveNodes=n;let e=!1;return(r.addedNodes.length||r.removedNodes.length)&&(e=!0,this.callback.call(this._target,r)),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(r.a)(this.node).contains(e))return!0;let t=e;for(var n=e.ownerDocument;t&&t!==n&&t!==this.node;)t=Object(r.a)(t).parentNode||Object(r.a)(t).host;return t===this.node}getOwnerRoot(){return Object(r.a)(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?Object(r.a)(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){var e=[];let t=Object(r.a)(this.node).assignedSlot;for(;t;)e.push(t),t=Object(r.a)(t).assignedSlot;return e}importNode(e,t){var n=this.node instanceof Document?this.node:this.node.ownerDocument;return Object(r.a)(n).importNode(e,t)}getEffectiveChildNodes(){return s.getFlattenedNodes(this.node)}queryDistributedElements(r){var o=this.getEffectiveChildNodes(),i=[];for(let e=0,t=o.length,n;e<t&&(n=o[e]);e++)n.nodeType===Node.ELEMENT_NODE&&c(n,r)&&i.push(n);return i}get activeElement(){var e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function d(n,r){for(let t=0;t<r.length;t++){let e=r[t];Object.defineProperty(n,e,{get:function(){return this.node[e]},configurable:!0})}}class p{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 h=u;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class _ extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(u.prototype).forEach(e=>{"activeElement"!=e&&(_.prototype[e]=u.prototype[e])}),d(_.prototype,["classList"]),h=_,Object.defineProperties(p.prototype,{localTarget:{get(){var e=this.event.currentTarget,t=e&&y(e).getOwnerRoot(),n=this.path;for(let e=0;e<n.length;e++){var r=n[e];if(y(r).getOwnerRoot()===t)return r}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else{var f=u.prototype,m=["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll"];for(let t=0;t<m.length;t++){let e=m[t];f[e]=function(){return this.node[e].apply(this.node,arguments)}}d(u.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList"]);var g=u.prototype,v=["textContent","innerHTML","className"];for(let e=0;e<v.length;e++){let t=v[e];Object.defineProperty(g,t,{get:function(){return this.node[t]},set:function(e){this.node[t]=e},configurable:!0})}}h;let y=function(e){if((e=e||document)instanceof h)return e;if(e instanceof p)return e;let t=e.__domApi;return t||(t=new(e instanceof Event?p:h)(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),r=(n(4),n(192),n(22),n(85)),o=n(70),i=n(153),a=n(9),s=n(8),l=n(101),i=Object(i.a)(Object(o.b)(Object(r.a)(HTMLElement)));class c extends i{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,r){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 o=n(51),u=n(34),d=n(41),p=n(18),h=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 m extends o.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,p.c,()=>this.__render()),Object(d.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 r=this.__getInstanceNodes();if(r&&r.length)if(Object(s.a)(this).previousSibling!==r[r.length-1])for(let e=0,t;e<r.length&&(t=r[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(d.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 g extends m{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 r=this.__syncInfo;if(this.if)r&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(r.changedProps,t)),e(t,n);else if(this.__instance)if(r=r||(this.__syncInfo={runEffects:e,changedProps:{}}),n)for(var o in t){o=Object(h.g)(o);r.changedProps[o]=this.__dataHost[o]}else Object.assign(r.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 m{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(h.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 r=Object(s.a)(n[0]).parentNode;if(r){r=Object(s.a)(r);for(let e=0,t;e<n.length&&(t=n[e]);e++)r.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 r=a.c?g:v,i=(customElements.get("dom-if")||customElements.define(r.is,r),n(23)),y=n(150),_=n(58),r=Object(i.a)(e=>{e=Object(_.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(