chunk-039d4718.7642ea2e.js 24 KB

12345678
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-039d4718"],{"0880":function(t,e,n){"use strict";(function(t){n.d(e,"c",(function(){return s})),n.d(e,"k",(function(){return a})),n.d(e,"g",(function(){return l})),n.d(e,"h",(function(){return f})),n.d(e,"j",(function(){return h})),n.d(e,"m",(function(){return d})),n.d(e,"l",(function(){return p})),n.d(e,"e",(function(){return y})),n.d(e,"d",(function(){return v})),n.d(e,"f",(function(){return g})),n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return w})),n.d(e,"i",(function(){return S}));var r=function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function c(t){try{s(r.next(t))}catch(e){i(e)}}function u(t){try{s(r["throw"](t))}catch(e){i(e)}}function s(t){t.done?n(t.value):o(t.value).then(c,u)}s((r=r.apply(t,e||[])).next())}))};const o="application/font-woff",i="image/jpeg",c={woff:o,woff2:o,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:i,jpeg:i,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"};function u(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}function s(t){const e=u(t).toLowerCase();return c[e]||""}function a(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),e&&(r.href=e),o.href=t,o.href}function l(t){return-1!==t.search(/^(data:)/)}function f(t,e){return`data:${e};base64,${t}`}function h(t){return t.split(/,/)[1]}const d=function(){let t=0;const e=()=>("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return()=>(t+=1,`u${e()}${t}`)}();function p(t){const e=[];for(let n=0,r=t.length;n<r;n+=1)e.push(t[n]);return e}function m(t,e){const n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}function y(t){const e=m(t,"border-left-width"),n=m(t,"border-right-width");return t.clientWidth+e+n}function v(t){const e=m(t,"border-top-width"),n=m(t,"border-bottom-width");return t.clientHeight+e+n}function g(){let e,n;try{n=t}catch(o){}const r=n&&Object({NODE_ENV:"production",VUE_APP_BASE_API:"api",BASE_URL:""})?Object({NODE_ENV:"production",VUE_APP_BASE_API:"api",BASE_URL:""}).devicePixelRatio:null;return r&&(e=parseInt(r,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}function b(t){return t.toBlob?new Promise(e=>t.toBlob(e)):new Promise(e=>{const n=window.atob(t.toDataURL().split(",")[1]),r=n.length,o=new Uint8Array(r);for(let t=0;t<r;t+=1)o[t]=n.charCodeAt(t);e(new Blob([o],{type:"image/png"}))})}function w(t){return new Promise((e,n)=>{const r=new Image;r.onload=()=>e(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="sync",r.src=t})}function E(t){return r(this,void 0,void 0,(function*(){return Promise.resolve().then(()=>(new XMLSerializer).serializeToString(t)).then(encodeURIComponent).then(t=>"data:image/svg+xml;charset=utf-8,"+t)}))}function S(t,e,n){return r(this,void 0,void 0,(function*(){const r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),i=document.createElementNS(r,"foreignObject");return o.setAttribute("width",""+e),o.setAttribute("height",""+n),o.setAttribute("viewBox",`0 0 ${e} ${n}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),o.appendChild(i),i.appendChild(t),E(o)}))}}).call(this,n("4362"))},b311:function(t,e,n){
  2. /*!
  3. * clipboard.js v2.0.10
  4. * https://clipboardjs.com/
  5. *
  6. * Licensed MIT © Zeno Rocha
  7. */
  8. (function(e,n){t.exports=n()})(0,(function(){return function(){var t={686:function(t,e,n){"use strict";n.d(e,{default:function(){return L}});var r=n(279),o=n.n(r),i=n(370),c=n.n(i),u=n(817),s=n.n(u);function a(t){try{return document.execCommand(t)}catch(e){return!1}}var l=function(t){var e=s()(t);return a("cut"),e},f=l;function h(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=t,n}var d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";if("string"===typeof t){var r=h(t);e.container.appendChild(r),n=s()(r),a("copy"),r.remove()}else n=s()(t),a("copy");return n},p=d;function m(t){return m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}var y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,r=t.container,o=t.target,i=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==m(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?p(i,{container:r}):o?"cut"===n?f(o):p(o,{container:r}):void 0},v=y;function g(t){return g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(t,e,n){return e&&w(t.prototype,e),n&&w(t,n),t}function S(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&x(t,e)}function x(t,e){return x=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},x(t,e)}function P(t){var e=O();return function(){var n,r=R(t);if(e){var o=R(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return T(this,n)}}function T(t,e){return!e||"object"!==g(e)&&"function"!==typeof e?j(t):e}function j(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function O(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function R(t){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},R(t)}function A(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}var C=function(t){S(n,t);var e=P(n);function n(t,r){var o;return b(this,n),o=e.call(this),o.resolveOptions(r),o.listenClick(t),o}return E(n,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===g(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=c()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",r=v({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(r?"success":"error",{action:n,text:r,trigger:e,clearSelection:function(){e&&e.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return A("action",t)}},{key:"defaultTarget",value:function(t){var e=A("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return A("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return p(t,e)}},{key:"cut",value:function(t){return f(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),n}(o()),L=C},828:function(t){var e=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function r(t,n){while(t&&t.nodeType!==e){if("function"===typeof t.matches&&t.matches(n))return t;t=t.parentNode}}t.exports=r},438:function(t,e,n){var r=n(828);function o(t,e,n,r,o){var i=c.apply(this,arguments);return t.addEventListener(n,i,o),{destroy:function(){t.removeEventListener(n,i,o)}}}function i(t,e,n,r,i){return"function"===typeof t.addEventListener?o.apply(null,arguments):"function"===typeof n?o.bind(null,document).apply(null,arguments):("string"===typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return o(t,e,n,r,i)})))}function c(t,e,n,o){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&o.call(t,n)}}t.exports=i},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"===typeof t||t instanceof String},e.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},370:function(t,e,n){var r=n(879),o=n(438);function i(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return c(t,e,n);if(r.nodeList(t))return u(t,e,n);if(r.string(t))return s(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function u(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}function s(t,e,n){return o(document.body,t,e,n)}t.exports=i},817:function(t){function e(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(t),r.removeAllRanges(),r.addRange(o),e=r.toString()}return e}t.exports=e},279:function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function o(){r.off(t,o),e.apply(n,arguments)}return o._=e,this.on(t,o,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,o=n.length;for(r;r<o;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],o=[];if(r&&e)for(var i=0,c=r.length;i<c;i++)r[i].fn!==e&&r[i].fn._!==e&&o.push(r[i]);return o.length?n[t]=o:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}return function(){n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e}}(),function(){n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),n(686)}().default}))},e774:function(t,e,n){"use strict";var r=n("0880");const o={};function i(t){let e=t.replace(/\?.*/,"");return/ttf|otf|eot|woff2?/i.test(e)&&(e=e.replace(/.*\//,"")),e}function c(t,e){const n=i(t);if(null!=o[n])return o[n];e.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());const c=n=>{let r="";if(e.imagePlaceholder){const t=e.imagePlaceholder.split(/,/);t&&t[1]&&(r=t[1])}let o="Failed to fetch resource: "+t;return n&&(o="string"===typeof n?n:n.message),o&&console.error(o),{blob:r,contentType:""}},u=window.fetch(t).then(t=>t.blob().then(e=>({blob:e,contentType:t.headers.get("Content-Type")||""}))).then(({blob:t,contentType:e})=>new Promise((n,r)=>{const o=new FileReader;o.onloadend=()=>n({contentType:e,blob:o.result}),o.onerror=r,o.readAsDataURL(t)})).then(({blob:t,contentType:e})=>({contentType:e,blob:Object(r["j"])(t)})).catch(c);return o[n]=u,u}function u(t){const e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}function s(t){return Object(r["l"])(t).map(e=>{const n=t.getPropertyValue(e),r=t.getPropertyPriority(e);return`${e}: ${n}${r?" !important":""};`}).join(" ")}function a(t,e,n){const r=`.${t}:${e}`,o=n.cssText?u(n):s(n);return document.createTextNode(`${r}{${o}}`)}function l(t,e,n){const o=window.getComputedStyle(t,n),i=o.getPropertyValue("content");if(""===i||"none"===i)return;const c=Object(r["m"])();try{e.className=`${e.className} ${c}`}catch(s){return}const u=document.createElement("style");u.appendChild(a(c,n,o)),e.appendChild(u)}function f(t,e){l(t,e,":before"),l(t,e,":after")}var h=function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function c(t){try{s(r.next(t))}catch(e){i(e)}}function u(t){try{s(r["throw"](t))}catch(e){i(e)}}function s(t){t.done?n(t.value):o(t.value).then(c,u)}s((r=r.apply(t,e||[])).next())}))};function d(t){return h(this,void 0,void 0,(function*(){const e=t.toDataURL();return"data:,"===e?Promise.resolve(t.cloneNode(!1)):Object(r["b"])(e)}))}function p(t,e){return h(this,void 0,void 0,(function*(){return Promise.resolve(t.poster).then(t=>c(t,e)).then(e=>Object(r["h"])(e.blob,Object(r["c"])(t.poster)||e.contentType)).then(t=>Object(r["b"])(t))}))}function m(t,e){return h(this,void 0,void 0,(function*(){return t instanceof HTMLCanvasElement?d(t):t instanceof HTMLVideoElement&&t.poster?p(t,e):Promise.resolve(t.cloneNode(!1))}))}const y=t=>null!=t.tagName&&"SLOT"===t.tagName.toUpperCase();function v(t,e,n){var o;return h(this,void 0,void 0,(function*(){const i=y(t)&&t.assignedNodes?Object(r["l"])(t.assignedNodes()):Object(r["l"])((null!==(o=t.shadowRoot)&&void 0!==o?o:t).childNodes);return 0===i.length||t instanceof HTMLVideoElement?Promise.resolve(e):i.reduce((t,r)=>t.then(()=>E(r,n)).then(t=>{t&&e.appendChild(t)}),Promise.resolve()).then(()=>e)}))}function g(t,e){const n=window.getComputedStyle(t),o=e.style;o&&(n.cssText?o.cssText=n.cssText:Object(r["l"])(n).forEach(t=>{o.setProperty(t,n.getPropertyValue(t),n.getPropertyPriority(t))}))}function b(t,e){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function w(t,e){return h(this,void 0,void 0,(function*(){return e instanceof Element?Promise.resolve().then(()=>g(t,e)).then(()=>f(t,e)).then(()=>b(t,e)).then(()=>e):Promise.resolve(e)}))}function E(t,e,n){return h(this,void 0,void 0,(function*(){return n||!e.filter||e.filter(t)?Promise.resolve(t).then(t=>m(t,e)).then(n=>v(t,n,e)).then(e=>w(t,e)):Promise.resolve(null)}))}var S=function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function c(t){try{s(r.next(t))}catch(e){i(e)}}function u(t){try{s(r["throw"](t))}catch(e){i(e)}}function s(t){t.done?n(t.value):o(t.value).then(c,u)}s((r=r.apply(t,e||[])).next())}))};const x=/url\((['"]?)([^'"]+?)\1\)/g,P=/url\([^)]+\)\s*format\((["'])([^"']+)\1\)/g,T=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function j(t){const e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function O(t){const e=[];return t.replace(x,(t,n,r)=>(e.push(r),t)),e.filter(t=>!Object(r["g"])(t))}function R(t,e,n,o,i){const u=n?Object(r["k"])(e,n):e;return Promise.resolve(u).then(t=>i?i(t):c(t,o)).then(t=>"string"===typeof t?Object(r["h"])(t,Object(r["c"])(e)):Object(r["h"])(t.blob,Object(r["c"])(e)||t.contentType)).then(n=>t.replace(j(e),`$1${n}$3`)).then(t=>t,()=>u)}function A(t,{preferredFontFormat:e}){return e?t.replace(T,t=>{while(1){const[n,,r]=P.exec(t)||[];if(!r)return"";if(r===e)return`src: ${n};`}}):t}function C(t){return-1!==t.search(x)}function L(t,e,n){return S(this,void 0,void 0,(function*(){if(!C(t))return Promise.resolve(t);const r=A(t,n);return Promise.resolve(r).then(O).then(t=>t.reduce((t,r)=>t.then(t=>R(t,r,e,n)),Promise.resolve(r)))}))}var k=function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function c(t){try{s(r.next(t))}catch(e){i(e)}}function u(t){try{s(r["throw"](t))}catch(e){i(e)}}function s(t){t.done?n(t.value):o(t.value).then(c,u)}s((r=r.apply(t,e||[])).next())}))};function N(t,e){var n;return k(this,void 0,void 0,(function*(){const r=null===(n=t.style)||void 0===n?void 0:n.getPropertyValue("background");return r?Promise.resolve(r).then(t=>L(t,null,e)).then(e=>(t.style.setProperty("background",e,t.style.getPropertyPriority("background")),t)):Promise.resolve(t)}))}function $(t,e){return k(this,void 0,void 0,(function*(){if((!(t instanceof HTMLImageElement)||Object(r["g"])(t.src))&&(!(t instanceof SVGImageElement)||Object(r["g"])(t.href.baseVal)))return Promise.resolve(t);const n=t instanceof HTMLImageElement?t.src:t.href.baseVal;return Promise.resolve(n).then(t=>c(t,e)).then(t=>Object(r["h"])(t.blob,Object(r["c"])(n)||t.contentType)).then(e=>new Promise((n,r)=>{t.onload=n,t.onerror=r,t instanceof HTMLImageElement?(t.srcset="",t.src=e):t.href.baseVal=e})).then(()=>t,()=>t)}))}function _(t,e){return k(this,void 0,void 0,(function*(){const n=Object(r["l"])(t.childNodes),o=n.map(t=>M(t,e));return Promise.all(o).then(()=>t)}))}function M(t,e){return k(this,void 0,void 0,(function*(){return t instanceof Element?Promise.resolve(t).then(t=>N(t,e)).then(t=>$(t,e)).then(t=>_(t,e)):Promise.resolve(t)}))}function I(t,e){const{style:n}=t;e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.width&&(n.width=e.width+"px"),e.height&&(n.height=e.height+"px");const r=e.style;return null!=r&&Object.keys(r).forEach(t=>{n[t]=r[t]}),t}var V=function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function c(t){try{s(r.next(t))}catch(e){i(e)}}function u(t){try{s(r["throw"](t))}catch(e){i(e)}}function s(t){t.done?n(t.value):o(t.value).then(c,u)}s((r=r.apply(t,e||[])).next())}))};const H={};function U(t){const e=H[t];if(null!=e)return e;const n=window.fetch(t).then(e=>({url:t,cssText:e.text()}));return H[t]=n,n}function D(t){return V(this,void 0,void 0,(function*(){return t.cssText.then(e=>{let n=e;const r=/url\(["']?([^"')]+)["']?\)/g,o=n.match(/url\([^)]+\)/g)||[],i=o.map(e=>{let o=e.replace(r,"$1");return o.startsWith("https://")||(o=new URL(o,t.url).href),window.fetch(o).then(t=>t.blob()).then(t=>new Promise((r,o)=>{const i=new FileReader;i.onloadend=()=>{n=n.replace(e,`url(${i.result})`),r([e,i.result])},i.onerror=o,i.readAsDataURL(t)}))});return Promise.all(i).then(()=>n)})}))}function F(t){if(null==t)return[];const e=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=t.replace(n,"");const o=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");while(1){const t=o.exec(r);if(null===t)break;e.push(t[0])}r=r.replace(o,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,c="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",u=new RegExp(c,"gi");while(1){let t=i.exec(r);if(null===t){if(t=u.exec(r),null===t)break;i.lastIndex=u.lastIndex}else u.lastIndex=i.lastIndex;e.push(t[0])}return e}function B(t){return V(this,void 0,void 0,(function*(){const e=[],n=[];return t.forEach(e=>{if("cssRules"in e)try{Object(r["l"])(e.cssRules).forEach((t,r)=>{if(t.type===CSSRule.IMPORT_RULE){let o=r+1;const i=t.href,c=U(i).then(t=>t?D(t):"").then(t=>F(t).forEach(t=>{try{e.insertRule(t,t.startsWith("@import")?o+=1:e.cssRules.length)}catch(n){console.error("Error inserting rule from remote css",{rule:t,error:n})}})).catch(t=>{console.error("Error loading remote css",t.toString())});n.push(c)}})}catch(o){const r=t.find(t=>null==t.href)||document.styleSheets[0];null!=e.href&&n.push(U(e.href).then(t=>t?D(t):"").then(t=>F(t).forEach(t=>{r.insertRule(t,e.cssRules.length)})).catch(t=>{console.error("Error loading remote stylesheet",t.toString())})),console.error("Error inlining remote css file",o.toString())}}),Promise.all(n).then(()=>(t.forEach(t=>{if("cssRules"in t)try{Object(r["l"])(t.cssRules).forEach(t=>{e.push(t)})}catch(n){console.error("Error while reading CSS rules from "+t.href,n.toString())}}),e))}))}function q(t){return t.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>C(t.style.getPropertyValue("src")))}function z(t){return V(this,void 0,void 0,(function*(){return new Promise((e,n)=>{null==t.ownerDocument&&n(new Error("Provided element is not within a Document")),e(Object(r["l"])(t.ownerDocument.styleSheets))}).then(t=>B(t)).then(q)}))}function W(t,e){return V(this,void 0,void 0,(function*(){return z(t).then(t=>Promise.all(t.map(t=>{const n=t.parentStyleSheet?t.parentStyleSheet.href:null;return L(t.cssText,n,e)}))).then(t=>t.join("\n"))}))}function J(t,e){return V(this,void 0,void 0,(function*(){return(null!=e.fontEmbedCSS?Promise.resolve(e.fontEmbedCSS):W(t,e)).then(e=>{const n=document.createElement("style"),r=document.createTextNode(e);return n.appendChild(r),t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),t})}))}n.d(e,"a",(function(){return tt}));var X=function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function c(t){try{s(r.next(t))}catch(e){i(e)}}function u(t){try{s(r["throw"](t))}catch(e){i(e)}}function s(t){t.done?n(t.value):o(t.value).then(c,u)}s((r=r.apply(t,e||[])).next())}))};function Y(t,e={}){const n=e.width||Object(r["e"])(t),o=e.height||Object(r["d"])(t);return{width:n,height:o}}function G(t,e={}){return X(this,void 0,void 0,(function*(){const{width:n,height:o}=Y(t,e);return Promise.resolve(t).then(t=>E(t,e,!0)).then(t=>J(t,e)).then(t=>M(t,e)).then(t=>I(t,e)).then(t=>Object(r["i"])(t,n,o))}))}const K=16384;function Q(t){(t.width>K||t.height>K)&&(t.width>K&&t.height>K?t.width>t.height?(t.height*=K/t.width,t.width=K):(t.width*=K/t.height,t.height=K):t.width>K?(t.height*=K/t.width,t.width=K):(t.width*=K/t.height,t.height=K))}function Z(t,e={}){return X(this,void 0,void 0,(function*(){return G(t,e).then(r["b"]).then(n=>{const o=document.createElement("canvas"),i=o.getContext("2d"),c=e.pixelRatio||Object(r["f"])(),{width:u,height:s}=Y(t,e),a=e.canvasWidth||u,l=e.canvasHeight||s;return o.width=a*c,o.height=l*c,e.skipAutoScale||Q(o),o.style.width=""+a,o.style.height=""+l,e.backgroundColor&&(i.fillStyle=e.backgroundColor,i.fillRect(0,0,o.width,o.height)),i.drawImage(n,0,0,o.width,o.height),o})}))}function tt(t,e={}){return X(this,void 0,void 0,(function*(){return Z(t,e).then(t=>t.toDataURL())}))}}}]);