@htmlbricks/hb-dialog-loader 0.19.24 → 0.19.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/release/manifest.json +1 -1
- package/release/release.js +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@htmlbricks/hb-dialog-loader",
|
|
3
3
|
"displayName": "Svelte-Bootstrap Downloader WebComponent",
|
|
4
4
|
"description": "Svelte-Bootstrap Downloader WebComponent",
|
|
5
|
-
"version": "0.19.
|
|
5
|
+
"version": "0.19.25",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"wc-js-utils": "^0.0.1"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@htmlbricks/hb-dialog": "^0.19.
|
|
73
|
+
"@htmlbricks/hb-dialog": "^0.19.25"
|
|
74
74
|
},
|
|
75
75
|
"keywords": [
|
|
76
76
|
"svelte",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"webcomponents"
|
|
79
79
|
],
|
|
80
80
|
"contributors": [],
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "b4a05fc99c8059ff8dd3154518ed9b83ca332216"
|
|
82
82
|
}
|
package/release/manifest.json
CHANGED
package/release/release.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var release=function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function r(e){e.forEach(t)}function o(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function s(e,t){e.appendChild(t)}function a(e,t,n){e.insertBefore(t,n||null)}function u(e){e.parentNode&&e.parentNode.removeChild(e)}function c(e){return document.createElement(e)}function l(e){return document.createTextNode(e)}function f(){return l(" ")}function d(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function p(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:d(e,t,n)}function h(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function m(e,t,n,r){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function g(e){const t={};for(const n of e)t[n.name]=n.value;return t}let v;function y(e){v=e}function b(){if(!v)throw new Error("Function called outside component initialization");return v}function w(){const e=b();return(t,n,{cancelable:r=!1}={})=>{const o=e.$$.callbacks[t];if(o){const i=function(e,t,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,n,r,t),o}(t,n,{cancelable:r});return o.slice().forEach((t=>{t.call(e,i)})),!i.defaultPrevented}return!0}}const E=[],O=[],R=[],C=[],$=Promise.resolve();let x=!1;function _(e){R.push(e)}const A=new Set;let T=0;function S(){if(0!==T)return;const e=v;do{try{for(;T<E.length;){const e=E[T];T++,y(e),j(e.$$)}}catch(e){throw E.length=0,T=0,e}for(y(null),E.length=0,T=0;O.length;)O.pop()();for(let e=0;e<R.length;e+=1){const t=R[e];A.has(t)||(A.add(t),t())}R.length=0}while(E.length);for(;C.length;)C.pop()();x=!1,A.clear(),y(e)}function j(e){if(null!==e.fragment){e.update(),r(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(_)}}const N=new Set;function D(e,t){-1===e.$$.dirty[0]&&(E.push(e),x||(x=!0,$.then(S)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function k(i,s,a,c,l,f,d,p=[-1]){const h=v;y(i);const m=i.$$={fragment:null,ctx:[],props:f,update:e,not_equal:l,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(h?h.$$.context:[])),callbacks:n(),dirty:p,skip_bound:!1,root:s.target||h.$$.root};d&&d(m.root);let g=!1;if(m.ctx=a?a(i,s.props||{},((e,t,...n)=>{const r=n.length?n[0]:t;return m.ctx&&l(m.ctx[e],m.ctx[e]=r)&&(!m.skip_bound&&m.bound[e]&&m.bound[e](r),g&&D(i,e)),t})):[],m.update(),g=!0,r(m.before_update),m.fragment=!!c&&c(m.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);m.fragment&&m.fragment.l(e),e.forEach(u)}else m.fragment&&m.fragment.c();s.intro&&((b=i.$$.fragment)&&b.i&&(N.delete(b),b.i(w))),function(e,n,i,s){const{fragment:a,after_update:u}=e.$$;a&&a.m(n,i),s||_((()=>{const n=e.$$.on_mount.map(t).filter(o);e.$$.on_destroy?e.$$.on_destroy.push(...n):r(n),e.$$.on_mount=[]})),u.forEach(_)}(i,s.target,s.anchor,s.customElement),S()}var b,w;y(h)}let P;"function"==typeof HTMLElement&&(P=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(o);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){!function(e,t){const n=e.$$;null!==n.fragment&&(r(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=e}$on(t,n){if(!o(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var L,B={name:"@htmlbricks/hb-dialog-loader",displayName:"Svelte-Bootstrap Downloader WebComponent",description:"Svelte-Bootstrap Downloader WebComponent",version:"0.19.24",main:"release/release.js",publishConfig:{access:"public"},author:"Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",authorUrl:"https://dariocaruso.info",license:"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0",engines:{node:">=16.0.0"},scripts:{start:"sirv dist",dev:"rm -rf ./dist && rollup -c -w",build:"rm -rf ./dist && rollup -c","generate-manifest":"npm run generate-schemes && monorepo-wc-packages-manifester --dir $PWD","generate-component-schema":"ts-json-schema-generator --type 'Component' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json","generate-events-schema":"ts-json-schema-generator --type 'Events' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent_events.type.d.json","generate-schemes":"npm run generate-events-schema && npm run generate-component-schema",copydest:"rm -rf release && mkdir -p release && mkdir -p release && cp dist/* ./release/","build-extra":"tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*","build:release":"PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",prepublish:"npm run build:release"},devDependencies:{"@rollup/plugin-alias":"^3.1.2","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^4.0.0","@rollup/plugin-typescript":"^8.2.1","@tsconfig/svelte":"^1.0.10","@types/node":"^16.7.1","@typescript-eslint/eslint-plugin":"^4.22.0","@typescript-eslint/parser":"^4.22.0",eslint:"^7.25.0","eslint-plugin-jsdoc":"^33.0.0","eslint-plugin-svelte3":"^3.2.0","monorepo-wc-packages-manifester":"^0.0.3","node-sass":"^6.0.1",postcss:"^8.2.13","postcss-load-config":"^3.0.1",prettier:"^2.8.4",rollup:"^2.46.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-css-only":"^3.1.0","rollup-plugin-livereload":"^2.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-ts-paths":"^1.0.5","rollup-plugin-typescript2":"^0.31.1",sass:"^1.32.12","sirv-cli":"^1.0.11",svelte:"^3.46.2","svelte-check":"^1.5.2","svelte-preprocess":"^4.7.2","ts-json-schema-generator":"^0.98.0","ts-node":"^9.1.1",tslib:"^2.2.0",ttypescript:"^1.5.12",typescript:"^4.2.4","typescript-transform-paths":"^2.2.3","wc-js-utils":"^0.0.1"},dependencies:{"@htmlbricks/hb-dialog":"^0.19.24"},keywords:["svelte","svelte-webcomponents","webcomponents"],contributors:[],gitHead:"f18a32cd011dd7bc16b067602dba9a24eccc04b9"},U=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},F=Object.prototype.toString,M=(L=Object.create(null),function(e){var t=F.call(e);return L[t]||(L[t]=t.slice(8,-1).toLowerCase())});function I(e){return e=e.toLowerCase(),function(t){return M(t)===e}}function q(e){return Array.isArray(e)}function V(e){return void 0===e}var W=I("ArrayBuffer");function H(e){return null!==e&&"object"==typeof e}function z(e){if("object"!==M(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var J=I("Date"),K=I("File"),X=I("Blob"),Y=I("FileList");function Q(e){return"[object Function]"===F.call(e)}var G=I("URLSearchParams");function Z(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),q(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var ee,te=(ee="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return ee&&e instanceof ee}),ne={isArray:q,isArrayBuffer:W,isBuffer:function(e){return null!==e&&!V(e)&&null!==e.constructor&&!V(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||F.call(e)===t||Q(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&W(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:H,isPlainObject:z,isUndefined:V,isDate:J,isFile:K,isBlob:X,isFunction:Q,isStream:function(e){return H(e)&&Q(e.pipe)},isURLSearchParams:G,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:Z,merge:function e(){var t={};function n(n,r){z(t[r])&&z(n)?t[r]=e(t[r],n):z(n)?t[r]=e({},n):q(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)Z(arguments[r],n);return t},extend:function(e,t,n){return Z(t,(function(t,r){e[r]=n&&"function"==typeof t?U(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,s={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)s[i=r[o]]||(t[i]=e[i],s[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:M,kindOfTest:I,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(V(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:te,isFileList:Y};function re(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var oe=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(ne.isURLSearchParams(t))r=t.toString();else{var o=[];ne.forEach(t,(function(e,t){null!=e&&(ne.isArray(e)?t+="[]":e=[e],ne.forEach(e,(function(e){ne.isDate(e)?e=e.toISOString():ne.isObject(e)&&(e=JSON.stringify(e)),o.push(re(t)+"="+re(e))})))})),r=o.join("&")}if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e};function ie(){this.handlers=[]}ie.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},ie.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},ie.prototype.forEach=function(e){ne.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var se=ie,ae=function(e,t){ne.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))};function ue(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}ne.inherits(ue,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var ce=ue.prototype,le={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){le[e]={value:e}})),Object.defineProperties(ue,le),Object.defineProperty(ce,"isAxiosError",{value:!0}),ue.from=function(e,t,n,r,o,i){var s=Object.create(ce);return ne.toFlatObject(e,s,(function(e){return e!==Error.prototype})),ue.call(s,e.message,t,n,r,o),s.name=e.name,i&&Object.assign(s,i),s};var fe=ue,de={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var pe=function(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":ne.isDate(e)?e.toISOString():ne.isArrayBuffer(e)||ne.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,i){if(ne.isPlainObject(o)||ne.isArray(o)){if(-1!==n.indexOf(o))throw Error("Circular reference detected in "+i);n.push(o),ne.forEach(o,(function(n,o){if(!ne.isUndefined(n)){var s,a=i?i+"."+o:o;if(n&&!i&&"object"==typeof n)if(ne.endsWith(o,"{}"))n=JSON.stringify(n);else if(ne.endsWith(o,"[]")&&(s=ne.toArray(n)))return void s.forEach((function(e){!ne.isUndefined(e)&&t.append(a,r(e))}));e(n,a)}})),n.pop()}else t.append(i,r(o))}(e),t},he=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new fe("Request failed with status code "+n.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)},me=ne.isStandardBrowserEnv()?{write:function(e,t,n,r,o,i){var s=[];s.push(e+"="+encodeURIComponent(t)),ne.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ne.isString(r)&&s.push("path="+r),ne.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},ge=function(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t},ve=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],ye=function(e){var t,n,r,o={};return e?(ne.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=ne.trim(e.substr(0,r)).toLowerCase(),n=ne.trim(e.substr(r+1)),t){if(o[t]&&ve.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o},be=ne.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=ne.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};function we(e){fe.call(this,null==e?"canceled":e,fe.ERR_CANCELED),this.name="CanceledError"}ne.inherits(we,fe,{__CANCEL__:!0});var Ee=we,Oe=function(e){return new Promise((function(t,n){var r,o=e.data,i=e.headers,s=e.responseType;function a(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}ne.isFormData(o)&&ne.isStandardBrowserEnv()&&delete i["Content-Type"];var u=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(c+":"+l)}var f=ge(e.baseURL,e.url);function d(){if(u){var r="getAllResponseHeaders"in u?ye(u.getAllResponseHeaders()):null,o={data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u};he((function(e){t(e),a()}),(function(e){n(e),a()}),o),u=null}}if(u.open(e.method.toUpperCase(),oe(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(d)},u.onabort=function(){u&&(n(new fe("Request aborted",fe.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new fe("Network Error",fe.ERR_NETWORK,e,u,u)),u=null},u.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||de;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new fe(t,r.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,u)),u=null},ne.isStandardBrowserEnv()){var p=(e.withCredentials||be(f))&&e.xsrfCookieName?me.read(e.xsrfCookieName):void 0;p&&(i[e.xsrfHeaderName]=p)}"setRequestHeader"in u&&ne.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:u.setRequestHeader(t,e)})),ne.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(r=function(e){u&&(n(!e||e&&e.type?new Ee:e),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r))),o||(o=null);var h,m=(h=/^([-+\w]{1,25})(:?\/\/|:)/.exec(f))&&h[1]||"";m&&-1===["http","https","file"].indexOf(m)?n(new fe("Unsupported protocol "+m+":",fe.ERR_BAD_REQUEST,e)):u.send(o)}))},Re={"Content-Type":"application/x-www-form-urlencoded"};function Ce(e,t){!ne.isUndefined(e)&&ne.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var $e,xe={transitional:de,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&($e=Oe),$e),transformRequest:[function(e,t){if(ae(t,"Accept"),ae(t,"Content-Type"),ne.isFormData(e)||ne.isArrayBuffer(e)||ne.isBuffer(e)||ne.isStream(e)||ne.isFile(e)||ne.isBlob(e))return e;if(ne.isArrayBufferView(e))return e.buffer;if(ne.isURLSearchParams(e))return Ce(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=ne.isObject(e),o=t&&t["Content-Type"];if((n=ne.isFileList(e))||r&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return pe(n?{"files[]":e}:e,i&&new i)}return r||"application/json"===o?(Ce(t,"application/json"),function(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||xe.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&ne.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw fe.from(e,fe.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:null},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ne.forEach(["delete","get","head"],(function(e){xe.headers[e]={}})),ne.forEach(["post","put","patch"],(function(e){xe.headers[e]=ne.merge(Re)}));var _e=xe,Ae=function(e,t,n){var r=this||_e;return ne.forEach(n,(function(n){e=n.call(r,e,t)})),e},Te=function(e){return!(!e||!e.__CANCEL__)};function Se(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ee}var je=function(e){return Se(e),e.headers=e.headers||{},e.data=Ae.call(e,e.data,e.headers,e.transformRequest),e.headers=ne.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),ne.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||_e.adapter)(e).then((function(t){return Se(e),t.data=Ae.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Te(t)||(Se(e),t&&t.response&&(t.response.data=Ae.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Ne=function(e,t){t=t||{};var n={};function r(e,t){return ne.isPlainObject(e)&&ne.isPlainObject(t)?ne.merge(e,t):ne.isPlainObject(t)?ne.merge({},t):ne.isArray(t)?t.slice():t}function o(n){return ne.isUndefined(t[n])?ne.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function i(e){if(!ne.isUndefined(t[e]))return r(void 0,t[e])}function s(n){return ne.isUndefined(t[n])?ne.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function a(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return ne.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,r=t(e);ne.isUndefined(r)&&t!==a||(n[e]=r)})),n},De="0.27.2",ke=De,Pe={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Pe[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var Le={};Pe.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ke+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new fe(r(o," has been removed"+(t?" in "+t:"")),fe.ERR_DEPRECATED);return t&&!Le[o]&&(Le[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var Be={assertOptions:function(e,t,n){if("object"!=typeof e)throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],s=t[i];if(s){var a=e[i],u=void 0===a||s(a,i,e);if(!0!==u)throw new fe("option "+i+" must be "+u,fe.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new fe("Unknown option "+i,fe.ERR_BAD_OPTION)}},validators:Pe},Ue=Be.validators;function Fe(e){this.defaults=e,this.interceptors={request:new se,response:new se}}Fe.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Ne(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&Be.assertOptions(n,{silentJSONParsing:Ue.transitional(Ue.boolean),forcedJSONParsing:Ue.transitional(Ue.boolean),clarifyTimeoutError:Ue.transitional(Ue.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,s=[];if(this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)})),!o){var a=[je,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(s),i=Promise.resolve(t);a.length;)i=i.then(a.shift(),a.shift());return i}for(var u=t;r.length;){var c=r.shift(),l=r.shift();try{u=c(u)}catch(e){l(e);break}}try{i=je(u)}catch(e){return Promise.reject(e)}for(;s.length;)i=i.then(s.shift(),s.shift());return i},Fe.prototype.getUri=function(e){e=Ne(this.defaults,e);var t=ge(e.baseURL,e.url);return oe(t,e.params,e.paramsSerializer)},ne.forEach(["delete","get","head","options"],(function(e){Fe.prototype[e]=function(t,n){return this.request(Ne(n||{},{method:e,url:t,data:(n||{}).data}))}})),ne.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ne(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Fe.prototype[e]=t(),Fe.prototype[e+"Form"]=t(!0)}));var Me=Fe;function Ie(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new Ee(e),t(n.reason))}))}Ie.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Ie.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},Ie.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},Ie.source=function(){var e;return{token:new Ie((function(t){e=t})),cancel:e}};var qe=Ie;var Ve=function e(t){var n=new Me(t),r=U(Me.prototype.request,n);return ne.extend(r,Me.prototype,n),ne.extend(r,n),r.create=function(n){return e(Ne(t,n))},r}(_e);Ve.Axios=Me,Ve.CanceledError=Ee,Ve.CancelToken=qe,Ve.isCancel=Te,Ve.VERSION=De,Ve.toFormData=pe,Ve.AxiosError=fe,Ve.Cancel=Ve.CanceledError,Ve.all=function(e){return Promise.all(e)},Ve.spread=function(e){return function(t){return e.apply(null,t)}},Ve.isAxiosError=function(e){return ne.isObject(e)&&!0===e.isAxiosError};var We=Ve;Ve.default=We;var He,ze=(function(e,t){t.__esModule=!0,t.LanguageTranslator=t.addComponent=t.getChildStyleToPass=void 0,t.getChildStyleToPass=function(e,t){var n,r,o="";if(e&&(null==t?void 0:t.length)&&(null===(n=Object.keys(e))||void 0===n?void 0:n.length)&&(null===(r=null==t?void 0:t.filter((function(t){return Object.keys(e).includes(t.name)})))||void 0===r?void 0:r.length))for(var i=function(n){(null==t?void 0:t.filter((function(t){return t.name===n&&t.defaultValue!==e[n]})))&&(o+="".concat(n,":").concat(e[n],";"))},s=0,a=Object.keys(e);s<a.length;s++)i(a[s]);return o},t.addComponent=function(e){var t,n=(null===(t=null==e?void 0:e.repoName.split("/"))||void 0===t?void 0:t[1])||(null==e?void 0:e.repoName);if(!n)throw new Error("wrong componentPath "+(null==e?void 0:e.repoName));if(!(null==e?void 0:e.version))throw new Error("wrong version "+(null==e?void 0:e.version));var r=(null==e?void 0:e.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var o=document.createElement("script");o.id=n+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(e.repoName,"@").concat(e.version,"/").concat(r),(null==e?void 0:e.local)&&location.href.includes("localhost")&&(o.src="".concat(e.local)),document.head.appendChild(o)}catch(e){console.warn(e)}};var n=function(){function e(e){if(!(null==e?void 0:e.dictionary))throw new Error("no dictionary provided");this.dictionary=e.dictionary,this.setLang(null==e?void 0:e.lang)}return e.prototype.setLang=function(t){t||(t=e.getDefaultLang()),this.lang=t},e.prototype.translateWord=function(t,n){return e.getDictionaryWord(t,this.dictionary,n||this.lang)},e.prototype.translateDate=function(t,n,r){return e.formatDate(t,n,r||this.lang)},e.getDefaultLang=function(){var e,t,n,r,o,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(t=null===(e=navigator.languages[0])||void 0===e?void 0:e.split("-")[0])||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.length)&&(i=null===(o=null===(r=navigator.languages[0])||void 0===r?void 0:r.split("-")[0])||void 0===o?void 0:o.toLowerCase()),i},e.getDictionaryWord=function(t,n,r){var o;if(!t)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(r&&(null===(o=n[r])||void 0===o?void 0:o[t]))return n[r][t];var i="",s=e.getDefaultLang();if(!r||s!==r){var a=null==n?void 0:n[s];(null==a?void 0:a[t])&&(i=a[t])}return i},e.formatDate=function(t,n,r){if(!t)throw new Error("no date provided");if("function"!=typeof t.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(r||e.getDefaultLang(),n).format(t)},e}();t.LanguageTranslator=n}(He={exports:{}},He.exports),He.exports),Je=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ke=/\n/g,Xe=/^\s*/,Ye=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Qe=/^:\s*/,Ge=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ze=/^[;\s]*/,et=/^\s+|\s+$/g,tt="\n",nt="/",rt="*",ot="",it="comment",st="declaration",at=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(e){var t=e.match(Ke);t&&(n+=t.length);var o=e.lastIndexOf(tt);r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new s(e),c(),t}}function s(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function a(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function u(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function c(){u(Xe)}function l(e){var t;for(e=e||[];t=f();)!1!==t&&e.push(t);return e}function f(){var t=i();if(nt==e.charAt(0)&&rt==e.charAt(1)){for(var n=2;ot!=e.charAt(n)&&(rt!=e.charAt(n)||nt!=e.charAt(n+1));)++n;if(n+=2,ot===e.charAt(n-1))return a("End of comment missing");var s=e.slice(2,n-2);return r+=2,o(s),e=e.slice(n),r+=2,t({type:it,comment:s})}}function d(){var e=i(),t=u(Ye);if(t){if(f(),!u(Qe))return a("property missing ':'");var n=u(Ge),r=e({type:st,property:ut(t[0].replace(Je,ot)),value:n?ut(n[0].replace(Je,ot)):ot});return u(Ze),r}}return s.prototype.content=e,c(),function(){var e,t=[];for(l(t);e=d();)!1!==e&&(t.push(e),l(t));return t}()};function ut(e){return e?e.replace(et,ot):ot}var ct=function(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var o,i,s=at(e),a="function"==typeof t,u=0,c=s.length;u<c;u++)o=(n=s[u]).property,i=n.value,a?t(o,i,n):i&&(r||(r={}),r[o]=i);return r},lt={vars:[{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"},{name:"--hb-modal-max-width",valueType:"htmlsize",defaultValue:"500px"}],parts:[{name:"modal-dialog",description:"The modal dialog"}]};function ft(t){let n,r,o,i,g,v,y,b,w,E,O,R,C,$,x,_,A=Math.round(t[0])+"";return{c(){n=c("hb-dialog"),r=c("span"),o=c("slot"),i=l(t[1]),g=f(),v=c("div"),y=c("div"),b=c("div"),w=l(A),E=l("%"),R=f(),C=c("span"),this.c=e,d(o,"name","title"),d(r,"slot","title"),d(b,"class","progress-bar"),m(b,"width",Math.round(t[0])+"%"),d(b,"role","progressbar"),d(b,"aria-valuenow",O=Math.round(t[0])),d(b,"aria-valuemin","0"),d(b,"aria-valuemax","100"),d(y,"class","progress"),d(v,"slot","body-content"),d(C,"slot","modal-footer"),p(n,"style",t[2]),p(n,"show",$=t[0]?"yes":"no")},m(e,u){var c,l,f,d;a(e,n,u),s(n,r),s(r,o),s(o,i),s(n,g),s(n,v),s(v,y),s(y,b),s(b,w),s(b,E),s(n,R),s(n,C),x||(c=n,l="modalShow",f=t[8],c.addEventListener(l,f,d),_=()=>c.removeEventListener(l,f,d),x=!0)},p(e,[t]){2&t&&h(i,e[1]),1&t&&A!==(A=Math.round(e[0])+"")&&h(w,A),1&t&&m(b,"width",Math.round(e[0])+"%"),1&t&&O!==(O=Math.round(e[0]))&&d(b,"aria-valuenow",O),4&t&&p(n,"style",e[2]),1&t&&$!==($=e[0]?"yes":"no")&&p(n,"show",$)},i:e,o:e,d(e){e&&u(n),x=!1,_()}}}function dt(e,t,n){let r,o="";const i=b(),s=w();ze.addComponent({repoName:"@htmlbricks/hb-dialog",version:B.version});let a,{id:u}=t,{style:c}=t,{percentage:l}=t,{title:f}=t;function d(e){!function(e,t){s(e,t),i.dispatchEvent&&i.dispatchEvent(new CustomEvent(e,{detail:t}))}("modalShow",e)}return e.$$set=e=>{"id"in e&&n(4,u=e.id),"style"in e&&n(5,c=e.style),"percentage"in e&&n(0,l=e.percentage),"title"in e&&n(1,f=e.title)},e.$$.update=()=>{243&e.$$.dirty&&(l?"string"==typeof l&&n(0,l=parseInt(l)):n(0,l=0),u||n(4,u=null),f||n(1,f="loading"),c&&(n(6,r=ct(c)),n(2,o=ze.getChildStyleToPass(r,null==lt?void 0:lt.vars))),a||n(7,a=!1))},[l,f,o,d,u,c,r,a,e=>d(e.detail)]}class pt extends P{constructor(e){super(),this.shadowRoot.innerHTML='<style>@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress{display:flex;height:1rem;overflow:hidden;font-size:0.75rem;background-color:#e9ecef;border-radius:0.25rem}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:#fff;text-align:center;white-space:nowrap;background-color:var(--bs-primary,#07689f);transition:width 0.6s ease}@media(prefers-reduced-motion: reduce){.progress-bar{transition:none}}@media(prefers-reduced-motion: reduce){}:host{font-family:"Roboto", sans-serif}</style>',k(this,{target:this.shadowRoot,props:g(this.attributes),customElement:!0},dt,ft,i,{id:4,style:5,percentage:0,title:1},null),e&&(e.target&&a(e.target,this,e.anchor),e.props&&(this.$set(e.props),S()))}static get observedAttributes(){return["id","style","percentage","title"]}get id(){return this.$$.ctx[4]}set id(e){this.$$set({id:e}),S()}get style(){return this.$$.ctx[5]}set style(e){this.$$set({style:e}),S()}get percentage(){return this.$$.ctx[0]}set percentage(e){this.$$set({percentage:e}),S()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),S()}}return customElements.define("hb-dialog-loader",pt),pt}();
|
|
1
|
+
var release=function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function r(e){e.forEach(t)}function o(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function s(e,t){e.appendChild(t)}function a(e,t,n){e.insertBefore(t,n||null)}function u(e){e.parentNode&&e.parentNode.removeChild(e)}function c(e){return document.createElement(e)}function l(e){return document.createTextNode(e)}function f(){return l(" ")}function d(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function p(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:d(e,t,n)}function h(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function m(e,t,n,r){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function g(e){const t={};for(const n of e)t[n.name]=n.value;return t}let v;function y(e){v=e}function b(){if(!v)throw new Error("Function called outside component initialization");return v}function w(){const e=b();return(t,n,{cancelable:r=!1}={})=>{const o=e.$$.callbacks[t];if(o){const i=function(e,t,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,n,r,t),o}(t,n,{cancelable:r});return o.slice().forEach((t=>{t.call(e,i)})),!i.defaultPrevented}return!0}}const E=[],O=[],R=[],C=[],$=Promise.resolve();let x=!1;function _(e){R.push(e)}const A=new Set;let T=0;function S(){if(0!==T)return;const e=v;do{try{for(;T<E.length;){const e=E[T];T++,y(e),j(e.$$)}}catch(e){throw E.length=0,T=0,e}for(y(null),E.length=0,T=0;O.length;)O.pop()();for(let e=0;e<R.length;e+=1){const t=R[e];A.has(t)||(A.add(t),t())}R.length=0}while(E.length);for(;C.length;)C.pop()();x=!1,A.clear(),y(e)}function j(e){if(null!==e.fragment){e.update(),r(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(_)}}const N=new Set;function D(e,t){-1===e.$$.dirty[0]&&(E.push(e),x||(x=!0,$.then(S)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function k(i,s,a,c,l,f,d,p=[-1]){const h=v;y(i);const m=i.$$={fragment:null,ctx:[],props:f,update:e,not_equal:l,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(h?h.$$.context:[])),callbacks:n(),dirty:p,skip_bound:!1,root:s.target||h.$$.root};d&&d(m.root);let g=!1;if(m.ctx=a?a(i,s.props||{},((e,t,...n)=>{const r=n.length?n[0]:t;return m.ctx&&l(m.ctx[e],m.ctx[e]=r)&&(!m.skip_bound&&m.bound[e]&&m.bound[e](r),g&&D(i,e)),t})):[],m.update(),g=!0,r(m.before_update),m.fragment=!!c&&c(m.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);m.fragment&&m.fragment.l(e),e.forEach(u)}else m.fragment&&m.fragment.c();s.intro&&((b=i.$$.fragment)&&b.i&&(N.delete(b),b.i(w))),function(e,n,i,s){const{fragment:a,after_update:u}=e.$$;a&&a.m(n,i),s||_((()=>{const n=e.$$.on_mount.map(t).filter(o);e.$$.on_destroy?e.$$.on_destroy.push(...n):r(n),e.$$.on_mount=[]})),u.forEach(_)}(i,s.target,s.anchor,s.customElement),S()}var b,w;y(h)}let P;"function"==typeof HTMLElement&&(P=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(o);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){!function(e,t){const n=e.$$;null!==n.fragment&&(r(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=e}$on(t,n){if(!o(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var L,B={name:"@htmlbricks/hb-dialog-loader",displayName:"Svelte-Bootstrap Downloader WebComponent",description:"Svelte-Bootstrap Downloader WebComponent",version:"0.19.25",main:"release/release.js",publishConfig:{access:"public"},author:"Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",authorUrl:"https://dariocaruso.info",license:"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0",engines:{node:">=16.0.0"},scripts:{start:"sirv dist",dev:"rm -rf ./dist && rollup -c -w",build:"rm -rf ./dist && rollup -c","generate-manifest":"npm run generate-schemes && monorepo-wc-packages-manifester --dir $PWD","generate-component-schema":"ts-json-schema-generator --type 'Component' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json","generate-events-schema":"ts-json-schema-generator --type 'Events' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent_events.type.d.json","generate-schemes":"npm run generate-events-schema && npm run generate-component-schema",copydest:"rm -rf release && mkdir -p release && mkdir -p release && cp dist/* ./release/","build-extra":"tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*","build:release":"PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",prepublish:"npm run build:release"},devDependencies:{"@rollup/plugin-alias":"^3.1.2","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^4.0.0","@rollup/plugin-typescript":"^8.2.1","@tsconfig/svelte":"^1.0.10","@types/node":"^16.7.1","@typescript-eslint/eslint-plugin":"^4.22.0","@typescript-eslint/parser":"^4.22.0",eslint:"^7.25.0","eslint-plugin-jsdoc":"^33.0.0","eslint-plugin-svelte3":"^3.2.0","monorepo-wc-packages-manifester":"^0.0.3","node-sass":"^6.0.1",postcss:"^8.2.13","postcss-load-config":"^3.0.1",prettier:"^2.8.4",rollup:"^2.46.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-css-only":"^3.1.0","rollup-plugin-livereload":"^2.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-ts-paths":"^1.0.5","rollup-plugin-typescript2":"^0.31.1",sass:"^1.32.12","sirv-cli":"^1.0.11",svelte:"^3.46.2","svelte-check":"^1.5.2","svelte-preprocess":"^4.7.2","ts-json-schema-generator":"^0.98.0","ts-node":"^9.1.1",tslib:"^2.2.0",ttypescript:"^1.5.12",typescript:"^4.2.4","typescript-transform-paths":"^2.2.3","wc-js-utils":"^0.0.1"},dependencies:{"@htmlbricks/hb-dialog":"^0.19.25"},keywords:["svelte","svelte-webcomponents","webcomponents"],contributors:[],gitHead:"b4a05fc99c8059ff8dd3154518ed9b83ca332216"},U=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},F=Object.prototype.toString,M=(L=Object.create(null),function(e){var t=F.call(e);return L[t]||(L[t]=t.slice(8,-1).toLowerCase())});function I(e){return e=e.toLowerCase(),function(t){return M(t)===e}}function q(e){return Array.isArray(e)}function V(e){return void 0===e}var W=I("ArrayBuffer");function H(e){return null!==e&&"object"==typeof e}function z(e){if("object"!==M(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var J=I("Date"),K=I("File"),X=I("Blob"),Y=I("FileList");function Q(e){return"[object Function]"===F.call(e)}var G=I("URLSearchParams");function Z(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),q(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var ee,te=(ee="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return ee&&e instanceof ee}),ne={isArray:q,isArrayBuffer:W,isBuffer:function(e){return null!==e&&!V(e)&&null!==e.constructor&&!V(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||F.call(e)===t||Q(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&W(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:H,isPlainObject:z,isUndefined:V,isDate:J,isFile:K,isBlob:X,isFunction:Q,isStream:function(e){return H(e)&&Q(e.pipe)},isURLSearchParams:G,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:Z,merge:function e(){var t={};function n(n,r){z(t[r])&&z(n)?t[r]=e(t[r],n):z(n)?t[r]=e({},n):q(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)Z(arguments[r],n);return t},extend:function(e,t,n){return Z(t,(function(t,r){e[r]=n&&"function"==typeof t?U(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,s={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)s[i=r[o]]||(t[i]=e[i],s[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:M,kindOfTest:I,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(V(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:te,isFileList:Y};function re(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var oe=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(ne.isURLSearchParams(t))r=t.toString();else{var o=[];ne.forEach(t,(function(e,t){null!=e&&(ne.isArray(e)?t+="[]":e=[e],ne.forEach(e,(function(e){ne.isDate(e)?e=e.toISOString():ne.isObject(e)&&(e=JSON.stringify(e)),o.push(re(t)+"="+re(e))})))})),r=o.join("&")}if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e};function ie(){this.handlers=[]}ie.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},ie.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},ie.prototype.forEach=function(e){ne.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var se=ie,ae=function(e,t){ne.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))};function ue(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}ne.inherits(ue,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var ce=ue.prototype,le={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){le[e]={value:e}})),Object.defineProperties(ue,le),Object.defineProperty(ce,"isAxiosError",{value:!0}),ue.from=function(e,t,n,r,o,i){var s=Object.create(ce);return ne.toFlatObject(e,s,(function(e){return e!==Error.prototype})),ue.call(s,e.message,t,n,r,o),s.name=e.name,i&&Object.assign(s,i),s};var fe=ue,de={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var pe=function(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":ne.isDate(e)?e.toISOString():ne.isArrayBuffer(e)||ne.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,i){if(ne.isPlainObject(o)||ne.isArray(o)){if(-1!==n.indexOf(o))throw Error("Circular reference detected in "+i);n.push(o),ne.forEach(o,(function(n,o){if(!ne.isUndefined(n)){var s,a=i?i+"."+o:o;if(n&&!i&&"object"==typeof n)if(ne.endsWith(o,"{}"))n=JSON.stringify(n);else if(ne.endsWith(o,"[]")&&(s=ne.toArray(n)))return void s.forEach((function(e){!ne.isUndefined(e)&&t.append(a,r(e))}));e(n,a)}})),n.pop()}else t.append(i,r(o))}(e),t},he=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new fe("Request failed with status code "+n.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)},me=ne.isStandardBrowserEnv()?{write:function(e,t,n,r,o,i){var s=[];s.push(e+"="+encodeURIComponent(t)),ne.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ne.isString(r)&&s.push("path="+r),ne.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},ge=function(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t},ve=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],ye=function(e){var t,n,r,o={};return e?(ne.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=ne.trim(e.substr(0,r)).toLowerCase(),n=ne.trim(e.substr(r+1)),t){if(o[t]&&ve.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o},be=ne.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=ne.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};function we(e){fe.call(this,null==e?"canceled":e,fe.ERR_CANCELED),this.name="CanceledError"}ne.inherits(we,fe,{__CANCEL__:!0});var Ee=we,Oe=function(e){return new Promise((function(t,n){var r,o=e.data,i=e.headers,s=e.responseType;function a(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}ne.isFormData(o)&&ne.isStandardBrowserEnv()&&delete i["Content-Type"];var u=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(c+":"+l)}var f=ge(e.baseURL,e.url);function d(){if(u){var r="getAllResponseHeaders"in u?ye(u.getAllResponseHeaders()):null,o={data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u};he((function(e){t(e),a()}),(function(e){n(e),a()}),o),u=null}}if(u.open(e.method.toUpperCase(),oe(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(d)},u.onabort=function(){u&&(n(new fe("Request aborted",fe.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new fe("Network Error",fe.ERR_NETWORK,e,u,u)),u=null},u.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||de;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new fe(t,r.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,u)),u=null},ne.isStandardBrowserEnv()){var p=(e.withCredentials||be(f))&&e.xsrfCookieName?me.read(e.xsrfCookieName):void 0;p&&(i[e.xsrfHeaderName]=p)}"setRequestHeader"in u&&ne.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:u.setRequestHeader(t,e)})),ne.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(r=function(e){u&&(n(!e||e&&e.type?new Ee:e),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r))),o||(o=null);var h,m=(h=/^([-+\w]{1,25})(:?\/\/|:)/.exec(f))&&h[1]||"";m&&-1===["http","https","file"].indexOf(m)?n(new fe("Unsupported protocol "+m+":",fe.ERR_BAD_REQUEST,e)):u.send(o)}))},Re={"Content-Type":"application/x-www-form-urlencoded"};function Ce(e,t){!ne.isUndefined(e)&&ne.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var $e,xe={transitional:de,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&($e=Oe),$e),transformRequest:[function(e,t){if(ae(t,"Accept"),ae(t,"Content-Type"),ne.isFormData(e)||ne.isArrayBuffer(e)||ne.isBuffer(e)||ne.isStream(e)||ne.isFile(e)||ne.isBlob(e))return e;if(ne.isArrayBufferView(e))return e.buffer;if(ne.isURLSearchParams(e))return Ce(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=ne.isObject(e),o=t&&t["Content-Type"];if((n=ne.isFileList(e))||r&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return pe(n?{"files[]":e}:e,i&&new i)}return r||"application/json"===o?(Ce(t,"application/json"),function(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||xe.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&ne.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw fe.from(e,fe.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:null},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ne.forEach(["delete","get","head"],(function(e){xe.headers[e]={}})),ne.forEach(["post","put","patch"],(function(e){xe.headers[e]=ne.merge(Re)}));var _e=xe,Ae=function(e,t,n){var r=this||_e;return ne.forEach(n,(function(n){e=n.call(r,e,t)})),e},Te=function(e){return!(!e||!e.__CANCEL__)};function Se(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ee}var je=function(e){return Se(e),e.headers=e.headers||{},e.data=Ae.call(e,e.data,e.headers,e.transformRequest),e.headers=ne.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),ne.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||_e.adapter)(e).then((function(t){return Se(e),t.data=Ae.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Te(t)||(Se(e),t&&t.response&&(t.response.data=Ae.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Ne=function(e,t){t=t||{};var n={};function r(e,t){return ne.isPlainObject(e)&&ne.isPlainObject(t)?ne.merge(e,t):ne.isPlainObject(t)?ne.merge({},t):ne.isArray(t)?t.slice():t}function o(n){return ne.isUndefined(t[n])?ne.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function i(e){if(!ne.isUndefined(t[e]))return r(void 0,t[e])}function s(n){return ne.isUndefined(t[n])?ne.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function a(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return ne.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,r=t(e);ne.isUndefined(r)&&t!==a||(n[e]=r)})),n},De="0.27.2",ke=De,Pe={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Pe[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var Le={};Pe.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ke+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new fe(r(o," has been removed"+(t?" in "+t:"")),fe.ERR_DEPRECATED);return t&&!Le[o]&&(Le[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var Be={assertOptions:function(e,t,n){if("object"!=typeof e)throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],s=t[i];if(s){var a=e[i],u=void 0===a||s(a,i,e);if(!0!==u)throw new fe("option "+i+" must be "+u,fe.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new fe("Unknown option "+i,fe.ERR_BAD_OPTION)}},validators:Pe},Ue=Be.validators;function Fe(e){this.defaults=e,this.interceptors={request:new se,response:new se}}Fe.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Ne(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&Be.assertOptions(n,{silentJSONParsing:Ue.transitional(Ue.boolean),forcedJSONParsing:Ue.transitional(Ue.boolean),clarifyTimeoutError:Ue.transitional(Ue.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,s=[];if(this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)})),!o){var a=[je,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(s),i=Promise.resolve(t);a.length;)i=i.then(a.shift(),a.shift());return i}for(var u=t;r.length;){var c=r.shift(),l=r.shift();try{u=c(u)}catch(e){l(e);break}}try{i=je(u)}catch(e){return Promise.reject(e)}for(;s.length;)i=i.then(s.shift(),s.shift());return i},Fe.prototype.getUri=function(e){e=Ne(this.defaults,e);var t=ge(e.baseURL,e.url);return oe(t,e.params,e.paramsSerializer)},ne.forEach(["delete","get","head","options"],(function(e){Fe.prototype[e]=function(t,n){return this.request(Ne(n||{},{method:e,url:t,data:(n||{}).data}))}})),ne.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ne(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Fe.prototype[e]=t(),Fe.prototype[e+"Form"]=t(!0)}));var Me=Fe;function Ie(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new Ee(e),t(n.reason))}))}Ie.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Ie.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},Ie.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},Ie.source=function(){var e;return{token:new Ie((function(t){e=t})),cancel:e}};var qe=Ie;var Ve=function e(t){var n=new Me(t),r=U(Me.prototype.request,n);return ne.extend(r,Me.prototype,n),ne.extend(r,n),r.create=function(n){return e(Ne(t,n))},r}(_e);Ve.Axios=Me,Ve.CanceledError=Ee,Ve.CancelToken=qe,Ve.isCancel=Te,Ve.VERSION=De,Ve.toFormData=pe,Ve.AxiosError=fe,Ve.Cancel=Ve.CanceledError,Ve.all=function(e){return Promise.all(e)},Ve.spread=function(e){return function(t){return e.apply(null,t)}},Ve.isAxiosError=function(e){return ne.isObject(e)&&!0===e.isAxiosError};var We=Ve;Ve.default=We;var He,ze=(function(e,t){t.__esModule=!0,t.LanguageTranslator=t.addComponent=t.getChildStyleToPass=void 0,t.getChildStyleToPass=function(e,t){var n,r,o="";if(e&&(null==t?void 0:t.length)&&(null===(n=Object.keys(e))||void 0===n?void 0:n.length)&&(null===(r=null==t?void 0:t.filter((function(t){return Object.keys(e).includes(t.name)})))||void 0===r?void 0:r.length))for(var i=function(n){(null==t?void 0:t.filter((function(t){return t.name===n&&t.defaultValue!==e[n]})))&&(o+="".concat(n,":").concat(e[n],";"))},s=0,a=Object.keys(e);s<a.length;s++)i(a[s]);return o},t.addComponent=function(e){var t,n=(null===(t=null==e?void 0:e.repoName.split("/"))||void 0===t?void 0:t[1])||(null==e?void 0:e.repoName);if(!n)throw new Error("wrong componentPath "+(null==e?void 0:e.repoName));if(!(null==e?void 0:e.version))throw new Error("wrong version "+(null==e?void 0:e.version));var r=(null==e?void 0:e.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var o=document.createElement("script");o.id=n+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(e.repoName,"@").concat(e.version,"/").concat(r),(null==e?void 0:e.local)&&location.href.includes("localhost")&&(o.src="".concat(e.local)),document.head.appendChild(o)}catch(e){console.warn(e)}};var n=function(){function e(e){if(!(null==e?void 0:e.dictionary))throw new Error("no dictionary provided");this.dictionary=e.dictionary,this.setLang(null==e?void 0:e.lang)}return e.prototype.setLang=function(t){t||(t=e.getDefaultLang()),this.lang=t},e.prototype.translateWord=function(t,n){return e.getDictionaryWord(t,this.dictionary,n||this.lang)},e.prototype.translateDate=function(t,n,r){return e.formatDate(t,n,r||this.lang)},e.getDefaultLang=function(){var e,t,n,r,o,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(t=null===(e=navigator.languages[0])||void 0===e?void 0:e.split("-")[0])||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.length)&&(i=null===(o=null===(r=navigator.languages[0])||void 0===r?void 0:r.split("-")[0])||void 0===o?void 0:o.toLowerCase()),i},e.getDictionaryWord=function(t,n,r){var o;if(!t)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(r&&(null===(o=n[r])||void 0===o?void 0:o[t]))return n[r][t];var i="",s=e.getDefaultLang();if(!r||s!==r){var a=null==n?void 0:n[s];(null==a?void 0:a[t])&&(i=a[t])}return i},e.formatDate=function(t,n,r){if(!t)throw new Error("no date provided");if("function"!=typeof t.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(r||e.getDefaultLang(),n).format(t)},e}();t.LanguageTranslator=n}(He={exports:{}},He.exports),He.exports),Je=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ke=/\n/g,Xe=/^\s*/,Ye=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Qe=/^:\s*/,Ge=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ze=/^[;\s]*/,et=/^\s+|\s+$/g,tt="\n",nt="/",rt="*",ot="",it="comment",st="declaration",at=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(e){var t=e.match(Ke);t&&(n+=t.length);var o=e.lastIndexOf(tt);r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new s(e),c(),t}}function s(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function a(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function u(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function c(){u(Xe)}function l(e){var t;for(e=e||[];t=f();)!1!==t&&e.push(t);return e}function f(){var t=i();if(nt==e.charAt(0)&&rt==e.charAt(1)){for(var n=2;ot!=e.charAt(n)&&(rt!=e.charAt(n)||nt!=e.charAt(n+1));)++n;if(n+=2,ot===e.charAt(n-1))return a("End of comment missing");var s=e.slice(2,n-2);return r+=2,o(s),e=e.slice(n),r+=2,t({type:it,comment:s})}}function d(){var e=i(),t=u(Ye);if(t){if(f(),!u(Qe))return a("property missing ':'");var n=u(Ge),r=e({type:st,property:ut(t[0].replace(Je,ot)),value:n?ut(n[0].replace(Je,ot)):ot});return u(Ze),r}}return s.prototype.content=e,c(),function(){var e,t=[];for(l(t);e=d();)!1!==e&&(t.push(e),l(t));return t}()};function ut(e){return e?e.replace(et,ot):ot}var ct=function(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var o,i,s=at(e),a="function"==typeof t,u=0,c=s.length;u<c;u++)o=(n=s[u]).property,i=n.value,a?t(o,i,n):i&&(r||(r={}),r[o]=i);return r},lt={vars:[{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"},{name:"--hb-modal-max-width",valueType:"htmlsize",defaultValue:"500px"}],parts:[{name:"modal-dialog",description:"The modal dialog"}]};function ft(t){let n,r,o,i,g,v,y,b,w,E,O,R,C,$,x,_,A=Math.round(t[0])+"";return{c(){n=c("hb-dialog"),r=c("span"),o=c("slot"),i=l(t[1]),g=f(),v=c("div"),y=c("div"),b=c("div"),w=l(A),E=l("%"),R=f(),C=c("span"),this.c=e,d(o,"name","title"),d(r,"slot","title"),d(b,"class","progress-bar"),m(b,"width",Math.round(t[0])+"%"),d(b,"role","progressbar"),d(b,"aria-valuenow",O=Math.round(t[0])),d(b,"aria-valuemin","0"),d(b,"aria-valuemax","100"),d(y,"class","progress"),d(v,"slot","body-content"),d(C,"slot","modal-footer"),p(n,"style",t[2]),p(n,"show",$=t[0]?"yes":"no")},m(e,u){var c,l,f,d;a(e,n,u),s(n,r),s(r,o),s(o,i),s(n,g),s(n,v),s(v,y),s(y,b),s(b,w),s(b,E),s(n,R),s(n,C),x||(c=n,l="modalShow",f=t[8],c.addEventListener(l,f,d),_=()=>c.removeEventListener(l,f,d),x=!0)},p(e,[t]){2&t&&h(i,e[1]),1&t&&A!==(A=Math.round(e[0])+"")&&h(w,A),1&t&&m(b,"width",Math.round(e[0])+"%"),1&t&&O!==(O=Math.round(e[0]))&&d(b,"aria-valuenow",O),4&t&&p(n,"style",e[2]),1&t&&$!==($=e[0]?"yes":"no")&&p(n,"show",$)},i:e,o:e,d(e){e&&u(n),x=!1,_()}}}function dt(e,t,n){let r,o="";const i=b(),s=w();ze.addComponent({repoName:"@htmlbricks/hb-dialog",version:B.version});let a,{id:u}=t,{style:c}=t,{percentage:l}=t,{title:f}=t;function d(e){!function(e,t){s(e,t),i.dispatchEvent&&i.dispatchEvent(new CustomEvent(e,{detail:t}))}("modalShow",e)}return e.$$set=e=>{"id"in e&&n(4,u=e.id),"style"in e&&n(5,c=e.style),"percentage"in e&&n(0,l=e.percentage),"title"in e&&n(1,f=e.title)},e.$$.update=()=>{243&e.$$.dirty&&(l?"string"==typeof l&&n(0,l=parseInt(l)):n(0,l=0),u||n(4,u=null),f||n(1,f="loading"),c&&(n(6,r=ct(c)),n(2,o=ze.getChildStyleToPass(r,null==lt?void 0:lt.vars))),a||n(7,a=!1))},[l,f,o,d,u,c,r,a,e=>d(e.detail)]}class pt extends P{constructor(e){super(),this.shadowRoot.innerHTML='<style>@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress{display:flex;height:1rem;overflow:hidden;font-size:0.75rem;background-color:#e9ecef;border-radius:0.25rem}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:#fff;text-align:center;white-space:nowrap;background-color:var(--bs-primary,#07689f);transition:width 0.6s ease}@media(prefers-reduced-motion: reduce){.progress-bar{transition:none}}@media(prefers-reduced-motion: reduce){}:host{font-family:"Roboto", sans-serif}</style>',k(this,{target:this.shadowRoot,props:g(this.attributes),customElement:!0},dt,ft,i,{id:4,style:5,percentage:0,title:1},null),e&&(e.target&&a(e.target,this,e.anchor),e.props&&(this.$set(e.props),S()))}static get observedAttributes(){return["id","style","percentage","title"]}get id(){return this.$$.ctx[4]}set id(e){this.$$set({id:e}),S()}get style(){return this.$$.ctx[5]}set style(e){this.$$set({style:e}),S()}get percentage(){return this.$$.ctx[0]}set percentage(e){this.$$set({percentage:e}),S()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),S()}}return customElements.define("hb-dialog-loader",pt),pt}();
|
|
2
2
|
//# sourceMappingURL=release.js.map
|