@htmlbricks/hb-editor-video 0.7.7 → 0.7.8
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/release.js +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@htmlbricks/hb-editor-video",
|
|
3
3
|
"displayName": "Svelte Boostrap Video Card WebComponent",
|
|
4
4
|
"description": "Svelte Boostrap Video Card WebComponent",
|
|
5
|
-
"version": "0.7.
|
|
5
|
+
"version": "0.7.8",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dayjs": "^1.10.7"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@htmlbricks/hb-jsutils": "^0.7.
|
|
33
|
+
"@htmlbricks/hb-jsutils": "^0.7.8",
|
|
34
34
|
"@rollup/plugin-alias": "^3.1.2",
|
|
35
35
|
"@rollup/plugin-commonjs": "^18.0.0",
|
|
36
36
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"webcomponents"
|
|
75
75
|
],
|
|
76
76
|
"contributors": [],
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "8d5d3227354adbee75d50012b9c05fe0e8a7304d"
|
|
78
78
|
}
|
package/release/release.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function r(t){t.forEach(e)}function o(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s,a;function u(t,e){return s||(s=document.createElement("a")),s.href=e,t===s.href}function c(t,e){t.appendChild(e)}function d(t,e,n){t.insertBefore(e,n||null)}function l(t){t.parentNode.removeChild(t)}function f(t){return document.createElement(t)}function m(t){return document.createTextNode(t)}function h(){return m(" ")}function b(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function p(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function g(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:p(t,e,n)}function y(t){return""===t?null:+t}function $(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function v(t,e){t.value=null==e?"":e}function w(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function x(t){const e={};for(const n of t)e[n.name]=n.value;return e}function k(t){a=t}function V(){if(!a)throw new Error("Function called outside component initialization");return a}function S(){const t=V();return(e,n)=>{const r=t.$$.callbacks[e];if(r){const o=function(t,e,n=!1){const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n,!1,e),r}(e,n);r.slice().forEach((e=>{e.call(t,o)}))}}}const M=[],D=[],_=[],T=[],C=Promise.resolve();let O=!1;function E(t){_.push(t)}const Y=new Set;let H=0;function L(){const t=a;do{for(;H<M.length;){const t=M[H];H++,k(t),N(t.$$)}for(k(null),M.length=0,H=0;D.length;)D.pop()();for(let t=0;t<_.length;t+=1){const e=_[t];Y.has(e)||(Y.add(e),e())}_.length=0}while(M.length);for(;T.length;)T.pop()();O=!1,Y.clear(),k(t)}function N(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(E)}}const j=new Set;function I(t,e){-1===t.$$.dirty[0]&&(M.push(t),O||(O=!0,C.then(L)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function A(i,s,u,c,d,f,m,h=[-1]){const b=a;k(i);const p=i.$$={fragment:null,ctx:null,props:f,update:t,not_equal:d,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(b?b.$$.context:[])),callbacks:n(),dirty:h,skip_bound:!1,root:s.target||b.$$.root};m&&m(p.root);let g=!1;if(p.ctx=u?u(i,s.props||{},((t,e,...n)=>{const r=n.length?n[0]:e;return p.ctx&&d(p.ctx[t],p.ctx[t]=r)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](r),g&&I(i,t)),e})):[],p.update(),g=!0,r(p.before_update),p.fragment=!!c&&c(p.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);p.fragment&&p.fragment.l(t),t.forEach(l)}else p.fragment&&p.fragment.c();s.intro&&((y=i.$$.fragment)&&y.i&&(j.delete(y),y.i($))),function(t,n,i,s){const{fragment:a,on_mount:u,on_destroy:c,after_update:d}=t.$$;a&&a.m(n,i),s||E((()=>{const n=u.map(e).filter(o);c?c.push(...n):r(n),t.$$.on_mount=[]})),d.forEach(E)}(i,s.target,s.anchor,s.customElement),L()}var y,$;k(b)}let W;"function"==typeof HTMLElement&&(W=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(o);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function z(t){var e={exports:{}};return t(e,e.exports),e.exports}var P=z((function(t,e){t.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",o="second",i="minute",s="hour",a="day",u="week",c="month",d="quarter",l="year",f="date",m="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},y={s:g,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),o=e.clone().add(r,c),i=n-o<0,s=e.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-s:s-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:l,w:u,d:a,D:f,h:s,m:i,s:o,ms:r,Q:d}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},$="en",v={};v[$]=p;var w=function(t){return t instanceof S},x=function(t,e,n){var r;if(!t)return $;if("string"==typeof t)v[t]&&(r=t),e&&(v[t]=e,r=t);else{var o=t.name;v[o]=t,r=o}return!n&&r&&($=r),r||!n&&$},k=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},V=y;V.l=x,V.i=w,V.w=function(t,e){return k(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function p(t){this.$L=x(t.locale,null,!0),this.parse(t)}var g=p.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(V.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return V},g.isValid=function(){return!(this.$d.toString()===m)},g.isSame=function(t,e){var n=k(t);return this.startOf(e)<=n&&n<=this.endOf(e)},g.isAfter=function(t,e){return k(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<k(t)},g.$g=function(t,e,n){return V.u(t)?this[e]:this.set(n,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var n=this,r=!!V.u(e)||e,d=V.p(t),m=function(t,e){var o=V.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?o:o.endOf(a)},h=function(t,e){return V.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},b=this.$W,p=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case l:return r?m(1,0):m(31,11);case c:return r?m(1,p):m(0,p+1);case u:var $=this.$locale().weekStart||0,v=(b<$?b+7:b)-$;return m(r?g-v:g+(6-v),p);case a:case f:return h(y+"Hours",0);case s:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case o:return h(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var n,u=V.p(t),d="set"+(this.$u?"UTC":""),m=(n={},n[a]=d+"Date",n[f]=d+"Date",n[c]=d+"Month",n[l]=d+"FullYear",n[s]=d+"Hours",n[i]=d+"Minutes",n[o]=d+"Seconds",n[r]=d+"Milliseconds",n)[u],h=u===a?this.$D+(e-this.$W):e;if(u===c||u===l){var b=this.clone().set(f,1);b.$d[m](h),b.init(),this.$d=b.set(f,Math.min(this.$D,b.daysInMonth())).$d}else m&&this.$d[m](h);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[V.p(t)]()},g.add=function(r,d){var f,m=this;r=Number(r);var h=V.p(d),b=function(t){var e=k(m);return V.w(e.date(e.date()+Math.round(t*r)),m)};if(h===c)return this.set(c,this.$M+r);if(h===l)return this.set(l,this.$y+r);if(h===a)return b(1);if(h===u)return b(7);var p=(f={},f[i]=e,f[s]=n,f[o]=t,f)[h]||1,g=this.$d.getTime()+r*p;return V.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||m;var r=t||"YYYY-MM-DDTHH:mm:ssZ",o=V.z(this),i=this.$H,s=this.$m,a=this.$M,u=n.weekdays,c=n.months,d=function(t,n,o,i){return t&&(t[n]||t(e,r))||o[n].substr(0,i)},l=function(t){return V.s(i%12||12,t,"0")},f=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:V.s(a+1,2,"0"),MMM:d(n.monthsShort,a,c,3),MMMM:d(c,a),D:this.$D,DD:V.s(this.$D,2,"0"),d:String(this.$W),dd:d(n.weekdaysMin,this.$W,u,2),ddd:d(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:V.s(i,2,"0"),h:l(1),hh:l(2),a:f(i,s,!0),A:f(i,s,!1),m:String(s),mm:V.s(s,2,"0"),s:String(this.$s),ss:V.s(this.$s,2,"0"),SSS:V.s(this.$ms,3,"0"),Z:o};return r.replace(b,(function(t,e){return e||h[t]||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,f,m){var h,b=V.p(f),p=k(r),g=(p.utcOffset()-this.utcOffset())*e,y=this-p,$=V.m(this,p);return $=(h={},h[l]=$/12,h[c]=$,h[d]=$/3,h[u]=(y-g)/6048e5,h[a]=(y-g)/864e5,h[s]=y/n,h[i]=y/e,h[o]=y/t,h)[b]||y,m?$:V.a($)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return v[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=x(t,e,!0);return r&&(n.$L=r),n},g.clone=function(){return V.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},p}(),M=S.prototype;return k.prototype=M,[["$ms",r],["$s",o],["$m",i],["$H",s],["$W",a],["$M",c],["$y",l],["$D",f]].forEach((function(t){M[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),k.extend=function(t,e){return t.$i||(t(e,S,k),t.$i=!0),k},k.locale=x,k.isDayjs=w,k.unix=function(t){return k(1e3*t)},k.en=v[$],k.Ls=v,k.p={},k}()})),F="0.7.7",R=z((function(t,e){var n,r,o,i,s,a,u,c,d,l,f,m,h,b,p,g,y,$,v;t.exports=(u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,f={years:c=31536e6,months:d=2592e6,days:a=864e5,hours:s=36e5,minutes:i=6e4,seconds:o=1e3,milliseconds:1,weeks:6048e5},m=function(t){return t instanceof v},h=function(t,e,n){return new v(t,n,e.$l)},b=function(t){return r.p(t)+"s"},p=function(t){return t<0},g=function(t){return p(t)?Math.ceil(t):Math.floor(t)},y=function(t){return Math.abs(t)},$=function(t,e){return t?p(t)?{negative:!0,format:""+y(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},v=function(){function t(t,e,n){var r=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return h(t*f[b(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach((function(e){r.$d[b(e)]=t[e]})),this.calMilliseconds(),this;if("string"==typeof t){var o=t.match(l);if(o){var i=o.slice(2).map((function(t){return null!=t?Number(t):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var e=t.prototype;return e.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(e,n){return e+(t.$d[n]||0)*f[n]}),0)},e.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=g(t/c),t%=c,this.$d.months=g(t/d),t%=d,this.$d.days=g(t/a),t%=a,this.$d.hours=g(t/s),t%=s,this.$d.minutes=g(t/i),t%=i,this.$d.seconds=g(t/o),t%=o,this.$d.milliseconds=t},e.toISOString=function(){var t=$(this.$d.years,"Y"),e=$(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=$(n,"D"),o=$(this.$d.hours,"H"),i=$(this.$d.minutes,"M"),s=this.$d.seconds||0;this.$d.milliseconds&&(s+=this.$d.milliseconds/1e3);var a=$(s,"S"),u=t.negative||e.negative||r.negative||o.negative||i.negative||a.negative,c=o.format||i.format||a.format?"T":"",d=(u?"-":"")+"P"+t.format+e.format+r.format+c+o.format+i.format+a.format;return"P"===d||"-P"===d?"P0D":d},e.toJSON=function(){return this.toISOString()},e.format=function(t){var e=t||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return e.replace(u,(function(t,e){return e||String(n[t])}))},e.as=function(t){return this.$ms/f[b(t)]},e.get=function(t){var e=this.$ms,n=b(t);return"milliseconds"===n?e%=1e3:e="weeks"===n?g(e/f[n]):this.$d[n],0===e?0:e},e.add=function(t,e,n){var r;return r=e?t*f[b(e)]:m(t)?t.$ms:h(t,this).$ms,h(this.$ms+r*(n?-1:1),this)},e.subtract=function(t,e){return this.add(t,e,!0)},e.locale=function(t){var e=this.clone();return e.$l=t,e},e.clone=function(){return h(this.$ms,this)},e.humanize=function(t){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},e.milliseconds=function(){return this.get("milliseconds")},e.asMilliseconds=function(){return this.as("milliseconds")},e.seconds=function(){return this.get("seconds")},e.asSeconds=function(){return this.as("seconds")},e.minutes=function(){return this.get("minutes")},e.asMinutes=function(){return this.as("minutes")},e.hours=function(){return this.get("hours")},e.asHours=function(){return this.as("hours")},e.days=function(){return this.get("days")},e.asDays=function(){return this.as("days")},e.weeks=function(){return this.get("weeks")},e.asWeeks=function(){return this.as("weeks")},e.months=function(){return this.get("months")},e.asMonths=function(){return this.as("months")},e.years=function(){return this.get("years")},e.asYears=function(){return this.as("years")},t}(),function(t,e,o){n=o,r=o().$utils(),o.duration=function(t,e){var n=o.locale();return h(t,{$l:n},e)},o.isDuration=m;var i=e.prototype.add,s=e.prototype.subtract;e.prototype.add=function(t,e){return m(t)&&(t=t.asMilliseconds()),i.bind(this)(t,e)},e.prototype.subtract=function(t,e){return m(t)&&(t=t.asMilliseconds()),s.bind(this)(t,e)}})})),U=z((function(t,e){e.__esModule=!0,e.LanguageTranslator=e.addComponent=e.getChildStyleToPass=void 0,e.getChildStyleToPass=function(t,e){var n,r,o="";if(t&&(null==e?void 0:e.length)&&(null===(n=Object.keys(t))||void 0===n?void 0:n.length)&&(null===(r=null==e?void 0:e.filter((function(e){return Object.keys(t).includes(e.name)})))||void 0===r?void 0:r.length))for(var i=function(n){(null==e?void 0:e.filter((function(e){return e.name===n&&e.defaultValue!==t[n]})))&&(o+="".concat(n,":").concat(t[n],";"))},s=0,a=Object.keys(t);s<a.length;s++){i(a[s])}return o},e.addComponent=function(t,e,n){if(!document.getElementById("hb-"+t+"-script")){var r=document.createElement("script");r.id="hb-"+t+"-script",r.src="https://cdn.jsdelivr.net/npm/@htmlbricks/hb-".concat(t,"@").concat(e,"/release/release.js"),n&&location.href.includes("localhost")&&(r.src="http://localhost:6006/".concat(t,"/dist/release.js")),document.head.appendChild(r)}};var n=function(){function t(t){if(!(null==t?void 0:t.dictionary))throw new Error("no dictionary provided");this.dictionary=t.dictionary,this.setLang(null==t?void 0:t.lang)}return t.prototype.setLang=function(e){e||(e=t.getDefaultLang()),this.lang=e},t.prototype.translateWord=function(e,n){return t.getDictionaryWord(e,this.dictionary,n||this.lang)},t.prototype.translateDate=function(e,n,r){return t.formatDate(e,n,r||this.lang)},t.getDefaultLang=function(){var t,e,n,r,o,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(e=null===(t=navigator.languages[0])||void 0===t?void 0:t.split("-")[0])||void 0===e?void 0:e.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},t.getDictionaryWord=function(e,n,r){var o;if(!e)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[e]))return n[r][e];var i="",s=t.getDefaultLang();if(!r||s!==r){var a=null==n?void 0:n[s];(null==a?void 0:a[e])&&(i=a[e])}return i},t.formatDate=function(e,n,r){if(!e)throw new Error("no date provided");if("function"!=typeof e.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(r||t.getDefaultLang(),n).format(e)},t}();e.LanguageTranslator=n}));function J(t){let e,n,r,o,i,s,a,u;return{c(){e=f("div"),n=f("hb-range-slider"),g(n,"max",r=t[4].toString()),g(n,"min",o=G.toString()),g(n,"maxval",i=t[2].maxValue.toString()),g(n,"minval",s=t[2].minValue.toString()),w(e,"width","100%"),w(e,"margin-top","20px")},m(r,o){d(r,e,o),c(e,n),a||(u=b(n,"changeRangeValues",t[35]),a=!0)},p(t,e){16&e[0]&&r!==(r=t[4].toString())&&g(n,"max",r),4&e[0]&&i!==(i=t[2].maxValue.toString())&&g(n,"maxval",i),4&e[0]&&s!==(s=t[2].minValue.toString())&&g(n,"minval",s)},d(t){t&&l(e),a=!1,u()}}}function Z(t){let e,n,o;return{c(){e=f("hb-form"),w(e,"margin","40px auto 20px auto"),w(e,"display","block"),g(e,"submitted",t[11]),g(e,"schema",t[1])},m(r,i){d(r,e,i),n||(o=[b(e,"submit",t[36]),b(e,"change",t[37])],n=!0)},p(t,n){2048&n[0]&&g(e,"submitted",t[11]),2&n[0]&&g(e,"schema",t[1])},d(t){t&&l(e),n=!1,r(o)}}}function B(t){let e,n,r,o,i,s,a=P.duration(1e3*(t[2].maxValue-t[2].minValue)).hours()?P.duration(1e3*(t[2].maxValue-t[2].minValue)).format("H")+" hours":"",u=P.duration(1e3*(t[2].maxValue-t[2].minValue)).minutes()?P.duration(1e3*(t[2].maxValue-t[2].minValue)).format("m")+" minutes":"",c=P.duration(parseInt((1e3*(t[2].maxValue-t[2].minValue)).toString())).format("s.SSS")+" seconds";return{c(){e=m("duration:\n\t\t\t\t"),n=m(a),r=h(),o=m(u),i=h(),s=m(c)},m(t,a){d(t,e,a),d(t,n,a),d(t,r,a),d(t,o,a),d(t,i,a),d(t,s,a)},p(t,e){4&e[0]&&a!==(a=P.duration(1e3*(t[2].maxValue-t[2].minValue)).hours()?P.duration(1e3*(t[2].maxValue-t[2].minValue)).format("H")+" hours":"")&&$(n,a),4&e[0]&&u!==(u=P.duration(1e3*(t[2].maxValue-t[2].minValue)).minutes()?P.duration(1e3*(t[2].maxValue-t[2].minValue)).format("m")+" minutes":"")&&$(o,u),4&e[0]&&c!==(c=P.duration(parseInt((1e3*(t[2].maxValue-t[2].minValue)).toString())).format("s.SSS")+" seconds")&&$(s,c)},d(t){t&&l(e),t&&l(n),t&&l(r),t&&l(o),t&&l(i),t&&l(s)}}}function q(e){let n,r,o;return{c(){n=f("button"),n.textContent="send",p(n,"class","btn btn-sm btn-primary"),n.disabled=!0},m(t,i){d(t,n,i),r||(o=b(n,"click",e[16]),r=!0)},p:t,d(t){t&&l(n),r=!1,o()}}}function K(e){let n,r,o;return{c(){n=f("button"),n.textContent="send",p(n,"class","btn btn-sm btn-primary")},m(t,i){d(t,n,i),r||(o=b(n,"click",e[16]),r=!0)},p:t,d(t){t&&l(n),r=!1,o()}}}function Q(e){let n,o,i,s,a,g,$,x,k,V,S,M,D,_,T,C,O,E,Y,H,L,N,j,I,A,W,z,P,F,R,U,Q,G,X,tt,et,nt,rt,ot,it,st=e[3]&&e[2]&&J(e),at=e[1]&&Z(e),ut=e[2]?.maxValue&&B(e);function ct(t,e){return t[12]?K:q}let dt=ct(e),lt=dt(e);return{c(){n=f("div"),o=f("div"),i=f("video"),s=f("source"),g=m("\n\t\t\tYour browser does not support the video tag."),$=h(),x=f("div"),k=f("div"),V=f("div"),S=f("button"),S.textContent="▼",M=h(),D=f("button"),D.textContent="▲",_=h(),T=f("input"),C=m("h\n\t\t\t\t"),O=f("input"),E=m("m\n\t\t\t\t"),Y=f("input"),H=m("s"),L=h(),N=f("div"),j=f("input"),I=m("h\n\t\t\t\t"),A=f("input"),W=m("m\n\t\t\t\t"),z=f("input"),P=m("s\n\t\t\t\t"),F=f("button"),F.textContent="▲",R=h(),U=f("button"),U.textContent="▼",Q=h(),st&&st.c(),G=h(),at&&at.c(),X=h(),tt=f("div"),et=f("span"),ut&&ut.c(),nt=h(),rt=f("span"),lt.c(),this.c=t,u(s.src,a=e[0])||p(s,"src",a),p(s,"type","video/mp4"),p(i,"id","video"),i.controls=!0,p(i,"class","ratio ratio-16x9"),p(o,"class","ratio ratio-16x9"),w(o,"background-color","black"),p(S,"class","btn btn-sm btn-secondary"),p(D,"class","btn btn-sm btn-secondary"),p(T,"type","number"),p(T,"class","form-control form-custom-control-numbers"),p(O,"class","form-control form-custom-control-numbers"),p(O,"type","number"),p(Y,"type","number"),p(Y,"class","form-control form-custom-control-numbers"),w(V,"flex-grow","2"),p(j,"type","number"),p(j,"class","form-control form-custom-control-numbers"),p(A,"class","form-control form-custom-control-numbers"),p(A,"type","number"),p(z,"type","number"),p(z,"class","form-control form-custom-control-numbers"),p(F,"class","btn btn-sm btn-secondary"),p(U,"class","btn btn-sm btn-secondary"),w(N,"flex-grow","2"),w(N,"text-align","right"),p(k,"id","controls"),p(x,"class","card-body"),w(et,"float","left"),w(et,"height","30px"),w(et,"line-height","30px"),w(rt,"float","right"),w(rt,"height","30px"),w(rt,"line-height","30px"),p(tt,"class","card-footer"),p(n,"id","card"),p(n,"class","card h-100")},m(t,r){d(t,n,r),c(n,o),c(o,i),c(i,s),c(i,g),c(n,$),c(n,x),c(x,k),c(k,V),c(V,S),c(V,M),c(V,D),c(V,_),c(V,T),v(T,e[6]),c(V,C),c(V,O),v(O,e[8]),c(V,E),c(V,Y),v(Y,e[10]),c(V,H),c(k,L),c(k,N),c(N,j),v(j,e[5]),c(N,I),c(N,A),v(A,e[7]),c(N,W),c(N,z),v(z,e[9]),c(N,P),c(N,F),c(N,R),c(N,U),c(x,Q),st&&st.m(x,null),c(x,G),at&&at.m(x,null),c(n,X),c(n,tt),c(tt,et),ut&&ut.m(et,null),c(tt,nt),c(tt,rt),lt.m(rt,null),ot||(it=[b(i,"timeupdate",e[23]),b(i,"loadedmetadata",e[24]),b(S,"click",e[25]),b(D,"click",e[26]),b(T,"input",e[27]),b(T,"change",e[13]),b(O,"input",e[28]),b(O,"change",e[13]),b(Y,"input",e[29]),b(Y,"change",e[13]),b(j,"input",e[30]),b(j,"change",e[13]),b(A,"input",e[31]),b(A,"change",e[13]),b(z,"input",e[32]),b(z,"change",e[13]),b(F,"click",e[33]),b(U,"click",e[34])],ot=!0)},p(t,e){1&e[0]&&!u(s.src,a=t[0])&&p(s,"src",a),64&e[0]&&y(T.value)!==t[6]&&v(T,t[6]),256&e[0]&&y(O.value)!==t[8]&&v(O,t[8]),1024&e[0]&&y(Y.value)!==t[10]&&v(Y,t[10]),32&e[0]&&y(j.value)!==t[5]&&v(j,t[5]),128&e[0]&&y(A.value)!==t[7]&&v(A,t[7]),512&e[0]&&y(z.value)!==t[9]&&v(z,t[9]),t[3]&&t[2]?st?st.p(t,e):(st=J(t),st.c(),st.m(x,G)):st&&(st.d(1),st=null),t[1]?at?at.p(t,e):(at=Z(t),at.c(),at.m(x,null)):at&&(at.d(1),at=null),t[2]?.maxValue?ut?ut.p(t,e):(ut=B(t),ut.c(),ut.m(et,null)):ut&&(ut.d(1),ut=null),dt===(dt=ct(t))&<?lt.p(t,e):(lt.d(1),lt=dt(t),lt&&(lt.c(),lt.m(rt,null)))},i:t,o:t,d(t){t&&l(n),st&&st.d(),at&&at.d(),ut&&ut.d(),lt.d(),ot=!1,r(it)}}}let G=0;function X(t,e,n){P.extend(R);const r=V(),o=S();let i,s,a,u,c,d,l,f,m,{id:h}=e,{src:b}=e,{form:p}=e,{track:g}=e,$="no";function v(t,e){o(t,e),r.dispatchEvent&&r.dispatchEvent(new CustomEvent(t,{detail:e}))}function w(){return r.shadowRoot.getElementById("video")}function x(t){w().currentTime=t}function k(t){n(2,g.minValue=t.minValue,g),n(2,g.maxValue=t.maxValue,g),M(),w().currentTime<g.minValue&&x(g.minValue),w().currentTime>g.maxValue&&x(g.maxValue),v("changeTrackValues",{minVaule:g.minValue,maxValue:g.maxValue})}function M(){n(5,s=parseInt((g.maxValue/3600).toString())),n(6,a=parseInt((g.maxValue/3600).toString())),n(7,u=parseInt(((g.maxValue-60*Number(s))/60).toString())),n(8,c=parseInt(((g.minValue-60*Number(a))/60).toString())),n(9,d=g.maxValue-3600*Number(s)-60*Number(u)),n(10,l=g.minValue-3600*Number(a)-60*Number(c))}function D(t){n(3,f=t.target.duration),n(4,i=f),(!g.maxValue||g.maxValue>i)&&n(2,g.maxValue=i,g),(!g.minValue||g.minValue<G)&&n(2,g.minValue=G,g),M()}function _(t){switch(t){case"start":w().currentTime<g.maxValue&&n(2,g.minValue=w().currentTime,g);break;case"end":w().currentTime>g.minValue&&n(2,g.maxValue=w().currentTime,g);break;default:return console.error("no vaild point for cue")}M(),v("changeTrackValues",{minVaule:g.minValue,maxValue:g.maxValue})}function T(t){console.log("formSubmit",t._valid),n(12,m=t._valid),"yes"===$&&(t._valid&&g&&(g.minValue||0===g.minValue)&&(g.maxValue||0===g.maxValue)&&v("dispatchTrack",Object.assign(g,t)),console.log(g)),"no"!==$&&n(11,$="no")}function C(t){n(12,m=t._valid)}function O(t){w().currentTime>g.maxValue?(w().pause(),x(g.maxValue)):w().currentTime<g.minValue-.01&&(w().pause(),x(g.minValue))}U.addComponent("range-slider",F),U.addComponent("form",F);return t.$$set=t=>{"id"in t&&n(22,h=t.id),"src"in t&&n(0,b=t.src),"form"in t&&n(1,p=t.form),"track"in t&&n(2,g=t.track)},t.$$.update=()=>{4194319&t.$$.dirty[0]&&(h||n(22,h=""),p?n(12,m=!1):(n(1,p=null),n(12,m=!0)),f||n(3,f=0),b||n(0,b=""),g&&"string"==typeof g?n(2,g=JSON.parse(g)):g||n(2,g={maxValue:null,minValue:null}))},[b,p,g,f,i,s,a,u,c,d,l,$,m,function(){n(2,g.maxValue=3600*s+60*u+d,g),n(2,g.minValue=3600*a+60*c+l,g)},x,k,function(){!g||!g.minValue&&0!==g.minValue||!g.maxValue&&0!==g.maxValue||(p?n(11,$="yes"):(v("dispatchTrack",g),console.log(g)))},D,_,T,C,O,h,t=>O(),t=>D(t),()=>{_("start")},()=>{x(g.minValue)},function(){a=y(this.value),n(6,a)},function(){c=y(this.value),n(8,c)},function(){l=y(this.value),n(10,l)},function(){s=y(this.value),n(5,s)},function(){u=y(this.value),n(7,u)},function(){d=y(this.value),n(9,d)},()=>{x(g.maxValue)},()=>{_("end")},t=>{k(t.detail)},t=>T(t.detail),t=>C(t.detail)]}class tt extends W{constructor(t){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");@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host{--bs-blue:var(--bs-primary,#07689f);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:var(--bs-danger,#f67280);--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:var(--bs-warning,#ffc107);--bs-teal:#20c997;--bs-cyan:var(--bs-info,#a2d5f2);--bs-white:#fff;--bs-gray:var(--bs-secondary,#c9d6df);--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:var(--bs-secondary,#c9d6df);--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--bs-primary,#07689f);--bs-secondary:var(--bs-secondary,#c9d6df);--bs-success:var(--bs-warning,#ffc107);--bs-info:var(--bs-info,#a2d5f2);--bs-warning:#ffc107;--bs-danger:var(--bs-danger,#f67280);--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button{text-transform:none}button{-webkit-appearance:button}button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}.card{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0, 0, 0, 0.125);border-radius:0.25rem}.card-body{flex:1 1 auto;padding:1rem 1rem}.card-footer{padding:0.5rem 1rem;background-color:rgba(0, 0, 0, 0.03);border-top:1px solid rgba(0, 0, 0, 0.125)}.card-footer:last-child{border-radius:0 0 calc(0.25rem - 1px) calc(0.25rem - 1px)}@media(min-width: 576px){.card-group>.card:not(:last-child) .card-footer{border-bottom-right-radius:0}.card-group>.card:not(:first-child) .card-footer{border-bottom-left-radius:0}}.btn{display:inline-block;font-weight:400;line-height:1.5;color:#212529;text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid transparent;padding:0.375rem 0.75rem;font-size:1rem;border-radius:0.25rem;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:#212529}.btn:focus{outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25)}.btn:disabled{pointer-events:none;opacity:0.65}.btn-primary{color:#fff;background-color:var(--bs-primary,#07689f);border-color:var(--bs-primary,#07689f)}.btn-primary:hover{color:#fff;background-color:#0b5ed7;border-color:#0a58ca}.btn-primary:focus{color:#fff;background-color:#0b5ed7;border-color:#0a58ca;box-shadow:0 0 0 0.25rem rgba(49, 132, 253, 0.5)}.btn-primary:active{color:#fff;background-color:#0a58ca;border-color:#0a53be}.btn-primary:active:focus{box-shadow:0 0 0 0.25rem rgba(49, 132, 253, 0.5)}.btn-primary:disabled{color:#fff;background-color:var(--bs-primary,#07689f);border-color:var(--bs-primary,#07689f)}.btn-secondary{color:#fff;background-color:var(--bs-secondary,#c9d6df);border-color:var(--bs-secondary,#c9d6df)}.btn-secondary:hover{color:#fff;background-color:#5c636a;border-color:#565e64}.btn-secondary:focus{color:#fff;background-color:#5c636a;border-color:#565e64;box-shadow:0 0 0 0.25rem rgba(130, 138, 145, 0.5)}.btn-secondary:active{color:#fff;background-color:#565e64;border-color:#51585e}.btn-secondary:active:focus{box-shadow:0 0 0 0.25rem rgba(130, 138, 145, 0.5)}.btn-secondary:disabled{color:#fff;background-color:var(--bs-secondary,#c9d6df);border-color:var(--bs-secondary,#c9d6df)}.btn-sm{padding:0.25rem 0.5rem;font-size:0.875rem;border-radius:0.2rem}.form-control{display:block;width:100%;padding:0.375rem 0.75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;appearance:none;border-radius:0.25rem;transition:border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control:focus{color:#212529;background-color:#fff;border-color:#86b7fe;outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25)}.form-control::-webkit-date-and-time-value{height:1.5em}.form-control::placeholder{color:var(--bs-secondary,#c9d6df);opacity:1}.form-control:disabled{background-color:#e9ecef;opacity:1}.form-control::file-selector-button{padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}.form-control::-webkit-file-upload-button{padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control::-webkit-file-upload-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:#dde0e3}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-16x9{--bs-aspect-ratio:56.25%}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}:host{font-family:"Roboto", sans-serif}.form-custom-control-numbers{width:40px;display:inline-block;padding:0px}#controls{display:flex;justify-content:space-around;flex-flow:row wrap;align-items:stretch}</style>',A(this,{target:this.shadowRoot,props:x(this.attributes),customElement:!0},X,Q,i,{id:22,src:0,form:1,track:2},null,[-1,-1]),t&&(t.target&&d(t.target,this,t.anchor),t.props&&(this.$set(t.props),L()))}static get observedAttributes(){return["id","src","form","track"]}get id(){return this.$$.ctx[22]}set id(t){this.$$set({id:t}),L()}get src(){return this.$$.ctx[0]}set src(t){this.$$set({src:t}),L()}get form(){return this.$$.ctx[1]}set form(t){this.$$set({form:t}),L()}get track(){return this.$$.ctx[2]}set track(t){this.$$set({track:t}),L()}}return customElements.define("hb-editor-video",tt),tt}();
|
|
1
|
+
var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function r(t){t.forEach(e)}function o(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s,a;function u(t,e){return s||(s=document.createElement("a")),s.href=e,t===s.href}function c(t,e){t.appendChild(e)}function d(t,e,n){t.insertBefore(e,n||null)}function l(t){t.parentNode.removeChild(t)}function f(t){return document.createElement(t)}function m(t){return document.createTextNode(t)}function h(){return m(" ")}function b(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function p(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function g(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:p(t,e,n)}function y(t){return""===t?null:+t}function $(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function v(t,e){t.value=null==e?"":e}function w(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function x(t){const e={};for(const n of t)e[n.name]=n.value;return e}function k(t){a=t}function V(){if(!a)throw new Error("Function called outside component initialization");return a}function S(){const t=V();return(e,n)=>{const r=t.$$.callbacks[e];if(r){const o=function(t,e,n=!1){const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n,!1,e),r}(e,n);r.slice().forEach((e=>{e.call(t,o)}))}}}const M=[],D=[],_=[],T=[],C=Promise.resolve();let O=!1;function E(t){_.push(t)}const Y=new Set;let H=0;function L(){const t=a;do{for(;H<M.length;){const t=M[H];H++,k(t),N(t.$$)}for(k(null),M.length=0,H=0;D.length;)D.pop()();for(let t=0;t<_.length;t+=1){const e=_[t];Y.has(e)||(Y.add(e),e())}_.length=0}while(M.length);for(;T.length;)T.pop()();O=!1,Y.clear(),k(t)}function N(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(E)}}const j=new Set;function I(t,e){-1===t.$$.dirty[0]&&(M.push(t),O||(O=!0,C.then(L)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function A(i,s,u,c,d,f,m,h=[-1]){const b=a;k(i);const p=i.$$={fragment:null,ctx:null,props:f,update:t,not_equal:d,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(b?b.$$.context:[])),callbacks:n(),dirty:h,skip_bound:!1,root:s.target||b.$$.root};m&&m(p.root);let g=!1;if(p.ctx=u?u(i,s.props||{},((t,e,...n)=>{const r=n.length?n[0]:e;return p.ctx&&d(p.ctx[t],p.ctx[t]=r)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](r),g&&I(i,t)),e})):[],p.update(),g=!0,r(p.before_update),p.fragment=!!c&&c(p.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);p.fragment&&p.fragment.l(t),t.forEach(l)}else p.fragment&&p.fragment.c();s.intro&&((y=i.$$.fragment)&&y.i&&(j.delete(y),y.i($))),function(t,n,i,s){const{fragment:a,on_mount:u,on_destroy:c,after_update:d}=t.$$;a&&a.m(n,i),s||E((()=>{const n=u.map(e).filter(o);c?c.push(...n):r(n),t.$$.on_mount=[]})),d.forEach(E)}(i,s.target,s.anchor,s.customElement),L()}var y,$;k(b)}let W;"function"==typeof HTMLElement&&(W=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(o);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function z(t){var e={exports:{}};return t(e,e.exports),e.exports}var P=z((function(t,e){t.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",o="second",i="minute",s="hour",a="day",u="week",c="month",d="quarter",l="year",f="date",m="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},y={s:g,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),o=e.clone().add(r,c),i=n-o<0,s=e.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-s:s-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:l,w:u,d:a,D:f,h:s,m:i,s:o,ms:r,Q:d}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},$="en",v={};v[$]=p;var w=function(t){return t instanceof S},x=function(t,e,n){var r;if(!t)return $;if("string"==typeof t)v[t]&&(r=t),e&&(v[t]=e,r=t);else{var o=t.name;v[o]=t,r=o}return!n&&r&&($=r),r||!n&&$},k=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},V=y;V.l=x,V.i=w,V.w=function(t,e){return k(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function p(t){this.$L=x(t.locale,null,!0),this.parse(t)}var g=p.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(V.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return V},g.isValid=function(){return!(this.$d.toString()===m)},g.isSame=function(t,e){var n=k(t);return this.startOf(e)<=n&&n<=this.endOf(e)},g.isAfter=function(t,e){return k(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<k(t)},g.$g=function(t,e,n){return V.u(t)?this[e]:this.set(n,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var n=this,r=!!V.u(e)||e,d=V.p(t),m=function(t,e){var o=V.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?o:o.endOf(a)},h=function(t,e){return V.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},b=this.$W,p=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case l:return r?m(1,0):m(31,11);case c:return r?m(1,p):m(0,p+1);case u:var $=this.$locale().weekStart||0,v=(b<$?b+7:b)-$;return m(r?g-v:g+(6-v),p);case a:case f:return h(y+"Hours",0);case s:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case o:return h(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var n,u=V.p(t),d="set"+(this.$u?"UTC":""),m=(n={},n[a]=d+"Date",n[f]=d+"Date",n[c]=d+"Month",n[l]=d+"FullYear",n[s]=d+"Hours",n[i]=d+"Minutes",n[o]=d+"Seconds",n[r]=d+"Milliseconds",n)[u],h=u===a?this.$D+(e-this.$W):e;if(u===c||u===l){var b=this.clone().set(f,1);b.$d[m](h),b.init(),this.$d=b.set(f,Math.min(this.$D,b.daysInMonth())).$d}else m&&this.$d[m](h);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[V.p(t)]()},g.add=function(r,d){var f,m=this;r=Number(r);var h=V.p(d),b=function(t){var e=k(m);return V.w(e.date(e.date()+Math.round(t*r)),m)};if(h===c)return this.set(c,this.$M+r);if(h===l)return this.set(l,this.$y+r);if(h===a)return b(1);if(h===u)return b(7);var p=(f={},f[i]=e,f[s]=n,f[o]=t,f)[h]||1,g=this.$d.getTime()+r*p;return V.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||m;var r=t||"YYYY-MM-DDTHH:mm:ssZ",o=V.z(this),i=this.$H,s=this.$m,a=this.$M,u=n.weekdays,c=n.months,d=function(t,n,o,i){return t&&(t[n]||t(e,r))||o[n].substr(0,i)},l=function(t){return V.s(i%12||12,t,"0")},f=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:V.s(a+1,2,"0"),MMM:d(n.monthsShort,a,c,3),MMMM:d(c,a),D:this.$D,DD:V.s(this.$D,2,"0"),d:String(this.$W),dd:d(n.weekdaysMin,this.$W,u,2),ddd:d(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:V.s(i,2,"0"),h:l(1),hh:l(2),a:f(i,s,!0),A:f(i,s,!1),m:String(s),mm:V.s(s,2,"0"),s:String(this.$s),ss:V.s(this.$s,2,"0"),SSS:V.s(this.$ms,3,"0"),Z:o};return r.replace(b,(function(t,e){return e||h[t]||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,f,m){var h,b=V.p(f),p=k(r),g=(p.utcOffset()-this.utcOffset())*e,y=this-p,$=V.m(this,p);return $=(h={},h[l]=$/12,h[c]=$,h[d]=$/3,h[u]=(y-g)/6048e5,h[a]=(y-g)/864e5,h[s]=y/n,h[i]=y/e,h[o]=y/t,h)[b]||y,m?$:V.a($)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return v[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=x(t,e,!0);return r&&(n.$L=r),n},g.clone=function(){return V.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},p}(),M=S.prototype;return k.prototype=M,[["$ms",r],["$s",o],["$m",i],["$H",s],["$W",a],["$M",c],["$y",l],["$D",f]].forEach((function(t){M[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),k.extend=function(t,e){return t.$i||(t(e,S,k),t.$i=!0),k},k.locale=x,k.isDayjs=w,k.unix=function(t){return k(1e3*t)},k.en=v[$],k.Ls=v,k.p={},k}()})),F="0.7.8",R=z((function(t,e){var n,r,o,i,s,a,u,c,d,l,f,m,h,b,p,g,y,$,v;t.exports=(u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,f={years:c=31536e6,months:d=2592e6,days:a=864e5,hours:s=36e5,minutes:i=6e4,seconds:o=1e3,milliseconds:1,weeks:6048e5},m=function(t){return t instanceof v},h=function(t,e,n){return new v(t,n,e.$l)},b=function(t){return r.p(t)+"s"},p=function(t){return t<0},g=function(t){return p(t)?Math.ceil(t):Math.floor(t)},y=function(t){return Math.abs(t)},$=function(t,e){return t?p(t)?{negative:!0,format:""+y(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},v=function(){function t(t,e,n){var r=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return h(t*f[b(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach((function(e){r.$d[b(e)]=t[e]})),this.calMilliseconds(),this;if("string"==typeof t){var o=t.match(l);if(o){var i=o.slice(2).map((function(t){return null!=t?Number(t):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var e=t.prototype;return e.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(e,n){return e+(t.$d[n]||0)*f[n]}),0)},e.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=g(t/c),t%=c,this.$d.months=g(t/d),t%=d,this.$d.days=g(t/a),t%=a,this.$d.hours=g(t/s),t%=s,this.$d.minutes=g(t/i),t%=i,this.$d.seconds=g(t/o),t%=o,this.$d.milliseconds=t},e.toISOString=function(){var t=$(this.$d.years,"Y"),e=$(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=$(n,"D"),o=$(this.$d.hours,"H"),i=$(this.$d.minutes,"M"),s=this.$d.seconds||0;this.$d.milliseconds&&(s+=this.$d.milliseconds/1e3);var a=$(s,"S"),u=t.negative||e.negative||r.negative||o.negative||i.negative||a.negative,c=o.format||i.format||a.format?"T":"",d=(u?"-":"")+"P"+t.format+e.format+r.format+c+o.format+i.format+a.format;return"P"===d||"-P"===d?"P0D":d},e.toJSON=function(){return this.toISOString()},e.format=function(t){var e=t||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return e.replace(u,(function(t,e){return e||String(n[t])}))},e.as=function(t){return this.$ms/f[b(t)]},e.get=function(t){var e=this.$ms,n=b(t);return"milliseconds"===n?e%=1e3:e="weeks"===n?g(e/f[n]):this.$d[n],0===e?0:e},e.add=function(t,e,n){var r;return r=e?t*f[b(e)]:m(t)?t.$ms:h(t,this).$ms,h(this.$ms+r*(n?-1:1),this)},e.subtract=function(t,e){return this.add(t,e,!0)},e.locale=function(t){var e=this.clone();return e.$l=t,e},e.clone=function(){return h(this.$ms,this)},e.humanize=function(t){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},e.milliseconds=function(){return this.get("milliseconds")},e.asMilliseconds=function(){return this.as("milliseconds")},e.seconds=function(){return this.get("seconds")},e.asSeconds=function(){return this.as("seconds")},e.minutes=function(){return this.get("minutes")},e.asMinutes=function(){return this.as("minutes")},e.hours=function(){return this.get("hours")},e.asHours=function(){return this.as("hours")},e.days=function(){return this.get("days")},e.asDays=function(){return this.as("days")},e.weeks=function(){return this.get("weeks")},e.asWeeks=function(){return this.as("weeks")},e.months=function(){return this.get("months")},e.asMonths=function(){return this.as("months")},e.years=function(){return this.get("years")},e.asYears=function(){return this.as("years")},t}(),function(t,e,o){n=o,r=o().$utils(),o.duration=function(t,e){var n=o.locale();return h(t,{$l:n},e)},o.isDuration=m;var i=e.prototype.add,s=e.prototype.subtract;e.prototype.add=function(t,e){return m(t)&&(t=t.asMilliseconds()),i.bind(this)(t,e)},e.prototype.subtract=function(t,e){return m(t)&&(t=t.asMilliseconds()),s.bind(this)(t,e)}})})),U=z((function(t,e){e.__esModule=!0,e.LanguageTranslator=e.addComponent=e.getChildStyleToPass=void 0,e.getChildStyleToPass=function(t,e){var n,r,o="";if(t&&(null==e?void 0:e.length)&&(null===(n=Object.keys(t))||void 0===n?void 0:n.length)&&(null===(r=null==e?void 0:e.filter((function(e){return Object.keys(t).includes(e.name)})))||void 0===r?void 0:r.length))for(var i=function(n){(null==e?void 0:e.filter((function(e){return e.name===n&&e.defaultValue!==t[n]})))&&(o+="".concat(n,":").concat(t[n],";"))},s=0,a=Object.keys(t);s<a.length;s++){i(a[s])}return o},e.addComponent=function(t,e,n){if(!document.getElementById("hb-"+t+"-script")){var r=document.createElement("script");r.id="hb-"+t+"-script",r.src="https://cdn.jsdelivr.net/npm/@htmlbricks/hb-".concat(t,"@").concat(e,"/release/release.js"),n&&location.href.includes("localhost")&&(r.src="http://localhost:6006/".concat(t,"/dist/release.js")),document.head.appendChild(r)}};var n=function(){function t(t){if(!(null==t?void 0:t.dictionary))throw new Error("no dictionary provided");this.dictionary=t.dictionary,this.setLang(null==t?void 0:t.lang)}return t.prototype.setLang=function(e){e||(e=t.getDefaultLang()),this.lang=e},t.prototype.translateWord=function(e,n){return t.getDictionaryWord(e,this.dictionary,n||this.lang)},t.prototype.translateDate=function(e,n,r){return t.formatDate(e,n,r||this.lang)},t.getDefaultLang=function(){var t,e,n,r,o,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(e=null===(t=navigator.languages[0])||void 0===t?void 0:t.split("-")[0])||void 0===e?void 0:e.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},t.getDictionaryWord=function(e,n,r){var o;if(!e)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[e]))return n[r][e];var i="",s=t.getDefaultLang();if(!r||s!==r){var a=null==n?void 0:n[s];(null==a?void 0:a[e])&&(i=a[e])}return i},t.formatDate=function(e,n,r){if(!e)throw new Error("no date provided");if("function"!=typeof e.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(r||t.getDefaultLang(),n).format(e)},t}();e.LanguageTranslator=n}));function J(t){let e,n,r,o,i,s,a,u;return{c(){e=f("div"),n=f("hb-range-slider"),g(n,"max",r=t[4].toString()),g(n,"min",o=G.toString()),g(n,"maxval",i=t[2].maxValue.toString()),g(n,"minval",s=t[2].minValue.toString()),w(e,"width","100%"),w(e,"margin-top","20px")},m(r,o){d(r,e,o),c(e,n),a||(u=b(n,"changeRangeValues",t[35]),a=!0)},p(t,e){16&e[0]&&r!==(r=t[4].toString())&&g(n,"max",r),4&e[0]&&i!==(i=t[2].maxValue.toString())&&g(n,"maxval",i),4&e[0]&&s!==(s=t[2].minValue.toString())&&g(n,"minval",s)},d(t){t&&l(e),a=!1,u()}}}function Z(t){let e,n,o;return{c(){e=f("hb-form"),w(e,"margin","40px auto 20px auto"),w(e,"display","block"),g(e,"submitted",t[11]),g(e,"schema",t[1])},m(r,i){d(r,e,i),n||(o=[b(e,"submit",t[36]),b(e,"change",t[37])],n=!0)},p(t,n){2048&n[0]&&g(e,"submitted",t[11]),2&n[0]&&g(e,"schema",t[1])},d(t){t&&l(e),n=!1,r(o)}}}function B(t){let e,n,r,o,i,s,a=P.duration(1e3*(t[2].maxValue-t[2].minValue)).hours()?P.duration(1e3*(t[2].maxValue-t[2].minValue)).format("H")+" hours":"",u=P.duration(1e3*(t[2].maxValue-t[2].minValue)).minutes()?P.duration(1e3*(t[2].maxValue-t[2].minValue)).format("m")+" minutes":"",c=P.duration(parseInt((1e3*(t[2].maxValue-t[2].minValue)).toString())).format("s.SSS")+" seconds";return{c(){e=m("duration:\n\t\t\t\t"),n=m(a),r=h(),o=m(u),i=h(),s=m(c)},m(t,a){d(t,e,a),d(t,n,a),d(t,r,a),d(t,o,a),d(t,i,a),d(t,s,a)},p(t,e){4&e[0]&&a!==(a=P.duration(1e3*(t[2].maxValue-t[2].minValue)).hours()?P.duration(1e3*(t[2].maxValue-t[2].minValue)).format("H")+" hours":"")&&$(n,a),4&e[0]&&u!==(u=P.duration(1e3*(t[2].maxValue-t[2].minValue)).minutes()?P.duration(1e3*(t[2].maxValue-t[2].minValue)).format("m")+" minutes":"")&&$(o,u),4&e[0]&&c!==(c=P.duration(parseInt((1e3*(t[2].maxValue-t[2].minValue)).toString())).format("s.SSS")+" seconds")&&$(s,c)},d(t){t&&l(e),t&&l(n),t&&l(r),t&&l(o),t&&l(i),t&&l(s)}}}function q(e){let n,r,o;return{c(){n=f("button"),n.textContent="send",p(n,"class","btn btn-sm btn-primary"),n.disabled=!0},m(t,i){d(t,n,i),r||(o=b(n,"click",e[16]),r=!0)},p:t,d(t){t&&l(n),r=!1,o()}}}function K(e){let n,r,o;return{c(){n=f("button"),n.textContent="send",p(n,"class","btn btn-sm btn-primary")},m(t,i){d(t,n,i),r||(o=b(n,"click",e[16]),r=!0)},p:t,d(t){t&&l(n),r=!1,o()}}}function Q(e){let n,o,i,s,a,g,$,x,k,V,S,M,D,_,T,C,O,E,Y,H,L,N,j,I,A,W,z,P,F,R,U,Q,G,X,tt,et,nt,rt,ot,it,st=e[3]&&e[2]&&J(e),at=e[1]&&Z(e),ut=e[2]?.maxValue&&B(e);function ct(t,e){return t[12]?K:q}let dt=ct(e),lt=dt(e);return{c(){n=f("div"),o=f("div"),i=f("video"),s=f("source"),g=m("\n\t\t\tYour browser does not support the video tag."),$=h(),x=f("div"),k=f("div"),V=f("div"),S=f("button"),S.textContent="▼",M=h(),D=f("button"),D.textContent="▲",_=h(),T=f("input"),C=m("h\n\t\t\t\t"),O=f("input"),E=m("m\n\t\t\t\t"),Y=f("input"),H=m("s"),L=h(),N=f("div"),j=f("input"),I=m("h\n\t\t\t\t"),A=f("input"),W=m("m\n\t\t\t\t"),z=f("input"),P=m("s\n\t\t\t\t"),F=f("button"),F.textContent="▲",R=h(),U=f("button"),U.textContent="▼",Q=h(),st&&st.c(),G=h(),at&&at.c(),X=h(),tt=f("div"),et=f("span"),ut&&ut.c(),nt=h(),rt=f("span"),lt.c(),this.c=t,u(s.src,a=e[0])||p(s,"src",a),p(s,"type","video/mp4"),p(i,"id","video"),i.controls=!0,p(i,"class","ratio ratio-16x9"),p(o,"class","ratio ratio-16x9"),w(o,"background-color","black"),p(S,"class","btn btn-sm btn-secondary"),p(D,"class","btn btn-sm btn-secondary"),p(T,"type","number"),p(T,"class","form-control form-custom-control-numbers"),p(O,"class","form-control form-custom-control-numbers"),p(O,"type","number"),p(Y,"type","number"),p(Y,"class","form-control form-custom-control-numbers"),w(V,"flex-grow","2"),p(j,"type","number"),p(j,"class","form-control form-custom-control-numbers"),p(A,"class","form-control form-custom-control-numbers"),p(A,"type","number"),p(z,"type","number"),p(z,"class","form-control form-custom-control-numbers"),p(F,"class","btn btn-sm btn-secondary"),p(U,"class","btn btn-sm btn-secondary"),w(N,"flex-grow","2"),w(N,"text-align","right"),p(k,"id","controls"),p(x,"class","card-body"),w(et,"float","left"),w(et,"height","30px"),w(et,"line-height","30px"),w(rt,"float","right"),w(rt,"height","30px"),w(rt,"line-height","30px"),p(tt,"class","card-footer"),p(n,"id","card"),p(n,"class","card h-100")},m(t,r){d(t,n,r),c(n,o),c(o,i),c(i,s),c(i,g),c(n,$),c(n,x),c(x,k),c(k,V),c(V,S),c(V,M),c(V,D),c(V,_),c(V,T),v(T,e[6]),c(V,C),c(V,O),v(O,e[8]),c(V,E),c(V,Y),v(Y,e[10]),c(V,H),c(k,L),c(k,N),c(N,j),v(j,e[5]),c(N,I),c(N,A),v(A,e[7]),c(N,W),c(N,z),v(z,e[9]),c(N,P),c(N,F),c(N,R),c(N,U),c(x,Q),st&&st.m(x,null),c(x,G),at&&at.m(x,null),c(n,X),c(n,tt),c(tt,et),ut&&ut.m(et,null),c(tt,nt),c(tt,rt),lt.m(rt,null),ot||(it=[b(i,"timeupdate",e[23]),b(i,"loadedmetadata",e[24]),b(S,"click",e[25]),b(D,"click",e[26]),b(T,"input",e[27]),b(T,"change",e[13]),b(O,"input",e[28]),b(O,"change",e[13]),b(Y,"input",e[29]),b(Y,"change",e[13]),b(j,"input",e[30]),b(j,"change",e[13]),b(A,"input",e[31]),b(A,"change",e[13]),b(z,"input",e[32]),b(z,"change",e[13]),b(F,"click",e[33]),b(U,"click",e[34])],ot=!0)},p(t,e){1&e[0]&&!u(s.src,a=t[0])&&p(s,"src",a),64&e[0]&&y(T.value)!==t[6]&&v(T,t[6]),256&e[0]&&y(O.value)!==t[8]&&v(O,t[8]),1024&e[0]&&y(Y.value)!==t[10]&&v(Y,t[10]),32&e[0]&&y(j.value)!==t[5]&&v(j,t[5]),128&e[0]&&y(A.value)!==t[7]&&v(A,t[7]),512&e[0]&&y(z.value)!==t[9]&&v(z,t[9]),t[3]&&t[2]?st?st.p(t,e):(st=J(t),st.c(),st.m(x,G)):st&&(st.d(1),st=null),t[1]?at?at.p(t,e):(at=Z(t),at.c(),at.m(x,null)):at&&(at.d(1),at=null),t[2]?.maxValue?ut?ut.p(t,e):(ut=B(t),ut.c(),ut.m(et,null)):ut&&(ut.d(1),ut=null),dt===(dt=ct(t))&<?lt.p(t,e):(lt.d(1),lt=dt(t),lt&&(lt.c(),lt.m(rt,null)))},i:t,o:t,d(t){t&&l(n),st&&st.d(),at&&at.d(),ut&&ut.d(),lt.d(),ot=!1,r(it)}}}let G=0;function X(t,e,n){P.extend(R);const r=V(),o=S();let i,s,a,u,c,d,l,f,m,{id:h}=e,{src:b}=e,{form:p}=e,{track:g}=e,$="no";function v(t,e){o(t,e),r.dispatchEvent&&r.dispatchEvent(new CustomEvent(t,{detail:e}))}function w(){return r.shadowRoot.getElementById("video")}function x(t){w().currentTime=t}function k(t){n(2,g.minValue=t.minValue,g),n(2,g.maxValue=t.maxValue,g),M(),w().currentTime<g.minValue&&x(g.minValue),w().currentTime>g.maxValue&&x(g.maxValue),v("changeTrackValues",{minVaule:g.minValue,maxValue:g.maxValue})}function M(){n(5,s=parseInt((g.maxValue/3600).toString())),n(6,a=parseInt((g.maxValue/3600).toString())),n(7,u=parseInt(((g.maxValue-60*Number(s))/60).toString())),n(8,c=parseInt(((g.minValue-60*Number(a))/60).toString())),n(9,d=g.maxValue-3600*Number(s)-60*Number(u)),n(10,l=g.minValue-3600*Number(a)-60*Number(c))}function D(t){n(3,f=t.target.duration),n(4,i=f),(!g.maxValue||g.maxValue>i)&&n(2,g.maxValue=i,g),(!g.minValue||g.minValue<G)&&n(2,g.minValue=G,g),M()}function _(t){switch(t){case"start":w().currentTime<g.maxValue&&n(2,g.minValue=w().currentTime,g);break;case"end":w().currentTime>g.minValue&&n(2,g.maxValue=w().currentTime,g);break;default:return console.error("no vaild point for cue")}M(),v("changeTrackValues",{minVaule:g.minValue,maxValue:g.maxValue})}function T(t){console.log("formSubmit",t._valid),n(12,m=t._valid),"yes"===$&&(t._valid&&g&&(g.minValue||0===g.minValue)&&(g.maxValue||0===g.maxValue)&&v("dispatchTrack",Object.assign(g,t)),console.log(g)),"no"!==$&&n(11,$="no")}function C(t){n(12,m=t._valid)}function O(t){w().currentTime>g.maxValue?(w().pause(),x(g.maxValue)):w().currentTime<g.minValue-.01&&(w().pause(),x(g.minValue))}U.addComponent("range-slider",F),U.addComponent("form",F);return t.$$set=t=>{"id"in t&&n(22,h=t.id),"src"in t&&n(0,b=t.src),"form"in t&&n(1,p=t.form),"track"in t&&n(2,g=t.track)},t.$$.update=()=>{4194319&t.$$.dirty[0]&&(h||n(22,h=""),p?n(12,m=!1):(n(1,p=null),n(12,m=!0)),f||n(3,f=0),b||n(0,b=""),g&&"string"==typeof g?n(2,g=JSON.parse(g)):g||n(2,g={maxValue:null,minValue:null}))},[b,p,g,f,i,s,a,u,c,d,l,$,m,function(){n(2,g.maxValue=3600*s+60*u+d,g),n(2,g.minValue=3600*a+60*c+l,g)},x,k,function(){!g||!g.minValue&&0!==g.minValue||!g.maxValue&&0!==g.maxValue||(p?n(11,$="yes"):(v("dispatchTrack",g),console.log(g)))},D,_,T,C,O,h,t=>O(),t=>D(t),()=>{_("start")},()=>{x(g.minValue)},function(){a=y(this.value),n(6,a)},function(){c=y(this.value),n(8,c)},function(){l=y(this.value),n(10,l)},function(){s=y(this.value),n(5,s)},function(){u=y(this.value),n(7,u)},function(){d=y(this.value),n(9,d)},()=>{x(g.maxValue)},()=>{_("end")},t=>{k(t.detail)},t=>T(t.detail),t=>C(t.detail)]}class tt extends W{constructor(t){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");@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host{--bs-blue:var(--bs-primary,#07689f);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:var(--bs-danger,#f67280);--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:var(--bs-warning,#ffc107);--bs-teal:#20c997;--bs-cyan:var(--bs-info,#a2d5f2);--bs-white:#fff;--bs-gray:var(--bs-secondary,#c9d6df);--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:var(--bs-secondary,#c9d6df);--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--bs-primary,#07689f);--bs-secondary:var(--bs-secondary,#c9d6df);--bs-success:var(--bs-warning,#ffc107);--bs-info:var(--bs-info,#a2d5f2);--bs-warning:#ffc107;--bs-danger:var(--bs-danger,#f67280);--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button{text-transform:none}button{-webkit-appearance:button}button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}.card{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0, 0, 0, 0.125);border-radius:0.25rem}.card-body{flex:1 1 auto;padding:1rem 1rem}.card-footer{padding:0.5rem 1rem;background-color:rgba(0, 0, 0, 0.03);border-top:1px solid rgba(0, 0, 0, 0.125)}.card-footer:last-child{border-radius:0 0 calc(0.25rem - 1px) calc(0.25rem - 1px)}@media(min-width: 576px){.card-group>.card:not(:last-child) .card-footer{border-bottom-right-radius:0}.card-group>.card:not(:first-child) .card-footer{border-bottom-left-radius:0}}.btn{display:inline-block;font-weight:400;line-height:1.5;color:#212529;text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid transparent;padding:0.375rem 0.75rem;font-size:1rem;border-radius:0.25rem;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:#212529}.btn:focus{outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25)}.btn:disabled{pointer-events:none;opacity:0.65}.btn-primary{color:#fff;background-color:var(--bs-primary,#07689f);border-color:var(--bs-primary,#07689f)}.btn-primary:hover{color:#fff;background-color:#0b5ed7;border-color:#0a58ca}.btn-primary:focus{color:#fff;background-color:#0b5ed7;border-color:#0a58ca;box-shadow:0 0 0 0.25rem rgba(49, 132, 253, 0.5)}.btn-primary:active{color:#fff;background-color:#0a58ca;border-color:#0a53be}.btn-primary:active:focus{box-shadow:0 0 0 0.25rem rgba(49, 132, 253, 0.5)}.btn-primary:disabled{color:#fff;background-color:var(--bs-primary,#07689f);border-color:var(--bs-primary,#07689f)}.btn-secondary{color:#fff;background-color:var(--bs-secondary,#c9d6df);border-color:var(--bs-secondary,#c9d6df)}.btn-secondary:hover{color:#fff;background-color:#5c636a;border-color:#565e64}.btn-secondary:focus{color:#fff;background-color:#5c636a;border-color:#565e64;box-shadow:0 0 0 0.25rem rgba(130, 138, 145, 0.5)}.btn-secondary:active{color:#fff;background-color:#565e64;border-color:#51585e}.btn-secondary:active:focus{box-shadow:0 0 0 0.25rem rgba(130, 138, 145, 0.5)}.btn-secondary:disabled{color:#fff;background-color:var(--bs-secondary,#c9d6df);border-color:var(--bs-secondary,#c9d6df)}.btn-sm{padding:0.25rem 0.5rem;font-size:0.875rem;border-radius:0.2rem}.form-control{display:block;width:100%;padding:0.375rem 0.75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;appearance:none;border-radius:0.25rem;transition:border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control:focus{color:#212529;background-color:#fff;border-color:#86b7fe;outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25)}.form-control::-webkit-date-and-time-value{height:1.5em}.form-control::placeholder{color:var(--bs-secondary,#c9d6df);opacity:1}.form-control:disabled{background-color:#e9ecef;opacity:1}.form-control::file-selector-button{padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}.form-control::-webkit-file-upload-button{padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control::-webkit-file-upload-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:#dde0e3}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-16x9{--bs-aspect-ratio:56.25%}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}:host{font-family:"Roboto", sans-serif}.form-custom-control-numbers{width:40px;display:inline-block;padding:0px}#controls{display:flex;justify-content:space-around;flex-flow:row wrap;align-items:stretch}</style>',A(this,{target:this.shadowRoot,props:x(this.attributes),customElement:!0},X,Q,i,{id:22,src:0,form:1,track:2},null,[-1,-1]),t&&(t.target&&d(t.target,this,t.anchor),t.props&&(this.$set(t.props),L()))}static get observedAttributes(){return["id","src","form","track"]}get id(){return this.$$.ctx[22]}set id(t){this.$$set({id:t}),L()}get src(){return this.$$.ctx[0]}set src(t){this.$$set({src:t}),L()}get form(){return this.$$.ctx[1]}set form(t){this.$$set({form:t}),L()}get track(){return this.$$.ctx[2]}set track(t){this.$$set({track:t}),L()}}return customElements.define("hb-editor-video",tt),tt}();
|
|
2
2
|
//# sourceMappingURL=release.js.map
|