@abi-software/gallery 0.1.5 → 0.2.1-beta-1
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/.browserslistrc +3 -3
- package/.eslintrc.js +31 -31
- package/.prettierrc +6 -6
- package/LICENSE +201 -201
- package/Meeting-plan.txt +4 -0
- package/README.md +35 -35
- package/babel.config.js +3 -3
- package/dist/gallery.common.js +318 -1880
- package/dist/gallery.common.js.map +1 -1
- package/dist/gallery.umd.js +322 -1884
- package/dist/gallery.umd.js.map +1 -1
- package/dist/gallery.umd.min.js +1 -1
- package/dist/gallery.umd.min.js.map +1 -1
- package/dist/img/logo.82b9c7a5.png +0 -0
- package/jest.config.js +3 -3
- package/package.json +41 -40
- package/public/index.html +17 -17
- package/src/App.vue +34 -28
- package/src/components/Card.vue +128 -137
- package/src/components/Gallery.vue +208 -218
- package/src/components/IndexIndicator.vue +45 -45
- package/src/delete.json +39 -0
- package/src/index.js +2 -2
- package/src/main.js +8 -2
- package/tests/unit/example.spec.js +12 -12
- package/vue.config.js +4 -4
- package/.eslintignore +0 -1
package/dist/gallery.umd.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["gallery"]=e():t["gallery"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00ee":function(t,e,n){var r=n("b622"),o=r("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"06cf":function(t,e,n){var r=n("83ab"),o=n("d1e7"),i=n("5c6c"),c=n("fc6a"),a=n("c04e"),u=n("5135"),f=n("0cfb"),s=Object.getOwnPropertyDescriptor;e.f=r?s:function(t,e){if(t=c(t),e=a(e,!0),f)try{return s(t,e)}catch(n){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},"0cfb":function(t,e,n){var r=n("83ab"),o=n("d039"),i=n("cc12");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"130b":function(t,e,n){var r=n("6b82");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("499e").default;o("701b8c72",r,!0,{sourceMap:!1,shadowMode:!1})},"19aa":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,n){var r=n("b622"),o=r("iterator"),i=!1;try{var c=0,a={next:function(){return{done:!!c++}},return:function(){i=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(u){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(u){}return n}},"1cdc":function(t,e,n){var r=n("342f");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},2266:function(t,e,n){var r=n("825a"),o=n("e95a"),i=n("50c4"),c=n("0366"),a=n("35a1"),u=n("2a62"),f=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var s,d,l,p,v,h,b,y=n&&n.that,g=!(!n||!n.AS_ENTRIES),m=!(!n||!n.IS_ITERATOR),x=!(!n||!n.INTERRUPTED),w=c(e,y,1+g+x),S=function(t){return s&&u(s),new f(!0,t)},j=function(t){return g?(r(t),x?w(t[0],t[1],S):w(t[0],t[1])):x?w(t,S):w(t)};if(m)s=t;else{if(d=a(t),"function"!=typeof d)throw TypeError("Target is not iterable");if(o(d)){for(l=0,p=i(t.length);p>l;l++)if(v=j(t[l]),v&&v instanceof f)return v;return new f(!1)}s=d.call(t)}h=s.next;while(!(b=h.call(s)).done){try{v=j(b.value)}catch(O){throw u(s),O}if("object"==typeof v&&v&&v instanceof f)return v}return new f(!1)}},"23cb":function(t,e,n){var r=n("a691"),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},"23e7":function(t,e,n){var r=n("da84"),o=n("06cf").f,i=n("9112"),c=n("6eeb"),a=n("ce4e"),u=n("e893"),f=n("94ca");t.exports=function(t,e){var n,s,d,l,p,v,h=t.target,b=t.global,y=t.stat;if(s=b?r:y?r[h]||a(h,{}):(r[h]||{}).prototype,s)for(d in e){if(p=e[d],t.noTargetGet?(v=o(s,d),l=v&&v.value):l=s[d],n=f(b?d:h+(y?".":"#")+d,t.forced),!n&&void 0!==l){if(typeof p===typeof l)continue;u(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),c(s,d,p,t)}}},"241c":function(t,e,n){var r=n("ca84"),o=n("7839"),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"24fb":function(t,e,n){"use strict";function r(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"===typeof btoa){var i=o(r),c=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(c).concat([i]).join("\n")}return[n].join("\n")}function o(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=r(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"===typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(o[c]=!0)}for(var a=0;a<t.length;a++){var u=[].concat(t[a]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},2626:function(t,e,n){"use strict";var r=n("d066"),o=n("9bf2"),i=n("b622"),c=n("83ab"),a=i("species");t.exports=function(t){var e=r(t),n=o.f;c&&e&&!e[a]&&n(e,a,{configurable:!0,get:function(){return this}})}},"29d1":function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,".card[data-v-6ae61986]{position:relative}.details[data-v-6ae61986]{text-align:left}.title[data-v-6ae61986]{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}p.bold[data-v-6ae61986]{font-weight:700}.image-overlay[data-v-6ae61986]{top:0;right:0}.image-overlay[data-v-6ae61986],.triangle-icon[data-v-6ae61986]{position:absolute}.triangle-right-corner[data-v-6ae61986]{width:0;height:0;border-left:solid transparent;border-top:solid #8300bf}",""]),t.exports=e},"2a62":function(t,e,n){var r=n("825a");t.exports=function(t){var e=t["return"];if(void 0!==e)return r(e.call(t)).value}},"2cf4":function(t,e,n){var r,o,i,c=n("da84"),a=n("d039"),u=n("0366"),f=n("1be4"),s=n("cc12"),d=n("1cdc"),l=n("605d"),p=c.location,v=c.setImmediate,h=c.clearImmediate,b=c.process,y=c.MessageChannel,g=c.Dispatch,m=0,x={},w="onreadystatechange",S=function(t){if(x.hasOwnProperty(t)){var e=x[t];delete x[t],e()}},j=function(t){return function(){S(t)}},O=function(t){S(t.data)},_=function(t){c.postMessage(t+"",p.protocol+"//"+p.host)};v&&h||(v=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return x[++m]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(m),m},h=function(t){delete x[t]},l?r=function(t){b.nextTick(j(t))}:g&&g.now?r=function(t){g.now(j(t))}:y&&!d?(o=new y,i=o.port2,o.port1.onmessage=O,r=u(i.postMessage,i,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts&&p&&"file:"!==p.protocol&&!a(_)?(r=_,c.addEventListener("message",O,!1)):r=w in s("script")?function(t){f.appendChild(s("script"))[w]=function(){f.removeChild(this),S(t)}}:function(t){setTimeout(j(t),0)}),t.exports={set:v,clear:h}},"2d00":function(t,e,n){var r,o,i=n("da84"),c=n("342f"),a=i.process,u=a&&a.versions,f=u&&u.v8;f?(r=f.split("."),o=r[0]+r[1]):c&&(r=c.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/),r&&(o=r[1]))),t.exports=o&&+o},3008:function(t,e,n){"use strict";n("130b")},3269:function(t,e,n){var r=n("29d1");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("499e").default;o("20b22a51",r,!0,{sourceMap:!1,shadowMode:!1})},"33c1":function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,".oval[data-v-4b918d07]{width:2rem;height:2rem;line-height:2rem;box-shadow:0 .125rem .25rem 0 rgba(0,0,0,.25);border:solid 1px var(--pale-grey);background-color:#fff;border-radius:1rem;display:flex;justify-content:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.card-line[data-v-4b918d07],.gallery-strip[data-v-4b918d07]{display:flex;flex-wrap:nowrap;justify-content:space-around;align-items:center}.card-line[data-v-4b918d07]{flex-grow:2}.progress-button[data-v-4b918d07]{font-size:1.5rem;font-weight:700}.bottom-spacer[data-v-4b918d07]{min-height:4rem}.filler[data-v-4b918d07]{flex-grow:1}.key-image-span.active[data-v-4b918d07]{transform:scale(1.1)}a.next[data-v-4b918d07]:not(.underline),a.prev[data-v-4b918d07]:not(.underline){text-decoration:none}.disabled[data-v-4b918d07]{opacity:.5;pointer-events:none}",""]),t.exports=e},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"35a1":function(t,e,n){var r=n("f5df"),o=n("3f8c"),i=n("b622"),c=i("iterator");t.exports=function(t){if(void 0!=t)return t[c]||t["@@iterator"]||o[r(t)]}},"37e8":function(t,e,n){var r=n("83ab"),o=n("9bf2"),i=n("825a"),c=n("df75");t.exports=r?Object.defineProperties:function(t,e){i(t);var n,r=c(e),a=r.length,u=0;while(a>u)o.f(t,n=r[u++],e[n]);return t}},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3f8c":function(t,e){t.exports={}},"428f":function(t,e,n){var r=n("da84");t.exports=r},"44ad":function(t,e,n){var r=n("d039"),o=n("c6b6"),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var r=n("b622"),o=n("7c73"),i=n("9bf2"),c=r("unscopables"),a=Array.prototype;void 0==a[c]&&i.f(a,c,{configurable:!0,value:o(null)}),t.exports=function(t){a[c][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},4840:function(t,e,n){var r=n("825a"),o=n("1c0b"),i=n("b622"),c=i("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||void 0==(n=r(i)[c])?e:o(n)}},4930:function(t,e,n){var r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"499e":function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],c=i[0],a=i[1],u=i[2],f=i[3],s={id:t+":"+o,css:a,media:u,sourceMap:f};r[c]?r[c].parts.push(s):n.push(r[c]={id:c,parts:[s]})}return n}n.r(e),n.d(e,"default",(function(){return v}));var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},c=o&&(document.head||document.getElementsByTagName("head")[0]),a=null,u=0,f=!1,s=function(){},d=null,l="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function v(t,e,n,o){f=n,d=o||{};var c=r(t,e);return h(c),function(e){for(var n=[],o=0;o<c.length;o++){var a=c[o],u=i[a.id];u.refs--,n.push(u)}e?(c=r(t,e),h(c)):c=[];for(o=0;o<n.length;o++){u=n[o];if(0===u.refs){for(var f=0;f<u.parts.length;f++)u.parts[f]();delete i[u.id]}}}}function h(t){for(var e=0;e<t.length;e++){var n=t[e],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(y(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var c=[];for(o=0;o<n.parts.length;o++)c.push(y(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:c}}}}function b(){var t=document.createElement("style");return t.type="text/css",c.appendChild(t),t}function y(t){var e,n,r=document.querySelector("style["+l+'~="'+t.id+'"]');if(r){if(f)return s;r.parentNode.removeChild(r)}if(p){var o=u++;r=a||(a=b()),e=m.bind(null,r,o,!1),n=m.bind(null,r,o,!0)}else r=b(),e=x.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var g=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function m(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=g(e,o);else{var i=document.createTextNode(o),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(i,c[e]):t.appendChild(i)}}function x(t,e){var n=e.css,r=e.media,o=e.sourceMap;if(r&&t.setAttribute("media",r),d.ssrId&&t.setAttribute(l,e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"4d64":function(t,e,n){var r=n("fc6a"),o=n("50c4"),i=n("23cb"),c=function(t){return function(e,n,c){var a,u=r(e),f=o(u.length),s=i(c,f);if(t&&n!=n){while(f>s)if(a=u[s++],a!=a)return!0}else for(;f>s;s++)if((t||s in u)&&u[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},"50c4":function(t,e,n){var r=n("a691"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5692:function(t,e,n){var r=n("c430"),o=n("c6cd");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),o=n("241c"),i=n("7418"),c=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(c(t)),n=i.f;return n?e.concat(n(t)):e}},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("1d80"),o=n("5899"),i="["+o+"]",c=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),u=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(c,"")),2&t&&(n=n.replace(a,"")),n}};t.exports={start:u(1),end:u(2),trim:u(3)}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"605d":function(t,e,n){var r=n("c6b6"),o=n("da84");t.exports="process"==r(o.process)},"60da":function(t,e,n){"use strict";var r=n("83ab"),o=n("d039"),i=n("df75"),c=n("7418"),a=n("d1e7"),u=n("7b0b"),f=n("44ad"),s=Object.assign,d=Object.defineProperty;t.exports=!s||o((function(){if(r&&1!==s({b:1},s(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=s({},t)[n]||i(s({},e)).join("")!=o}))?function(t,e){var n=u(t),o=arguments.length,s=1,d=c.f,l=a.f;while(o>s){var p,v=f(arguments[s++]),h=d?i(v).concat(d(v)):i(v),b=h.length,y=0;while(b>y)p=h[y++],r&&!l.call(v,p)||(n[p]=v[p])}return n}:s},"69f3":function(t,e,n){var r,o,i,c=n("7f9a"),a=n("da84"),u=n("861d"),f=n("9112"),s=n("5135"),d=n("c6cd"),l=n("f772"),p=n("d012"),v=a.WeakMap,h=function(t){return i(t)?o(t):r(t,{})},b=function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(c){var y=d.state||(d.state=new v),g=y.get,m=y.has,x=y.set;r=function(t,e){return e.facade=t,x.call(y,t,e),e},o=function(t){return g.call(y,t)||{}},i=function(t){return m.call(y,t)}}else{var w=l("state");p[w]=!0,r=function(t,e){return e.facade=t,f(t,w,e),e},o=function(t){return s(t,w)?t[w]:{}},i=function(t){return s(t,w)}}t.exports={set:r,get:o,has:i,enforce:h,getterFor:b}},"6b82":function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,".indicator-container[data-v-162e33aa]{display:flex;justify-content:center}.indicator[data-v-162e33aa]{width:1rem;height:1rem;border-radius:50%;background-color:#e4e7ed;margin-left:.25rem;margin-right:.25rem}.indicator.active[data-v-162e33aa]{background-color:#8300bf}",""]),t.exports=e},"6eeb":function(t,e,n){var r=n("da84"),o=n("9112"),i=n("5135"),c=n("ce4e"),a=n("8925"),u=n("69f3"),f=u.get,s=u.enforce,d=String(String).split("String");(t.exports=function(t,e,n,a){var u,f=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),u=s(n),u.source||(u.source=d.join("string"==typeof e?e:""))),t!==r?(f?!p&&t[e]&&(l=!0):delete t[e],l?t[e]=n:o(t,e,n)):l?t[e]=n:c(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||a(this)}))},7156:function(t,e,n){var r=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var i,c;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(c=i.prototype)&&c!==n.prototype&&o(t,c),t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7c73":function(t,e,n){var r,o=n("825a"),i=n("37e8"),c=n("7839"),a=n("d012"),u=n("1be4"),f=n("cc12"),s=n("f772"),d=">",l="<",p="prototype",v="script",h=s("IE_PROTO"),b=function(){},y=function(t){return l+v+d+t+l+"/"+v+d},g=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){var t,e=f("iframe"),n="java"+v+":";return e.style.display="none",u.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}x=r?g(r):m();var t=c.length;while(t--)delete x[p][c[t]];return x()};a[h]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(b[p]=o(t),n=new b,b[p]=null,n[h]=t):n=x(),void 0===e?n:i(n,e)}},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),o=n("9ed3"),i=n("e163"),c=n("d2bb"),a=n("d44e"),u=n("9112"),f=n("6eeb"),s=n("b622"),d=n("c430"),l=n("3f8c"),p=n("ae93"),v=p.IteratorPrototype,h=p.BUGGY_SAFARI_ITERATORS,b=s("iterator"),y="keys",g="values",m="entries",x=function(){return this};t.exports=function(t,e,n,s,p,w,S){o(n,e,s);var j,O,_,I=function(t){if(t===p&&k)return k;if(!h&&t in T)return T[t];switch(t){case y:return function(){return new n(this,t)};case g:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this)}},E=e+" Iterator",C=!1,T=t.prototype,P=T[b]||T["@@iterator"]||p&&T[p],k=!h&&P||I(p),N="Array"==e&&T.entries||P;if(N&&(j=i(N.call(new t)),v!==Object.prototype&&j.next&&(d||i(j)===v||(c?c(j,v):"function"!=typeof j[b]&&u(j,b,x)),a(j,E,!0,!0),d&&(l[E]=x))),p==g&&P&&P.name!==g&&(C=!0,k=function(){return P.call(this)}),d&&!S||T[b]===k||u(T,b,k),l[e]=k,p)if(O={values:I(g),keys:w?k:I(y),entries:I(m)},S)for(_ in O)(h||C||!(_ in T))&&f(T,_,O[_]);else r({target:e,proto:!0,forced:h||C},O);return O}},"7f9a":function(t,e,n){var r=n("da84"),o=n("8925"),i=r.WeakMap;t.exports="function"===typeof i&&/native code/.test(o(i))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"857a":function(t,e,n){var r=n("1d80"),o=/"/g;t.exports=function(t,e,n,i){var c=String(r(t)),a="<"+e;return""!==n&&(a+=" "+n+'="'+String(i).replace(o,""")+'"'),a+">"+c+"</"+e+">"}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,e,n){var r,o,i;(function(n,c){o=[],r=c,i="function"===typeof r?r.apply(e,o):r,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,c=/@([^@]*):(\d+):(\d+)\s*$/gi,a=i.exec(p.stack)||c.exec(p.stack),u=a&&a[1]||!1,f=a&&a[2]||!1,s=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");u===s&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(f-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var l=0;l<d.length;l++){if("interactive"===d[l].readyState)return d[l];if(d[l].src===u)return d[l];if(u===s&&d[l].innerHTML&&d[l].innerHTML.trim()===o)return d[l]}return null}}return t}))},8925:function(t,e,n){var r=n("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},"8f3f":function(t,e,n){"use strict";n("99a3")},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),o=n("9bf2"),i=n("5c6c");t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"94ca":function(t,e,n){var r=n("d039"),o=/#|\.prototype\./,i=function(t,e){var n=a[c(t)];return n==f||n!=u&&("function"==typeof e?r(e):!!e)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=i.data={},u=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},9911:function(t,e,n){"use strict";var r=n("23e7"),o=n("857a"),i=n("af03");r({target:"String",proto:!0,forced:i("link")},{link:function(t){return o(this,"a","href",t)}})},"99a3":function(t,e,n){var r=n("33c1");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("499e").default;o("78be8f80",r,!0,{sourceMap:!1,shadowMode:!1})},"9bf2":function(t,e,n){var r=n("83ab"),o=n("0cfb"),i=n("825a"),c=n("c04e"),a=Object.defineProperty;e.f=r?a:function(t,e,n){if(i(t),e=c(e,!0),i(n),o)try{return a(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9ed3":function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,o=n("7c73"),i=n("5c6c"),c=n("d44e"),a=n("3f8c"),u=function(){return this};t.exports=function(t,e,n){var f=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),c(t,f,!1,!0),a[f]=u,t}},a4b4:function(t,e,n){var r=n("342f");t.exports=/web0s(?!.*chrome)/i.test(r)},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a79d:function(t,e,n){"use strict";var r=n("23e7"),o=n("c430"),i=n("fea9"),c=n("d039"),a=n("d066"),u=n("4840"),f=n("cdf9"),s=n("6eeb"),d=!!i&&c((function(){i.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(t){var e=u(this,a("Promise")),n="function"==typeof t;return this.then(n?function(n){return f(e,t()).then((function(){return n}))}:t,n?function(n){return f(e,t()).then((function(){throw n}))}:t)}}),o||"function"!=typeof i||i.prototype["finally"]||s(i.prototype,"finally",a("Promise").prototype["finally"])},a9e3:function(t,e,n){"use strict";var r=n("83ab"),o=n("da84"),i=n("94ca"),c=n("6eeb"),a=n("5135"),u=n("c6b6"),f=n("7156"),s=n("c04e"),d=n("d039"),l=n("7c73"),p=n("241c").f,v=n("06cf").f,h=n("9bf2").f,b=n("58a8").trim,y="Number",g=o[y],m=g.prototype,x=u(l(m))==y,w=function(t){var e,n,r,o,i,c,a,u,f=s(t,!1);if("string"==typeof f&&f.length>2)if(f=b(f),e=f.charCodeAt(0),43===e||45===e){if(n=f.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(f.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(i=f.slice(2),c=i.length,a=0;a<c;a++)if(u=i.charCodeAt(a),u<48||u>o)return NaN;return parseInt(i,r)}return+f};if(i(y,!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var S,j=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof j&&(x?d((function(){m.valueOf.call(n)})):u(n)!=y)?f(new g(w(e)),n,j):w(e)},O=r?p(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),_=0;O.length>_;_++)a(g,S=O[_])&&!a(j,S)&&h(j,S,v(g,S));j.prototype=m,m.constructor=j,c(o,y,j)}},ae40:function(t,e,n){var r=n("83ab"),o=n("d039"),i=n("5135"),c=Object.defineProperty,a={},u=function(t){throw t};t.exports=function(t,e){if(i(a,t))return a[t];e||(e={});var n=[][t],f=!!i(e,"ACCESSORS")&&e.ACCESSORS,s=i(e,0)?e[0]:u,d=i(e,1)?e[1]:void 0;return a[t]=!!n&&!o((function(){if(f&&!r)return!0;var t={length:-1};f?c(t,1,{enumerable:!0,get:u}):t[1]=1,n.call(t,s,d)}))}},ae93:function(t,e,n){"use strict";var r,o,i,c=n("d039"),a=n("e163"),u=n("9112"),f=n("5135"),s=n("b622"),d=n("c430"),l=s("iterator"),p=!1,v=function(){return this};[].keys&&(i=[].keys(),"next"in i?(o=a(a(i)),o!==Object.prototype&&(r=o)):p=!0);var h=void 0==r||c((function(){var t={};return r[l].call(t)!==t}));h&&(r={}),d&&!h||f(r,l)||u(r,l,v),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},af03:function(t,e,n){var r=n("d039");t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},b0a0:function(t,e,n){"use strict";n("3269")},b575:function(t,e,n){var r,o,i,c,a,u,f,s,d=n("da84"),l=n("06cf").f,p=n("2cf4").set,v=n("1cdc"),h=n("a4b4"),b=n("605d"),y=d.MutationObserver||d.WebKitMutationObserver,g=d.document,m=d.process,x=d.Promise,w=l(d,"queueMicrotask"),S=w&&w.value;S||(r=function(){var t,e;b&&(t=m.domain)&&t.exit();while(o){e=o.fn,o=o.next;try{e()}catch(n){throw o?c():i=void 0,n}}i=void 0,t&&t.enter()},v||b||h||!y||!g?x&&x.resolve?(f=x.resolve(void 0),s=f.then,c=function(){s.call(f,r)}):c=b?function(){m.nextTick(r)}:function(){p.call(d,r)}:(a=!0,u=g.createTextNode(""),new y(r).observe(u,{characterData:!0}),c=function(){u.data=a=!a})),t.exports=S||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,c()),i=e}},b622:function(t,e,n){var r=n("da84"),o=n("5692"),i=n("5135"),c=n("90e3"),a=n("4930"),u=n("fdbf"),f=o("wks"),s=r.Symbol,d=u?s:s&&s.withoutSetter||c;t.exports=function(t){return i(f,t)||(a&&i(s,t)?f[t]=s[t]:f[t]=d("Symbol."+t)),f[t]}},c04e:function(t,e,n){var r=n("861d");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},c430:function(t,e){t.exports=!1},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),o=n("ce4e"),i="__core-js_shared__",c=r[i]||o(i,{});t.exports=c},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("5135"),o=n("fc6a"),i=n("4d64").indexOf,c=n("d012");t.exports=function(t,e){var n,a=o(t),u=0,f=[];for(n in a)!r(c,n)&&r(a,n)&&f.push(n);while(e.length>u)r(a,n=e[u++])&&(~i(f,n)||f.push(n));return f}},caad:function(t,e,n){"use strict";var r=n("23e7"),o=n("4d64").includes,i=n("44d2"),c=n("ae40"),a=c("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!a},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},cc12:function(t,e,n){var r=n("da84"),o=n("861d"),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},cca6:function(t,e,n){var r=n("23e7"),o=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},cdf9:function(t,e,n){var r=n("825a"),o=n("861d"),i=n("f069");t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t),c=n.resolve;return c(e),n.promise}},ce4e:function(t,e,n){var r=n("da84"),o=n("9112");t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),o=n("da84"),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},d2bb:function(t,e,n){var r=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},d44e:function(t,e,n){var r=n("9bf2").f,o=n("5135"),i=n("b622"),c=i("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,c)&&r(t,c,{configurable:!0,value:e})}},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},df75:function(t,e,n){var r=n("ca84"),o=n("7839");t.exports=Object.keys||function(t){return r(t,o)}},e163:function(t,e,n){var r=n("5135"),o=n("7b0b"),i=n("f772"),c=n("e177"),a=i("IE_PROTO"),u=Object.prototype;t.exports=c?Object.getPrototypeOf:function(t){return t=o(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,n){"use strict";var r=n("fc6a"),o=n("44d2"),i=n("3f8c"),c=n("69f3"),a=n("7dd0"),u="Array Iterator",f=c.set,s=c.getterFor(u);t.exports=a(Array,"Array",(function(t,e){f(this,{type:u,target:r(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},e2cc:function(t,e,n){var r=n("6eeb");t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e6cf:function(t,e,n){"use strict";var r,o,i,c,a=n("23e7"),u=n("c430"),f=n("da84"),s=n("d066"),d=n("fea9"),l=n("6eeb"),p=n("e2cc"),v=n("d44e"),h=n("2626"),b=n("861d"),y=n("1c0b"),g=n("19aa"),m=n("8925"),x=n("2266"),w=n("1c7e"),S=n("4840"),j=n("2cf4").set,O=n("b575"),_=n("cdf9"),I=n("44de"),E=n("f069"),C=n("e667"),T=n("69f3"),P=n("94ca"),k=n("b622"),N=n("605d"),A=n("2d00"),M=k("species"),R="Promise",D=T.get,L=T.set,F=T.getterFor(R),U=d,B=f.TypeError,W=f.document,V=f.process,$=s("fetch"),G=E.f,z=G,H=!!(W&&W.createEvent&&f.dispatchEvent),q="function"==typeof PromiseRejectionEvent,X="unhandledrejection",Y="rejectionhandled",J=0,K=1,Q=2,Z=1,tt=2,et=P(R,(function(){var t=m(U)!==String(U);if(!t){if(66===A)return!0;if(!N&&!q)return!0}if(u&&!U.prototype["finally"])return!0;if(A>=51&&/native code/.test(U))return!1;var e=U.resolve(1),n=function(t){t((function(){}),(function(){}))},r=e.constructor={};return r[M]=n,!(e.then((function(){}))instanceof n)})),nt=et||!w((function(t){U.all(t)["catch"]((function(){}))})),rt=function(t){var e;return!(!b(t)||"function"!=typeof(e=t.then))&&e},ot=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;O((function(){var r=t.value,o=t.state==K,i=0;while(n.length>i){var c,a,u,f=n[i++],s=o?f.ok:f.fail,d=f.resolve,l=f.reject,p=f.domain;try{s?(o||(t.rejection===tt&&ut(t),t.rejection=Z),!0===s?c=r:(p&&p.enter(),c=s(r),p&&(p.exit(),u=!0)),c===f.promise?l(B("Promise-chain cycle")):(a=rt(c))?a.call(c,d,l):d(c)):l(r)}catch(v){p&&!u&&p.exit(),l(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ct(t)}))}},it=function(t,e,n){var r,o;H?(r=W.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),f.dispatchEvent(r)):r={promise:e,reason:n},!q&&(o=f["on"+t])?o(r):t===X&&I("Unhandled promise rejection",n)},ct=function(t){j.call(f,(function(){var e,n=t.facade,r=t.value,o=at(t);if(o&&(e=C((function(){N?V.emit("unhandledRejection",r,n):it(X,n,r)})),t.rejection=N||at(t)?tt:Z,e.error))throw e.value}))},at=function(t){return t.rejection!==Z&&!t.parent},ut=function(t){j.call(f,(function(){var e=t.facade;N?V.emit("rejectionHandled",e):it(Y,e,t.value)}))},ft=function(t,e,n){return function(r){t(e,r,n)}},st=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=Q,ot(t,!0))},dt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw B("Promise can't be resolved itself");var r=rt(e);r?O((function(){var n={done:!1};try{r.call(e,ft(dt,n,t),ft(st,n,t))}catch(o){st(n,o,t)}})):(t.value=e,t.state=K,ot(t,!1))}catch(o){st({done:!1},o,t)}}};et&&(U=function(t){g(this,U,R),y(t),r.call(this);var e=D(this);try{t(ft(dt,e),ft(st,e))}catch(n){st(e,n)}},r=function(t){L(this,{type:R,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:J,value:void 0})},r.prototype=p(U.prototype,{then:function(t,e){var n=F(this),r=G(S(this,U));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=N?V.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=J&&ot(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=D(t);this.promise=t,this.resolve=ft(dt,e),this.reject=ft(st,e)},E.f=G=function(t){return t===U||t===i?new o(t):z(t)},u||"function"!=typeof d||(c=d.prototype.then,l(d.prototype,"then",(function(t,e){var n=this;return new U((function(t,e){c.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof $&&a({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return _(U,$.apply(f,arguments))}}))),a({global:!0,wrap:!0,forced:et},{Promise:U}),v(U,R,!1,!0),h(R),i=s(R),a({target:R,stat:!0,forced:et},{reject:function(t){var e=G(this);return e.reject.call(void 0,t),e.promise}}),a({target:R,stat:!0,forced:u||et},{resolve:function(t){return _(u&&this===i?U:this,t)}}),a({target:R,stat:!0,forced:nt},{all:function(t){var e=this,n=G(e),r=n.resolve,o=n.reject,i=C((function(){var n=y(e.resolve),i=[],c=0,a=1;x(t,(function(t){var u=c++,f=!1;i.push(void 0),a++,n.call(e,t).then((function(t){f||(f=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=G(e),r=n.reject,o=C((function(){var o=y(e.resolve);x(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},e893:function(t,e,n){var r=n("5135"),o=n("56ef"),i=n("06cf"),c=n("9bf2");t.exports=function(t,e){for(var n=o(e),a=c.f,u=i.f,f=0;f<n.length;f++){var s=n[f];r(t,s)||a(t,s,u(e,s))}}},e95a:function(t,e,n){var r=n("b622"),o=n("3f8c"),i=r("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||c[i]===t)}},f069:function(t,e,n){"use strict";var r=n("1c0b"),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},f5df:function(t,e,n){var r=n("00ee"),o=n("c6b6"),i=n("b622"),c=i("toStringTag"),a="Arguments"==o(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),c))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},f772:function(t,e,n){var r=n("5692"),o=n("90e3"),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}n("e260"),n("e6cf"),n("cca6"),n("a79d");var c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"myButton",staticClass:"gallery"},[n("div",{staticClass:"gallery-strip"},[n("a",{class:["oval","prev",{disabled:!t.isPrevPossible}],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goPrev(e)}}},[n("span",{staticClass:"progress-button"},[t._v("‹")])]),n("div",{staticClass:"filler"}),n("div",{staticClass:"card-line"},t._l(t.items,(function(e,r){return n("span",{key:"card_"+r,class:["key-image-span",{active:t.isActive(r)}],style:{display:t.displayState(r)}},[n("card",{attrs:{data:e,width:t.cardWidth,height:t.cardHeight,"show-card-details":t.showCardDetails}})],1)})),0),n("div",{staticClass:"filler"}),n("a",{class:["oval","next",{disabled:!t.isNextPossible}],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goNext(e)}}},[n("span",{staticClass:"progress-button"},[t._v("›")])])]),t.showIndicatorBar?n("div",{staticClass:"bottom-spacer"}):t._e(),t.showIndicatorBar?n("index-indicator",{attrs:{count:t.itemCount,current:t.currentIndex},on:{clicked:t.indicatorClicked}}):t._e()],1)},a=[],u=(n("caad"),n("a9e3"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"indicator-container"},t._l(t.count,(function(e,r){return n("div",{key:"indicator_"+e,class:["indicator",{active:t.current===r}],on:{click:function(e){return t.$emit("clicked",r)}}})})),0)}),f=[],s={name:"IndexIndicator",props:{count:{type:Number,default:0},current:{type:Number,default:0}}},d=s;n("3008");function l(t,e,n,r,o,i,c,a){var u,f="function"===typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),c?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(c)},f._ssrRegister=u):o&&(u=a?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(f.functional){f._injectStyles=u;var s=f.render;f.render=function(t,e){return u.call(e),s(t,e)}}else{var d=f.beforeCreate;f.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:f}}var p=l(d,u,f,!1,null,"162e33aa",null),v=p.exports,h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-card",{staticClass:"card",style:{padding:"0px",maxWidth:t.width+"rem"}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:!t.isReady,expression:"!isReady"}]},[n("img",{attrs:{src:t.data.thumbnail,alt:"thumbnail loading ..."}}),t._e(),t.showCardDetails?n("div",{staticClass:"details"},[n("p",[n("b",[t._v(t._s(t.data.type))])]),n("el-tooltip",{attrs:{content:t.data.title}},[n("p",{staticClass:"title"},[t._v(" "+t._s(t.data.title)+" ")])]),n("el-button",{on:{click:function(e){return e.preventDefault(),t.openLinkInNewTab(e)}}},[t._v(" View "+t._s(t.data.type))])],1):t._e()])])},b=[],y=(n("9911"),{name:"GalleryCard",props:{data:{type:Object,required:!0},width:{type:Number,default:3},height:{type:Number,default:3},showCardDetails:{type:Boolean}},data:function(){return{ro:null,triangleSize:4}},computed:{isReady:function(){return this.data.title&&this.data.thumbnail&&this.data.link},imageHeight:function(){return this.showCardDetails?.525*this.height:this.height},imageWidth:function(){return this.width-2*this.marginDetails},triangleHeight:function(){return.237*this.height},marginDetails:function(){return.076*this.height},typeIcon:function(){}},methods:{openLinkInNewTab:function(){var t=document.createElement("a");console.log(this.data.link),t.href=this.data.link,t.target="_blank",document.body.appendChild(t),t.click(),t.remove()}}}),g=y,m=(n("b0a0"),l(g,h,b,!1,null,"6ae61986",null)),x=m.exports;function w(t){return"undefined"!==typeof window?t*parseFloat(window.getComputedStyle(document.documentElement).fontSize):16*t}var S={name:"Gallery",components:{IndexIndicator:v,Card:x},props:{items:{type:Array,default:function(){return[]}},maxWidth:{type:Number,required:!0},cardWidth:{type:Number,default:13.8},showIndicatorBar:{type:Boolean,default:!0},highlightActive:{type:Boolean,default:!0},showCardDetails:{type:Boolean,default:!0},metaData:{type:Object,default:function(){return{datasetVersion:-1,datasetId:-1}}},description:{type:String,default:""}},data:function(){return{count:0,currentIndex:0,controlHeight:2,controlWidth:2}},computed:{itemCount:function(){return this.items.length},isPrevPossible:function(){return this.currentIndex>0},isNextPossible:function(){return this.currentIndex<this.itemCount-1},cardHeight:function(){return.78*this.cardWidth},cardLineWidth:function(){var t=.25;return this.itemCount*(this.cardWidth+t)-t},numberOfItemsVisible:function(){var t=w(.5),e=w(2),n=w(this.cardWidth),r=(this.maxWidth-2*e-2*t)/(1.1*n);return Math.floor(r)}},methods:{isActive:function(t){return this.currentIndex===t&&this.highlightActive},goNext:function(){this.currentIndex+=1},goPrev:function(){this.currentIndex-=1},displayState:function(t){var e=this.numberOfItemsVisible%2===1,n=this.numberOfItemsVisible/2;e&&(n=(this.numberOfItemsVisible-1)/2);for(var r=[this.currentIndex],o=1;o<=n;o++)r.push(this.currentIndex+o),r.push(this.currentIndex-o);e||r.pop();for(var i=[],c=0,a=r;c<a.length;c++){var u=a[c];u<0?i.push(u+this.numberOfItemsVisible):u>=this.itemCount?i.push(u-this.numberOfItemsVisible):i.push(u)}return i.includes(t)?void 0:"none"},indicatorClicked:function(t){this.currentIndex!==t&&(this.currentIndex=t)}}},j=S,O=(n("8f3f"),l(j,c,a,!1,null,"4b918d07",null)),_=O.exports,I=_;e["default"]=I},fc6a:function(t,e,n){var r=n("44ad"),o=n("1d80");t.exports=function(t){return r(o(t))}},fdbf:function(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(t,e,n){var r=n("da84");t.exports=r.Promise}})}));
|
|
1
|
+
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["gallery"]=e(require("vue")):t["gallery"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fae3")}({"06cf":function(t,e,n){var r=n("83ab"),o=n("d1e7"),i=n("5c6c"),a=n("fc6a"),c=n("c04e"),u=n("5135"),s=n("0cfb"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=c(e,!0),s)try{return f(t,e)}catch(n){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},"0801":function(t,e,n){"use strict";n("83c6")},"0ad4":function(t,e,n){var r=n("fee4");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("499e").default;o("56e208b6",r,!0,{sourceMap:!1,shadowMode:!1})},"0cfb":function(t,e,n){var r=n("83ab"),o=n("d039"),i=n("cc12");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"130b":function(t,e,n){var r=n("6b82");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("499e").default;o("701b8c72",r,!0,{sourceMap:!1,shadowMode:!1})},1777:function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,".card[data-v-2a8d68b8]{position:relative}.details[data-v-2a8d68b8]{text-align:left}.title[data-v-2a8d68b8]{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}p.bold[data-v-2a8d68b8]{font-weight:700}.image-overlay[data-v-2a8d68b8]{top:0;right:0}.image-overlay[data-v-2a8d68b8],.triangle-icon[data-v-2a8d68b8]{position:absolute}.triangle-right-corner[data-v-2a8d68b8]{width:0;height:0;border-left:solid transparent;border-top:solid #8300bf}",""]),t.exports=e},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"23cb":function(t,e,n){var r=n("a691"),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},"23e7":function(t,e,n){var r=n("da84"),o=n("06cf").f,i=n("9112"),a=n("6eeb"),c=n("ce4e"),u=n("e893"),s=n("94ca");t.exports=function(t,e){var n,f,d,l,p,h,v=t.target,m=t.global,b=t.stat;if(f=m?r:b?r[v]||c(v,{}):(r[v]||{}).prototype,f)for(d in e){if(p=e[d],t.noTargetGet?(h=o(f,d),l=h&&h.value):l=f[d],n=s(m?d:v+(b?".":"#")+d,t.forced),!n&&void 0!==l){if(typeof p===typeof l)continue;u(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),a(f,d,p,t)}}},"241c":function(t,e,n){var r=n("ca84"),o=n("7839"),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"24fb":function(t,e,n){"use strict";function r(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"===typeof btoa){var i=o(r),a=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(a).concat([i]).join("\n")}return[n].join("\n")}function o(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=r(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"===typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},3008:function(t,e,n){"use strict";n("130b")},"37e8":function(t,e,n){var r=n("83ab"),o=n("9bf2"),i=n("825a"),a=n("df75");t.exports=r?Object.defineProperties:function(t,e){i(t);var n,r=a(e),c=r.length,u=0;while(c>u)o.f(t,n=r[u++],e[n]);return t}},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"428f":function(t,e,n){var r=n("da84");t.exports=r},"44ad":function(t,e,n){var r=n("d039"),o=n("c6b6"),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},"499e":function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=i[0],c=i[1],u=i[2],s=i[3],f={id:t+":"+o,css:c,media:u,sourceMap:s};r[a]?r[a].parts.push(f):n.push(r[a]={id:a,parts:[f]})}return n}n.r(e),n.d(e,"default",(function(){return h}));var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),c=null,u=0,s=!1,f=function(){},d=null,l="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(t,e,n,o){s=n,d=o||{};var a=r(t,e);return v(a),function(e){for(var n=[],o=0;o<a.length;o++){var c=a[o],u=i[c.id];u.refs--,n.push(u)}e?(a=r(t,e),v(a)):a=[];for(o=0;o<n.length;o++){u=n[o];if(0===u.refs){for(var s=0;s<u.parts.length;s++)u.parts[s]();delete i[u.id]}}}}function v(t){for(var e=0;e<t.length;e++){var n=t[e],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(b(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(o=0;o<n.parts.length;o++)a.push(b(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:a}}}}function m(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function b(t){var e,n,r=document.querySelector("style["+l+'~="'+t.id+'"]');if(r){if(s)return f;r.parentNode.removeChild(r)}if(p){var o=u++;r=c||(c=m()),e=y.bind(null,r,o,!1),n=y.bind(null,r,o,!0)}else r=m(),e=x.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var g=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function y(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=g(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function x(t,e){var n=e.css,r=e.media,o=e.sourceMap;if(r&&t.setAttribute("media",r),d.ssrId&&t.setAttribute(l,e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"4d64":function(t,e,n){var r=n("fc6a"),o=n("50c4"),i=n("23cb"),a=function(t){return function(e,n,a){var c,u=r(e),s=o(u.length),f=i(a,s);if(t&&n!=n){while(s>f)if(c=u[f++],c!=c)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"50c4":function(t,e,n){var r=n("a691"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5692:function(t,e,n){var r=n("c430"),o=n("c6cd");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.0",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),o=n("241c"),i=n("7418"),a=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("1d80"),o=n("5899"),i="["+o+"]",a=RegExp("^"+i+i+"*"),c=RegExp(i+i+"*$"),u=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:u(1),end:u(2),trim:u(3)}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"64d9":function(t,e,n){var r=n("9c17");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("499e").default;o("3d41826d",r,!0,{sourceMap:!1,shadowMode:!1})},"69f3":function(t,e,n){var r,o,i,a=n("7f9a"),c=n("da84"),u=n("861d"),s=n("9112"),f=n("5135"),d=n("c6cd"),l=n("f772"),p=n("d012"),h=c.WeakMap,v=function(t){return i(t)?o(t):r(t,{})},m=function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var b=d.state||(d.state=new h),g=b.get,y=b.has,x=b.set;r=function(t,e){return e.facade=t,x.call(b,t,e),e},o=function(t){return g.call(b,t)||{}},i=function(t){return y.call(b,t)}}else{var w=l("state");p[w]=!0,r=function(t,e){return e.facade=t,s(t,w,e),e},o=function(t){return f(t,w)?t[w]:{}},i=function(t){return f(t,w)}}t.exports={set:r,get:o,has:i,enforce:v,getterFor:m}},"6b82":function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,".indicator-container[data-v-162e33aa]{display:flex;justify-content:center}.indicator[data-v-162e33aa]{width:1rem;height:1rem;border-radius:50%;background-color:#e4e7ed;margin-left:.25rem;margin-right:.25rem}.indicator.active[data-v-162e33aa]{background-color:#8300bf}",""]),t.exports=e},"6eeb":function(t,e,n){var r=n("da84"),o=n("9112"),i=n("5135"),a=n("ce4e"),c=n("8925"),u=n("69f3"),s=u.get,f=u.enforce,d=String(String).split("String");(t.exports=function(t,e,n,c){var u,s=!!c&&!!c.unsafe,l=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),u=f(n),u.source||(u.source=d.join("string"==typeof e?e:""))),t!==r?(s?!p&&t[e]&&(l=!0):delete t[e],l?t[e]=n:o(t,e,n)):l?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},7156:function(t,e,n){var r=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var i,a;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(t,a),t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7c73":function(t,e,n){var r,o=n("825a"),i=n("37e8"),a=n("7839"),c=n("d012"),u=n("1be4"),s=n("cc12"),f=n("f772"),d=">",l="<",p="prototype",h="script",v=f("IE_PROTO"),m=function(){},b=function(t){return l+h+d+t+l+"/"+h+d},g=function(t){t.write(b("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){var t,e=s("iframe"),n="java"+h+":";return e.style.display="none",u.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(b("document.F=Object")),t.close(),t.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}x=r?g(r):y();var t=a.length;while(t--)delete x[p][a[t]];return x()};c[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(m[p]=o(t),n=new m,m[p]=null,n[v]=t):n=x(),void 0===e?n:i(n,e)}},"7f9a":function(t,e,n){var r=n("da84"),o=n("8925"),i=r.WeakMap;t.exports="function"===typeof i&&/native code/.test(o(i))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83c6":function(t,e,n){var r=n("1777");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("499e").default;o("4342fcc2",r,!0,{sourceMap:!1,shadowMode:!1})},"857a":function(t,e,n){var r=n("1d80"),o=/"/g;t.exports=function(t,e,n,i){var a=String(r(t)),c="<"+e;return""!==n&&(c+=" "+n+'="'+String(i).replace(o,""")+'"'),c+">"+a+"</"+e+">"}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,e,n){var r,o,i;(function(n,a){o=[],r=a,i="function"===typeof r?r.apply(e,o):r,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,c=i.exec(p.stack)||a.exec(p.stack),u=c&&c[1]||!1,s=c&&c[2]||!1,f=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");u===f&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var l=0;l<d.length;l++){if("interactive"===d[l].readyState)return d[l];if(d[l].src===u)return d[l];if(u===f&&d[l].innerHTML&&d[l].innerHTML.trim()===o)return d[l]}return null}}return t}))},8925:function(t,e,n){var r=n("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},"8bbf":function(e,n){e.exports=t},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),o=n("9bf2"),i=n("5c6c");t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"94ca":function(t,e,n){var r=n("d039"),o=/#|\.prototype\./,i=function(t,e){var n=c[a(t)];return n==s||n!=u&&("function"==typeof e?r(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},9565:function(t,e,n){"use strict";n("64d9")},9911:function(t,e,n){"use strict";var r=n("23e7"),o=n("857a"),i=n("af03");r({target:"String",proto:!0,forced:i("link")},{link:function(t){return o(this,"a","href",t)}})},"9bf2":function(t,e,n){var r=n("83ab"),o=n("0cfb"),i=n("825a"),a=n("c04e"),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=a(e,!0),i(n),o)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9c17":function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,".oval[data-v-5633dde0]{width:2rem;height:2rem;line-height:2rem;box-shadow:0 .125rem .25rem 0 rgba(0,0,0,.25);border:solid 1px var(--pale-grey);background-color:#fff;border-radius:1rem;display:flex;justify-content:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.card-line[data-v-5633dde0],.gallery-strip[data-v-5633dde0]{display:flex;flex-wrap:nowrap;justify-content:space-around;align-items:center}.card-line[data-v-5633dde0]{flex-grow:2}.progress-button[data-v-5633dde0]{font-size:1.5rem;font-weight:700}.bottom-spacer[data-v-5633dde0]{min-height:4rem}.filler[data-v-5633dde0]{flex-grow:1}.key-image-span.active[data-v-5633dde0]{transform:scale(1.1)}a.next[data-v-5633dde0]:not(.underline),a.prev[data-v-5633dde0]:not(.underline){text-decoration:none}.disabled[data-v-5633dde0]{opacity:.5;pointer-events:none}",""]),t.exports=e},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),o=n("da84"),i=n("94ca"),a=n("6eeb"),c=n("5135"),u=n("c6b6"),s=n("7156"),f=n("c04e"),d=n("d039"),l=n("7c73"),p=n("241c").f,h=n("06cf").f,v=n("9bf2").f,m=n("58a8").trim,b="Number",g=o[b],y=g.prototype,x=u(l(y))==b,w=function(t){var e,n,r,o,i,a,c,u,s=f(t,!1);if("string"==typeof s&&s.length>2)if(s=m(s),e=s.charCodeAt(0),43===e||45===e){if(n=s.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(i=s.slice(2),a=i.length,c=0;c<a;c++)if(u=i.charCodeAt(c),u<48||u>o)return NaN;return parseInt(i,r)}return+s};if(i(b,!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var _,S=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof S&&(x?d((function(){y.valueOf.call(n)})):u(n)!=b)?s(new g(w(e)),n,S):w(e)},I=r?p(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;I.length>C;C++)c(g,_=I[C])&&!c(S,_)&&v(S,_,h(g,_));S.prototype=y,y.constructor=S,a(o,b,S)}},af03:function(t,e,n){var r=n("d039");t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},c04e:function(t,e,n){var r=n("861d");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},c430:function(t,e){t.exports=!1},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6bd:function(t,e,n){"use strict";n("0ad4")},c6cd:function(t,e,n){var r=n("da84"),o=n("ce4e"),i="__core-js_shared__",a=r[i]||o(i,{});t.exports=a},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("5135"),o=n("fc6a"),i=n("4d64").indexOf,a=n("d012");t.exports=function(t,e){var n,c=o(t),u=0,s=[];for(n in c)!r(a,n)&&r(c,n)&&s.push(n);while(e.length>u)r(c,n=e[u++])&&(~i(s,n)||s.push(n));return s}},cc12:function(t,e,n){var r=n("da84"),o=n("861d"),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},ce4e:function(t,e,n){var r=n("da84"),o=n("9112");t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},cf05:function(t,e,n){t.exports=n.p+"img/logo.82b9c7a5.png"},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),o=n("da84"),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},d2bb:function(t,e,n){var r=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},df75:function(t,e,n){var r=n("ca84"),o=n("7839");t.exports=Object.keys||function(t){return r(t,o)}},e893:function(t,e,n){var r=n("5135"),o=n("56ef"),i=n("06cf"),a=n("9bf2");t.exports=function(t,e){for(var n=o(e),c=a.f,u=i.f,s=0;s<n.length;s++){var f=n[s];r(t,f)||c(t,f,u(e,f))}}},f772:function(t,e,n){var r=n("5692"),o=n("90e3"),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},fae3:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var a=n("8bbf"),c=n.n(a),u=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"app"}},[r("img",{attrs:{alt:"Vue logo",src:n("cf05")}}),r("gallery",{attrs:{items:t.dataInput}})],1)},s=[],f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"myButton",staticClass:"gallery"},[n("div",{staticClass:"gallery-strip"},[n("a",{class:["oval","prev",{disabled:!t.isPrevPossible}],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goPrev(e)}}},[n("span",{staticClass:"progress-button"},[t._v("‹")])]),n("div",{staticClass:"filler"}),n("div",{staticClass:"card-line"},t._l(t.windowedItems,(function(e,r){return n("span",{key:"card_"+r,class:["key-image-span",{active:t.isActive(r)}]},[e?n("card",{attrs:{entry:e,width:t.cardWidth,height:t.cardHeight,"show-card-details":t.showCardDetails}}):t._e()],1)})),0),n("div",{staticClass:"filler"}),n("a",{class:["oval","next",{disabled:!t.isNextPossible}],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goNext(e)}}},[n("span",{staticClass:"progress-button"},[t._v("›")])])]),t.canShowIndicatorBar?n("div",{staticClass:"bottom-spacer"}):t._e(),t.canShowIndicatorBar?n("index-indicator",{attrs:{count:t.itemCount,current:t.currentIndex},on:{clicked:t.indicatorClicked}}):t._e()],1)},d=[],l=(n("a9e3"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"indicator-container"},t._l(t.count,(function(e,r){return n("div",{key:"indicator_"+e,class:["indicator",{active:t.current===r}],on:{click:function(e){return t.$emit("clicked",r)}}})})),0)}),p=[],h={name:"IndexIndicator",props:{count:{type:Number,default:0},current:{type:Number,default:0}}},v=h;n("3008");function m(t,e,n,r,o,i,a,c){var u,s="function"===typeof t?t.options:t;if(e&&(s.render=e,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},s._ssrRegister=u):o&&(u=c?function(){o.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(s.functional){s._injectStyles=u;var f=s.render;s.render=function(t,e){return u.call(e),f(t,e)}}else{var d=s.beforeCreate;s.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:s}}var b=m(v,l,p,!1,null,"162e33aa",null),g=b.exports,y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-card",{staticClass:"card",style:{padding:"0px",maxWidth:t.width+"rem"}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:!t.isReady,expression:"!isReady"}]},[n("img",{attrs:{src:t.entry.thumbnail,alt:"thumbnail loading ..."}}),t._e(),t.showCardDetails?n("div",{staticClass:"details"},[n("p",[n("b",[t._v(t._s(t.entry.type))])]),n("el-tooltip",{attrs:{content:t.entry.title,placement:"top"}},[n("p",{staticClass:"title"},[t._v(" "+t._s(t.entry.title)+" ")])]),n("el-button",{on:{click:function(e){return e.preventDefault(),t.openLinkInNewTab(e)}}},[t._v(" View "+t._s(t.entry.type))])],1):t._e()])])},x=[],w=(n("9911"),{name:"GalleryCard",props:{entry:{type:Object,required:!0},width:{type:Number,default:3},height:{type:Number,default:3},showCardDetails:{type:Boolean}},data:function(){return{ro:null,triangleSize:4}},computed:{isReady:function(){return this.entry.title&&this.entry.thumbnail&&this.entry.link},imageHeight:function(){return this.showCardDetails?.525*this.height:this.height},imageWidth:function(){return this.width-2*this.marginDetails},triangleHeight:function(){return.237*this.height},marginDetails:function(){return.076*this.height},typeIcon:function(){}},methods:{openLinkInNewTab:function(){var t=document.createElement("a");t.href=this.entry.link,t.target="_blank",document.body.appendChild(t),t.click(),t.remove()}}}),_=w,S=(n("0801"),m(_,y,x,!1,null,"2a8d68b8",null)),I=S.exports;function C(t){return"undefined"!==typeof window?t*parseFloat(window.getComputedStyle(document.documentElement).fontSize):16*t}var O={name:"Gallery",components:{IndexIndicator:g,Card:I},props:{items:{type:Array,default:function(){return[]}},maxWidth:{type:Number,required:!0},cardWidth:{type:Number,default:13.8},showIndicatorBar:{type:Boolean,default:!0},highlightActive:{type:Boolean,default:!0},showCardDetails:{type:Boolean,default:!0},metaData:{type:Object,default:function(){return{datasetVersion:-1,datasetId:-1}}},description:{type:String,default:""}},data:function(){return{count:0,currentIndex:0,controlHeight:2,controlWidth:2}},computed:{itemCount:function(){return this.items.length},isPrevPossible:function(){return this.currentIndex>0},isNextPossible:function(){return this.currentIndex<this.itemCount-1},cardHeight:function(){return.78*this.cardWidth},cardLineWidth:function(){var t=.25;return this.itemCount*(this.cardWidth+t)-t},numberOfItemsVisible:function(){var t=C(.5),e=C(2),n=C(this.cardWidth),r=(this.maxWidth-2*e-2*t)/(1.1*n);return Math.floor(r)},canShowIndicatorBar:function(){var t=C(1),e=this.maxWidth/(t*this.itemCount);return this.showIndicatorBar&&e>.1},valueAdjustment:function(){var t=Math.floor(this.numberOfItemsVisible/2),e=this.currentIndex-t;return e<0?e=0:e+this.numberOfItemsVisible>this.itemCount&&(e=this.itemCount-this.numberOfItemsVisible),e},windowedItems:function(){for(var t=[],e=0;e<this.numberOfItemsVisible;e++)t.push(this.items[e+this.valueAdjustment]);return t}},methods:{isActive:function(t){return this.currentIndex-this.valueAdjustment===t&&this.highlightActive},goNext:function(){this.currentIndex+=1},goPrev:function(){this.currentIndex-=1},indicatorClicked:function(t){this.currentIndex!==t&&(this.currentIndex=t)}}},j=O,N=(n("9565"),m(j,f,d,!1,null,"5633dde0",null)),E=N.exports,M={name:"App",components:{Gallery:E},data:function(){return{dataInput:[{name:"test1",type:"data"}]}}},k=M,T=(n("c6bd"),m(k,u,s,!1,null,"9019dd46",null)),P=T.exports;c.a.config.productionTip=!1,new c.a({render:function(t){return t(P)}}).$mount("#app")},fc6a:function(t,e,n){var r=n("44ad"),o=n("1d80");t.exports=function(t){return r(o(t))}},fee4:function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,"#app[data-v-9019dd46]{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50;margin-top:60px}",""]),t.exports=e}})}));
|
|
2
2
|
//# sourceMappingURL=gallery.umd.min.js.map
|