-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheca3354022873ccf3829.js
3 lines (3 loc) · 37.9 KB
/
eca3354022873ccf3829.js
1
2
3
/*! For license information please see LICENSES */
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{0:function(t,e,n){"use strict";n.d(e,"i",function(){return f}),n.d(e,"j",function(){return d}),n.d(e,"a",function(){return v}),n.d(e,"o",function(){return m}),n.d(e,"e",function(){return x}),n.d(e,"f",function(){return y}),n.d(e,"c",function(){return _}),n.d(e,"n",function(){return w}),n.d(e,"h",function(){return C}),n.d(e,"p",function(){return O}),n.d(e,"k",function(){return $}),n.d(e,"m",function(){return E}),n.d(e,"d",function(){return S}),n.d(e,"b",function(){return R}),n.d(e,"g",function(){return T}),n.d(e,"l",function(){return A});var r=n(89),o=(n(102),n(124),n(125),n(23)),c=(n(127),n(129),n(130),n(132),n(90),n(53),n(5)),l=(n(61),n(45),n(24),n(82),n(46),n(12)),h=n(1);function f(t){h.a.config.errorHandler&&h.a.config.errorHandler(t)}function d(t){return t.then(function(t){return t.default||t})}function v(t,e){if(e||!t.options.__hasNuxtData){var n=t.options._originDataFn||t.options.data||function(){return{}};t.options._originDataFn=n,t.options.data=function(){var data=n.call(this);return this.$ssrContext&&(e=this.$ssrContext.asyncData[t.cid]),Object(l.a)({},data,e)},t.options.__hasNuxtData=!0,t._Ctor&&t._Ctor.options&&(t._Ctor.options.data=t.options.data)}}function m(t){return t.options&&t._Ctor===t?t:(t.options?(t._Ctor=t,t.extendOptions=t.options):(t=h.a.extend(t))._Ctor=t,!t.options.name&&t.options.__file&&(t.options.name=t.options.__file),t)}function x(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Array.prototype.concat.apply([],t.matched.map(function(t,n){return Object.keys(t.components).map(function(r){return e&&e.push(n),t.components[r]})}))}function y(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Array.prototype.concat.apply([],t.matched.map(function(t,n){return Object.keys(t.instances).map(function(r){return e&&e.push(n),t.instances[r]})}))}function _(t,e){return Array.prototype.concat.apply([],t.matched.map(function(t,n){return Object.keys(t.components).reduce(function(r,o){return t.components[o]?r.push(e(t.components[o],t.instances[o],t,o,n)):delete t.components[o],r},[])}))}function w(t){return Promise.all(_(t,function(){var t=Object(c.a)(regeneratorRuntime.mark(function t(e,n,r,o){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e||e.options){t.next=4;break}return t.next=3,e();case 3:e=t.sent;case 4:return r.components[o]=m(e),t.abrupt("return",r.components[o]);case 6:case"end":return t.stop()}},t)}));return function(e,n,r,o){return t.apply(this,arguments)}}()))}function C(t){return k.apply(this,arguments)}function k(){return(k=Object(c.a)(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,w(e);case 4:return t.abrupt("return",Object(l.a)({},e,{meta:x(e).map(function(t,n){return Object(l.a)({},t.options.meta,(e.matched[n]||{}).meta)})}));case 5:case"end":return t.stop()}},t)}))).apply(this,arguments)}function O(t,e){return j.apply(this,arguments)}function j(){return(j=Object(c.a)(regeneratorRuntime.mark(function t(e,n){var c,l,h,f;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.context||(e.context={isStatic:!0,isDev:!1,isHMR:!1,app:e,payload:n.payload,error:n.error,base:"/2021/",env:{PUBLIC_PATH:"/2021",publicPath:"/2021",PUBLIC_TIMETABLE_URL:"/2021/data/timetable.json",TIMETABLE_URL:"https://data.hkoscon.org/api/v1/days/HKOSCon%202021",PUBLIC_EVENT_INFO_URL:"/2021/data/event_info.json",EVENT_INFO_URL:"https://events.cota.hk/api/v1/info/HKOSCon%202021",NUXT_MODE:"generate"}},n.req&&(e.context.req=n.req),n.res&&(e.context.res=n.res),n.ssrContext&&(e.context.ssrContext=n.ssrContext),e.context.redirect=function(t,path,n){if(t){e.context._redirected=!0;var r=Object(o.a)(path);if("number"==typeof t||"undefined"!==r&&"object"!==r||(n=path||{},path=t,r=Object(o.a)(path),t=302),"object"===r&&(path=e.router.resolve(path).route.fullPath),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path))throw path=K(path,n),window.location.replace(path),new Error("ERR_REDIRECT");e.context.next({path:path,query:n,status:t})}},e.context.nuxtState=window.__NUXT__),t.next=3,Promise.all([C(n.route),C(n.from)]);case 3:c=t.sent,l=Object(r.a)(c,2),h=l[0],f=l[1],n.route&&(e.context.route=h),n.from&&(e.context.from=f),e.context.next=n.next,e.context._redirected=!1,e.context._errored=!1,e.context.isHMR=!!n.isHMR,e.context.params=e.context.route.params||{},e.context.query=e.context.route.query||{};case 15:case"end":return t.stop()}},t)}))).apply(this,arguments)}function $(t,e){return!t.length||e._redirected||e._errored?Promise.resolve():E(t[0],e).then(function(){return $(t.slice(1),e)})}function E(t,e){var n;return(n=2===t.length?new Promise(function(n){t(e,function(t,data){t&&e.error(t),n(data=data||{})})}):t(e))&&(n instanceof Promise||"function"==typeof n.then)||(n=Promise.resolve(n)),n}function S(base,t){var path=decodeURI(window.location.pathname);return"hash"===t?window.location.hash.replace(/^#\//,""):(base&&0===path.indexOf(base)&&(path=path.slice(base.length)),(path||"/")+window.location.search+window.location.hash)}function R(t,e){return function(t){for(var e=new Array(t.length),i=0;i<t.length;i++)"object"===Object(o.a)(t[i])&&(e[i]=new RegExp("^(?:"+t[i].pattern+")$"));return function(n,r){for(var path="",data=n||{},o=r||{},c=o.pretty?L:encodeURIComponent,l=0;l<t.length;l++){var h=t[l];if("string"!=typeof h){var f=data[h.name||"pathMatch"],d=void 0;if(null==f){if(h.optional){h.partial&&(path+=h.prefix);continue}throw new TypeError('Expected "'+h.name+'" to be defined')}if(Array.isArray(f)){if(!h.repeat)throw new TypeError('Expected "'+h.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(h.optional)continue;throw new TypeError('Expected "'+h.name+'" to not be empty')}for(var v=0;v<f.length;v++){if(d=c(f[v]),!e[l].test(d))throw new TypeError('Expected all "'+h.name+'" to match "'+h.pattern+'", but received `'+JSON.stringify(d)+"`");path+=(0===v?h.prefix:h.delimiter)+d}}else{if(d=h.asterisk?encodeURI(f).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):c(f),!e[l].test(d))throw new TypeError('Expected "'+h.name+'" to match "'+h.pattern+'", but received "'+d+'"');path+=h.prefix+d}}else path+=h}return path}}(function(t,e){var n,r=[],o=0,c=0,path="",l=e&&e.delimiter||"/";for(;null!=(n=N.exec(t));){var h=n[0],f=n[1],d=n.index;if(path+=t.slice(c,d),c=d+h.length,f)path+=f[1];else{var v=t[c],m=n[2],x=n[3],y=n[4],_=n[5],w=n[6],C=n[7];path&&(r.push(path),path="");var k=null!=m&&null!=v&&v!==m,O="+"===w||"*"===w,j="?"===w||"*"===w,$=n[2]||l,pattern=y||_;r.push({name:x||o++,prefix:m||"",delimiter:$,optional:j,repeat:O,partial:k,asterisk:!!C,pattern:pattern?H(pattern):C?".*":"[^"+P($)+"]+?"})}}c<t.length&&(path+=t.substr(c));path&&r.push(path);return r}(t,e))}function T(t,e){var n={},r=Object(l.a)({},t,e);for(var o in r)String(t[o])!==String(e[o])&&(n[o]=!0);return n}function A(t){var e;if(t.message||"string"==typeof t)e=t.message||t;else try{e=JSON.stringify(t,null,2)}catch(n){e="[".concat(t.constructor.name,"]")}return Object(l.a)({},t,{message:e,statusCode:t.statusCode||t.status||t.response&&t.response.status||500})}window.onNuxtReadyCbs=[],window.onNuxtReady=function(t){window.onNuxtReadyCbs.push(t)};var N=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function L(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function P(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function H(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function K(t,e){var n,r=t.indexOf("://");-1!==r?(n=t.substring(0,r),t=t.substring(r+3)):t.startsWith("//")&&(t=t.substring(2));var o,c=t.split("/"),l=(n?n+"://":"//")+c.shift(),path=c.filter(Boolean).join("/");return 2===(c=path.split("#")).length&&(path=c[0],o=c[1]),l+=path?"/"+path:"",e&&"{}"!==JSON.stringify(e)&&(l+=(2===t.split("?").length?"&":"?")+function(t){return Object.keys(t).sort().map(function(e){var n=t[e];return null==n?"":Array.isArray(n)?n.slice().map(function(t){return[e,"=",t].join("")}).join("&"):e+"="+n}).filter(Boolean).join("&")}(e)),l+=o?"#"+o:""}},104:function(t,e,n){t.exports=n(105)},105:function(t,e,n){"use strict";n.r(e),function(t){n(61),n(72),n(75);var e=n(23),r=(n(53),n(113),n(5)),o=(n(77),n(78),n(45),n(24),n(82),n(46),n(81),n(116),n(121),n(123),n(1)),c=n(86),l=n(58),h=n(0),f=n(16),d=n(44);o.a.component(d.a.name,d.a),o.a.component("NLink",d.a),t.fetch||(t.fetch=c.a);var v,m,x=[],y=window.__NUXT__||{};Object.assign(o.a.config,{silent:!0,performance:!1});var _=o.a.config.errorHandler||console.error;function w(t,e,n){var r=function(component){var t=function(component,t){if(!component||!component.options||!component.options[t])return{};var option=component.options[t];if("function"==typeof option){for(var e=arguments.length,n=new Array(e>2?e-2:0),r=2;r<e;r++)n[r-2]=arguments[r];return option.apply(void 0,n)}return option}(component,"transition",e,n)||{};return"string"==typeof t?{name:t}:t};return t.map(function(t){var e=Object.assign({},r(t));if(n&&n.matched.length&&n.matched[0].components.default){var o=r(n.matched[0].components.default);Object.keys(o).filter(function(t){return o[t]&&t.toLowerCase().includes("leave")}).forEach(function(t){e[t]=o[t]})}return e})}function C(t,e,n){return k.apply(this,arguments)}function k(){return(k=Object(r.a)(regeneratorRuntime.mark(function t(e,n,r){var o,c,l,f,d=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this._pathChanged=!!v.nuxt.err||n.path!==e.path,this._queryChanged=JSON.stringify(e.query)!==JSON.stringify(n.query),this._diffQuery=this._queryChanged?Object(h.g)(e.query,n.query):[],this._pathChanged&&this.$loading.start&&!this.$loading.manual&&this.$loading.start(),t.prev=4,t.next=7,Object(h.n)(e);case 7:o=t.sent,!this._pathChanged&&this._queryChanged&&o.some(function(t){var e=t.options.watchQuery;return!0===e||!!Array.isArray(e)&&e.some(function(t){return d._diffQuery[t]})})&&this.$loading.start&&!this.$loading.manual&&this.$loading.start(),r(),t.next=23;break;case 12:if(t.prev=12,t.t0=t.catch(4),c=t.t0||{},l=c.statusCode||c.status||c.response&&c.response.status||500,f=c.message||"",!/^Loading( CSS)? chunk (\d)+ failed\./.test(f)){t.next=20;break}return window.location.reload(!0),t.abrupt("return");case 20:this.error({statusCode:l,message:f}),this.$nuxt.$emit("routeChanged",e,n,c),r();case 23:case"end":return t.stop()}},t,this,[[4,12]])}))).apply(this,arguments)}function O(t,e){return y.serverRendered&&e&&Object(h.a)(t,e),t._Ctor=t,t}function j(t){var path=Object(h.d)(t.options.base,t.options.mode);return Object(h.c)(t.match(path),function(){var t=Object(r.a)(regeneratorRuntime.mark(function t(e,n,r,o,c){var l;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e||e.options){t.next=4;break}return t.next=3,e();case 3:e=t.sent;case 4:return l=O(Object(h.o)(e),y.data?y.data[c]:null),r.components[o]=l,t.abrupt("return",l);case 7:case"end":return t.stop()}},t)}));return function(e,n,r,o,c){return t.apply(this,arguments)}}())}function $(t,e,n){var r=this,o=[],c=!1;if(void 0!==n&&(o=[],(n=Object(h.o)(n)).options.middleware&&(o=o.concat(n.options.middleware)),t.forEach(function(t){t.options.middleware&&(o=o.concat(t.options.middleware))})),o=o.map(function(t){return"function"==typeof t?t:("function"!=typeof l.a[t]&&(c=!0,r.error({statusCode:500,message:"Unknown middleware "+t})),l.a[t])}),!c)return Object(h.k)(o,e)}function E(t,e,n){return S.apply(this,arguments)}function S(){return(S=Object(r.a)(regeneratorRuntime.mark(function t(e,n,r){var o,c,l,d,m,y,_,C,k,O,j,E,S,R,T,A,N=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==this._pathChanged||!1!==this._queryChanged){t.next=2;break}return t.abrupt("return",r());case 2:return e===n?x=[]:(o=[],x=Object(h.e)(n,o).map(function(t,i){return Object(h.b)(n.matched[o[i]].path)(n.params)})),c=!1,l=function(path){n.path===path.path&&N.$loading.finish&&N.$loading.finish(),n.path!==path.path&&N.$loading.pause&&N.$loading.pause(),c||(c=!0,r(path))},t.next=7,Object(h.p)(v,{route:e,from:n,next:l.bind(this)});case 7:if(this._dateLastError=v.nuxt.dateErr,this._hadError=!!v.nuxt.err,d=[],(m=Object(h.e)(e,d)).length){t.next=25;break}return t.next=14,$.call(this,m,v.context);case 14:if(!c){t.next=16;break}return t.abrupt("return");case 16:return t.next=18,this.loadLayout("function"==typeof f.a.layout?f.a.layout(v.context):f.a.layout);case 18:return y=t.sent,t.next=21,$.call(this,m,v.context,y);case 21:if(!c){t.next=23;break}return t.abrupt("return");case 23:return v.context.error({statusCode:404,message:"This page could not be found"}),t.abrupt("return",r());case 25:return m.forEach(function(t){t._Ctor&&t._Ctor.options&&(t.options.asyncData=t._Ctor.options.asyncData,t.options.fetch=t._Ctor.options.fetch)}),this.setTransitions(w(m,e,n)),t.prev=27,t.next=30,$.call(this,m,v.context);case 30:if(!c){t.next=32;break}return t.abrupt("return");case 32:if(!v.context._errored){t.next=34;break}return t.abrupt("return",r());case 34:return"function"==typeof(_=m[0].options.layout)&&(_=_(v.context)),t.next=38,this.loadLayout(_);case 38:return _=t.sent,t.next=41,$.call(this,m,v.context,_);case 41:if(!c){t.next=43;break}return t.abrupt("return");case 43:if(!v.context._errored){t.next=45;break}return t.abrupt("return",r());case 45:C=!0,t.prev=46,k=!0,O=!1,j=void 0,t.prev=50,E=m[Symbol.iterator]();case 52:if(k=(S=E.next()).done){t.next=64;break}if("function"==typeof(R=S.value).options.validate){t.next=56;break}return t.abrupt("continue",61);case 56:return t.next=58,R.options.validate(v.context);case 58:if(C=t.sent){t.next=61;break}return t.abrupt("break",64);case 61:k=!0,t.next=52;break;case 64:t.next=70;break;case 66:t.prev=66,t.t0=t.catch(50),O=!0,j=t.t0;case 70:t.prev=70,t.prev=71,k||null==E.return||E.return();case 73:if(t.prev=73,!O){t.next=76;break}throw j;case 76:return t.finish(73);case 77:return t.finish(70);case 78:t.next=84;break;case 80:return t.prev=80,t.t1=t.catch(46),this.error({statusCode:t.t1.statusCode||"500",message:t.t1.message}),t.abrupt("return",r());case 84:if(C){t.next=87;break}return this.error({statusCode:404,message:"This page could not be found"}),t.abrupt("return",r());case 87:return t.next=89,Promise.all(m.map(function(t,i){if(t._path=Object(h.b)(e.matched[d[i]].path)(e.params),t._dataRefresh=!1,N._pathChanged&&N._queryChanged||t._path!==x[i])t._dataRefresh=!0;else if(!N._pathChanged&&N._queryChanged){var n=t.options.watchQuery;!0===n?t._dataRefresh=!0:Array.isArray(n)&&(t._dataRefresh=n.some(function(t){return N._diffQuery[t]}))}if(!N._hadError&&N._isMounted&&!t._dataRefresh)return Promise.resolve();var r=[],o=t.options.asyncData&&"function"==typeof t.options.asyncData,c=!!t.options.fetch,l=o&&c?30:45;if(o){var f=Object(h.m)(t.options.asyncData,v.context).then(function(e){Object(h.a)(t,e),N.$loading.increase&&N.$loading.increase(l)});r.push(f)}if(N.$loading.manual=!1===t.options.loading,c){var p=t.options.fetch(v.context);p&&(p instanceof Promise||"function"==typeof p.then)||(p=Promise.resolve(p)),p.then(function(t){N.$loading.increase&&N.$loading.increase(l)}),r.push(p)}return Promise.all(r)}));case 89:c||(this.$loading.finish&&!this.$loading.manual&&this.$loading.finish(),r()),t.next=106;break;case 92:if(t.prev=92,t.t2=t.catch(27),"ERR_REDIRECT"!==(T=t.t2||{}).message){t.next=97;break}return t.abrupt("return",this.$nuxt.$emit("routeChanged",e,n,T));case 97:return x=[],Object(h.i)(T),"function"==typeof(A=f.a.layout)&&(A=A(v.context)),t.next=103,this.loadLayout(A);case 103:this.error(T),this.$nuxt.$emit("routeChanged",e,n,T),r();case 106:case"end":return t.stop()}},t,this,[[27,92],[46,80],[50,66,70,78],[71,,73,77]])}))).apply(this,arguments)}function R(t,n){Object(h.c)(t,function(t,n,r,c){return"object"!==Object(e.a)(t)||t.options||((t=o.a.extend(t))._Ctor=t,r.components[c]=t),t})}function T(t){this._hadError&&this._dateLastError===this.$options.nuxt.dateErr&&this.error();var e=this.$options.nuxt.err?f.a.layout:t.matched[0].components.default.options.layout;"function"==typeof e&&(e=e(v.context)),this.setLayout(e)}function A(t,e){var n=this;!1===this._pathChanged&&!1===this._queryChanged||o.a.nextTick(function(){var e=[],r=Object(h.f)(t,e),c=Object(h.e)(t,e);r.forEach(function(t,i){if(t&&t.constructor._dataRefresh&&c[i]===t.constructor&&!0!==t.$vnode.data.keepAlive&&"function"==typeof t.constructor.options.data){var e=t.constructor.options.data.call(t);for(var n in e)o.a.set(t.$data,n,e[n])}}),T.call(n,t)})}function N(t){window.onNuxtReadyCbs.forEach(function(e){"function"==typeof e&&e(t)}),"function"==typeof window._onNuxtLoaded&&window._onNuxtLoaded(t),m.afterEach(function(e,n){o.a.nextTick(function(){return t.$nuxt.$emit("routeChanged",e,n)})})}function L(){return(L=Object(r.a)(regeneratorRuntime.mark(function t(e){var n,r,c,l,f;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return v=e.app,m=e.router,t.next=4,Promise.all(j(m));case 4:return n=t.sent,r=new o.a(v),c=y.layout||"default",t.next=9,r.loadLayout(c);case 9:if(r.setLayout(c),l=function(){r.$mount("#__nuxt"),m.afterEach(R),m.afterEach(A.bind(r)),o.a.nextTick(function(){N(r)})},r.setTransitions=r.$options.nuxt.setTransitions.bind(r),n.length&&(r.setTransitions(w(n,m.currentRoute)),x=m.currentRoute.matched.map(function(t){return Object(h.b)(t.path)(m.currentRoute.params)})),r.$loading={},y.error&&r.error(y.error),m.beforeEach(C.bind(r)),m.beforeEach(E.bind(r)),!y.serverRendered){t.next=20;break}return l(),t.abrupt("return");case 20:f=function(){R(m.currentRoute,m.currentRoute),T.call(r,m.currentRoute),l()},E.call(r,m.currentRoute,m.currentRoute,function(path){if(path){var t=m.afterEach(function(e,n){t(),f()});m.push(path,void 0,function(t){t&&_(t)})}else f()});case 22:case"end":return t.stop()}},t)}))).apply(this,arguments)}Object(f.b)().then(function(t){return L.apply(this,arguments)}).catch(function(t){var e=new Error(t);e.message="[nuxt] Error while mounting app: "+e.message,_(e)})}.call(this,n(26))},136:function(t,e,n){"use strict";var r=n(41);n.n(r).a},137:function(t,e,n){"use strict";var r=n(42);n.n(r).a},138:function(t,e,n){},139:function(t,e,n){t.exports=n.p+"img/eb90f7f.png"},140:function(t,e,n){"use strict";var r=n(43);n.n(r).a},16:function(t,e,n){"use strict";n.d(e,"b",function(){return F}),n.d(e,"a",function(){return P});n(24);var r=n(12),o=(n(53),n(5)),c=(n(46),n(1)),l=n(87),h=n.n(l),f=n(59),d=n(0),v=function(){return Object(d.j)(n.e(8).then(n.bind(null,227)))},m=function(){return Object(d.j)(n.e(9).then(n.bind(null,222)))},x=function(){return Object(d.j)(Promise.all([n.e(0),n.e(1),n.e(11)]).then(n.bind(null,230)))},y=function(){return Object(d.j)(Promise.all([n.e(0),n.e(1),n.e(12)]).then(n.bind(null,237)))},_=function(){return Object(d.j)(Promise.all([n.e(0),n.e(1),n.e(14)]).then(n.bind(null,228)))},w=function(){return Object(d.j)(n.e(6).then(n.bind(null,226)))},C=function(){return Object(d.j)(n.e(7).then(n.bind(null,220)))},k=function(){return Object(d.j)(Promise.all([n.e(0),n.e(1),n.e(13)]).then(n.bind(null,224)))},O=function(){return Object(d.j)(n.e(10).then(n.bind(null,223)))};c.a.use(f.a),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual",window.addEventListener("beforeunload",function(){window.history.scrollRestoration="auto"}),window.addEventListener("load",function(){window.history.scrollRestoration="manual"}));var j=function(t,e,n){var r=!1;return t.matched.length<2&&t.matched.every(function(t){return!1!==t.components.default.options.scrollToTop})?r={x:0,y:0}:t.matched.some(function(t){return t.components.default.options.scrollToTop})&&(r={x:0,y:0}),n&&(r=n),new Promise(function(e){window.$nuxt.$once("triggerScroll",function(){if(t.hash){var n=t.hash;void 0!==window.CSS&&void 0!==window.CSS.escape&&(n="#"+window.CSS.escape(n.substr(1)));try{document.querySelector(n)&&(r={selector:n})}catch(t){console.warn("Failed to save scroll position. Please add CSS.escape() polyfill (https://github.com/mathiasbynens/CSS.escape).")}}e(r)})})};var $=n(88),E=n.n($),S=Object(r.a)({},E.a,{name:"NoSsr"}),R={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(t,e){var n=e.parent,data=e.data,r=e.props;data.nuxtChild=!0;for(var o=n,c=n.$nuxt.nuxt.transitions,l=n.$nuxt.nuxt.defaultTransition,h=0;n;)n.$vnode&&n.$vnode.data.nuxtChild&&h++,n=n.$parent;data.nuxtChildDepth=h;var f=c[h]||l,d={};T.forEach(function(t){void 0!==f[t]&&(d[t]=f[t])});var v={};A.forEach(function(t){"function"==typeof f[t]&&(v[t]=f[t].bind(o))});var m=v.beforeEnter;v.beforeEnter=function(t){if(window.$nuxt.$nextTick(function(){window.$nuxt.$emit("triggerScroll")}),m)return m.call(o,t)};var x=[t("router-view",data)];return r.keepAlive&&(x=[t("keep-alive",{props:r.keepAliveProps},x)]),t("transition",{props:d,on:v},x)}},T=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],A=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],N={name:"NuxtError",props:{error:{type:Object,default:null}},head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"}]}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}}},L=(n(136),n(17)),P=Object(L.a)(N,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"__nuxt-error-page"},[n("div",{staticClass:"error"},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[n("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t._v(" "),n("div",{staticClass:"title"},[t._v(t._s(t.message))]),t._v(" "),404===t.statusCode?n("p",{staticClass:"description"},[n("NuxtLink",{staticClass:"error-link",attrs:{to:"/"}},[t._v("Back to the home page")])],1):t._e(),t._v(" "),t._m(0)])])},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logo"},[e("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt.js")])])}],!1,null,null,null).exports,H={name:"Nuxt",components:{NuxtChild:R,NuxtError:P},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(d.b)(this.$route.matched[0].path)(this.$route.params);var t=this.$route.matched[0]&&this.$route.matched[0].components.default;return t&&t.options&&t.options.key?"function"==typeof t.options.key?t.options.key(this.$route):t.options.key:this.$route.path}},beforeCreate:function(){c.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(t){return this.nuxt.err?t("NuxtError",{props:{error:this.nuxt.err}}):t("NuxtChild",{key:this.routerViewKey,props:this.$props})}},K={name:"NuxtLoading",data:function(){return{percent:0,show:!1,canSucceed:!0,reversed:!1,skipTimerCount:0,rtl:!1,throttle:200,duration:5e3,continuous:!1}},computed:{left:function(){return!(!this.continuous&&!this.rtl)&&(this.rtl?this.reversed?"0px":"auto":this.reversed?"auto":"0px")}},beforeDestroy:function(){this.clear()},methods:{clear:function(){clearInterval(this._timer),clearTimeout(this._throttle),this._timer=null},start:function(){var t=this;return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout(function(){return t.startTimer()},this.throttle):this.startTimer(),this},set:function(t){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(t))),this},get:function(){return this.percent},increase:function(t){return this.percent=Math.min(100,Math.floor(this.percent+t)),this},decrease:function(t){return this.percent=Math.max(0,Math.floor(this.percent-t)),this},pause:function(){return clearInterval(this._timer),this},resume:function(){return this.startTimer(),this},finish:function(){return this.percent=this.reversed?0:100,this.hide(),this},hide:function(){var t=this;return this.clear(),setTimeout(function(){t.show=!1,t.$nextTick(function(){t.percent=0,t.reversed=!1})},500),this},fail:function(){return this.canSucceed=!1,this},startTimer:function(){var t=this;this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval(function(){t.skipTimerCount>0?t.skipTimerCount--:(t.reversed?t.decrease(t._cut):t.increase(t._cut),t.continuous&&(t.percent>=100?(t.skipTimerCount=1,t.reversed=!t.reversed):t.percent<=0&&(t.skipTimerCount=1,t.reversed=!t.reversed)))},100)}},render:function(t){var e=t(!1);return this.show&&(e=t("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),e}},D=(n(137),Object(L.a)(K,void 0,void 0,!1,null,null,null).exports),I=(n(138),{name:"DefaultLayout",components:{PageFooter:function(){return n.e(16).then(n.bind(null,231))}},data:function(){return{showNavbar:!1,showArchive:!1,showAbout:!1}},methods:{toggleNavbar:function(){this.showNavbar=!this.showNavbar},handleClick:function(){this.showArchive=!1,this.showArchive=!1}}}),M=(n(140),{_default:Object(L.a)(I,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"defaultLayout",on:{click:t.handleClick}},[r("nav",{staticClass:"navbar defaultLayout__navbar",attrs:{role:"navigation","aria-label":"main navigation"},on:{click:function(t){t.stopPropagation()}}},[r("div",{staticClass:"navbar-brand"},[r("nuxt-link",{staticClass:"navbar-item",attrs:{to:"/"}},[r("img",{attrs:{src:n(139)}}),t._v(" "),r("span",[t._v("HKOSCon 2021")])]),t._v(" "),r("a",{staticClass:"navbar-burger defaultLayout__burger",class:{"is-active":t.showNavbar},attrs:{role:"button","aria-label":"menu","aria-expanded":"false"},on:{click:t.toggleNavbar}},[r("span",{attrs:{"aria-hidden":"true"}}),t._v(" "),r("span",{attrs:{"aria-hidden":"true"}}),t._v(" "),r("span",{attrs:{"aria-hidden":"true"}})])],1),t._v(" "),r("div",{staticClass:"navbar-menu",class:{"is-active":t.showNavbar}},[r("div",{staticClass:"navbar-start"},[r("div",{staticClass:"navbar-item has-dropdown",class:{"is-active":t.showAbout}},[r("span",{staticClass:"navbar-link",on:{click:function(e){t.showAbout=!t.showAbout}}},[t._v("\n About\n ")]),t._v(" "),r("div",{staticClass:"navbar-dropdown"},[r("a",{staticClass:"navbar-item",attrs:{href:"https://info.hkoscon.org/introduction/",target:"_blank"}},[t._v("\n About Conference\n ")]),t._v(" "),r("a",{staticClass:"navbar-item",attrs:{href:"https://info.hkoscon.org/code-of-conduct/",target:"_blank"}},[t._v("\n Code of Conduct\n ")]),t._v(" "),r("a",{staticClass:"navbar-item",attrs:{href:"https://info.hkoscon.org/organizers/",target:"_blank"}},[t._v("\n Organizers\n ")]),t._v(" "),r("nuxt-link",{staticClass:"navbar-item",attrs:{to:"/about/volunteers"}},[t._v("\n Volunteers\n ")])],1)]),t._v(" "),r("nuxt-link",{staticClass:"navbar-item",attrs:{to:"/sponsors"}},[t._v("\n Sponsors\n ")]),t._v(" "),r("nuxt-link",{staticClass:"navbar-item",attrs:{to:"/timetable"}},[t._v("\n Timetable\n ")]),t._v(" "),r("div",{staticClass:"navbar-item has-dropdown",class:{"is-active":t.showArchive}},[r("span",{staticClass:"navbar-link",on:{click:function(e){t.showArchive=!t.showArchive}}},[t._v("\n Archive\n ")]),t._v(" "),t._m(0)])],1),t._v(" "),t._m(1)])]),t._v(" "),r("div",{staticClass:"defaultLayout__content"},[r("nuxt")],1),t._v(" "),r("page-footer")],1)},[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"navbar-dropdown"},[n("a",{staticClass:"navbar-item",attrs:{href:"https://hkoscon.org/2020/"}},[t._v("\n HKOSCon 2020\n ")]),t._v(" "),n("a",{staticClass:"navbar-item",attrs:{href:"https://hkoscon.org/2019/"}},[t._v("\n HKOSCon 2019\n ")]),t._v(" "),n("a",{staticClass:"navbar-item",attrs:{href:"https://hkoscon.org/2018/"}},[t._v("\n HKOSCon 2018\n ")]),t._v(" "),n("a",{staticClass:"navbar-item",attrs:{href:"https://hkoscon.org/2017/"}},[t._v("\n HKOSCon 2017\n ")]),t._v(" "),n("a",{staticClass:"navbar-item",attrs:{href:"https://2016.opensource.hk/"}},[t._v("\n HKOSCon 2016\n ")]),t._v(" "),n("a",{staticClass:"navbar-item",attrs:{href:"https://2015.opensource.hk/"}},[t._v("\n HKOSCon 2015\n ")]),t._v(" "),n("a",{staticClass:"navbar-item",attrs:{href:"/2014/"}},[t._v("\n HKOSCon 2014\n ")]),t._v(" "),n("a",{staticClass:"navbar-item",attrs:{href:"/2013/"}},[t._v("\n HKOSCon 2013\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"navbar-end"},[e("div",{staticClass:"navbar-item"},[e("p",{staticClass:"control"},[e("a",{staticClass:"button is-primary",attrs:{href:"https://bit.ly/HKOSCon2021",target:"_blank"}},[this._v("\n Get Ticket\n ")])])])])}],!1,null,null,null).exports}),U={head:{title:"HKOSCon 2021",meta:[{charset:"utf-8"},{"http-equiv":"X-UA-Compatible",content:"IE=edge"},{name:"viewport",content:"width=device-width,initial-scale=1,user-scalable=no"},{hid:"description",name:"description",content:"Hong Kong Open Source Conference is the biggest annual open source event in Hong Kong. Hong Kong Open Source Conference 2021 is going to held on 17 July, 2021 (Sat)"},{hid:"theme-color",name:"theme-color",content:"#294454"},{hid:"author",name:"author",content:"Team 404 Busters"},{hid:"og:title",property:"og:title",content:"Hong Kong Open Source Conference 2021"},{hid:"og:site_name",property:"og:site_name",content:"Hong Kong Open Source Conference 2021"},{hid:"og:type",property:"og:type",content:"website"},{hid:"og:image",property:"og:image",content:"https://hkoscon.org/logo.png"},{hid:"description",name:"description",content:"Hong Kong Open Source Conference is the biggest annual open source event in Hong Kong. Hong Kong Open Source Conference 2021 is going to held on 17 July, 2021 (Sat)."}],link:[{rel:"icon",type:"image/x-icon",href:"https://hkoscon.org/favicon.ico"},{rel:"stylesheet",type:"text/css",href:"https://fonts.googleapis.com/css?family=Lato|Noto+Sans+TC|Material+Icons"},{rel:"manifest",href:"/2021/manifest.4fc07516.json"}],style:[],script:[]},render:function(t,e){var n=t("NuxtLoading",{ref:"loading"}),r=t(this.layout||"nuxt"),o=t("div",{domProps:{id:"__layout"},key:this.layoutName},[r]),c=t("transition",{props:{name:"layout",mode:"out-in"},on:{beforeEnter:function(t){window.$nuxt.$nextTick(function(){window.$nuxt.$emit("triggerScroll")})}}},[o]);return t("div",{domProps:{id:"__nuxt"}},[n,c])},data:function(){return{isOnline:!0,layout:null,layoutName:""}},beforeCreate:function(){c.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){c.a.prototype.$nuxt=this,window.$nuxt=this,this.refreshOnlineStatus(),window.addEventListener("online",this.refreshOnlineStatus),window.addEventListener("offline",this.refreshOnlineStatus),this.error=this.nuxt.error},mounted:function(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},computed:{isOffline:function(){return!this.isOnline}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},errorChanged:function(){this.nuxt.err&&this.$loading&&(this.$loading.fail&&this.$loading.fail(),this.$loading.finish&&this.$loading.finish())},setLayout:function(t){return t&&M["_"+t]||(t="default"),this.layoutName=t,this.layout=M["_"+t],this.layout},loadLayout:function(t){return t&&M["_"+t]||(t="default"),Promise.resolve(M["_"+t])}},components:{NuxtLoading:D}},B=n(60),J=n.n(B);c.a.component(S.name,S),c.a.component(R.name,R),c.a.component("NChild",R),c.a.component(H.name,H),c.a.use(h.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var z={name:"page",mode:"out-in",appear:!1,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"};function F(t){return Q.apply(this,arguments)}function Q(){return(Q=Object(o.a)(regeneratorRuntime.mark(function t(e){var n,o,l,h,path,$;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new f.a({mode:"history",base:decodeURI("/2021/"),linkActiveClass:"nuxt-link-active",linkExactActiveClass:"nuxt-link-exact-active",scrollBehavior:j,routes:[{path:"/cfc",component:v,name:"cfc"},{path:"/cfp",component:m,name:"cfp"},{path:"/sponsors",component:x,name:"sponsors"},{path:"/timetable",component:y,name:"timetable"},{path:"/topics",component:_,name:"topics"},{path:"/about/organizers",component:w,name:"about-organizers"},{path:"/about/volunteers",component:C,name:"about-volunteers"},{path:"/topics/:id",component:k,name:"topics-id"},{path:"/",component:O,name:"index"}],fallback:!1});case 2:return n=t.sent,o=Object(r.a)({router:n,nuxt:{defaultTransition:z,transitions:[z],setTransitions:function(t){return Array.isArray(t)||(t=[t]),t=t.map(function(t){return t=t?"string"==typeof t?Object.assign({},z,{name:t}):Object.assign({},z,t):z}),this.$options.nuxt.transitions=t,t},err:null,dateErr:null,error:function(t){t=t||null,o.context._errored=!!t,t=t?Object(d.l)(t):null;var n=this.nuxt||this.$options.nuxt;return n.dateErr=Date.now(),n.err=t,e&&(e.nuxt.error=t),t}}},U),l=e?e.next:function(t){return o.router.push(t)},e?h=n.resolve(e.url).route:(path=Object(d.d)(n.options.base),h=n.resolve(path).route),t.next=8,Object(d.p)(o,{route:h,next:l,error:o.nuxt.error.bind(o),payload:e?e.payload:void 0,req:e?e.req:void 0,res:e?e.res:void 0,beforeRenderFns:e?e.beforeRenderFns:void 0,ssrContext:e});case 8:if($=function(t,e){if(!t)throw new Error("inject(key, value) has no key provided");if(void 0===e)throw new Error("inject(key, value) has no value provided");o[t="$"+t]=e;var n="__nuxt_"+t+"_installed__";c.a[n]||(c.a[n]=!0,c.a.use(function(){c.a.prototype.hasOwnProperty(t)||Object.defineProperty(c.a.prototype,t,{get:function(){return this.$root.$options[t]}})}))},"function"!=typeof J.a){t.next=12;break}return t.next=12,J()(o.context,$);case 12:t.next=15;break;case 15:return t.abrupt("return",{app:o,router:n});case 16:case"end":return t.stop()}},t)}))).apply(this,arguments)}},41:function(t,e,n){},42:function(t,e,n){},43:function(t,e,n){},44:function(t,e,n){"use strict";n(72),n(75),n(45),n(77),n(78);var r=n(1),o=window.requestIdleCallback||function(t){var e=Date.now();return setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},c=window.IntersectionObserver&&new window.IntersectionObserver(function(t){t.forEach(function(t){var e=t.intersectionRatio,link=t.target;e<=0||link.__prefetch()})});e.a={name:"NuxtLink",extends:r.a.component("RouterLink"),props:{noPrefetch:{type:Boolean,default:!1}},mounted:function(){this.noPrefetch||o(this.observe,{timeout:2e3})},beforeDestroy:function(){this.__observed&&(c.unobserve(this.$el),delete this.$el.__prefetch)},methods:{observe:function(){c&&this.shouldPrefetch()&&(this.$el.__prefetch=this.prefetch.bind(this),c.observe(this.$el),this.__observed=!0)},shouldPrefetch:function(){return this.getPrefetchComponents().length>0},canPrefetch:function(){var t=navigator.connection;return!(this.$nuxt.isOffline||t&&((t.effectiveType||"").includes("2g")||t.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map(function(t){return t.components.default}).filter(function(t){return"function"==typeof t&&!t.options&&!t.__prefetched})},prefetch:function(){if(this.canPrefetch()){c.unobserve(this.$el);var t=this.getPrefetchComponents(),e=!0,n=!1,r=void 0;try{for(var o,l=t[Symbol.iterator]();!(e=(o=l.next()).done);e=!0){var h=o.value;try{h(),h.__prefetched=!0}catch(t){}}}catch(t){n=!0,r=t}finally{try{e||null==l.return||l.return()}finally{if(n)throw r}}}}}}},58:function(t,e,n){"use strict";e.a={}},60:function(t,e){"serviceWorker"in navigator?navigator.serviceWorker.register("/2021//sw.js",{scope:"/2021//"}).then(function(t){window.$sw=t}).catch(function(t){console.error("Service worker registration failed:",t)}):console.warn("Service workers are not supported.")},86:function(t,e,n){"use strict";e.a=function(t,e){return e=e||{},new Promise(function(n,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(JSON.parse(s.responseText))},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(t){return i[t.toLowerCase()]},has:function(t){return t.toLowerCase()in i}}}};for(var c in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(t,e,n){o.push(e=e.toLowerCase()),u.push([e,n]),i[e]=i[e]?i[e]+","+n:n}),n(a())},s.onerror=r,s.withCredentials="include"==e.credentials,e.headers)s.setRequestHeader(c,e.headers[c]);s.send(e.body||null)})}},88:function(t,e,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,c=r(),l=c.default;void 0===l&&(l=[]);var h=c.placeholder;return n._isMounted?l:(n.$once("hook:mounted",function(){n.$forceUpdate()}),o.placeholderTag&&(o.placeholder||h)?t(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||h):l.length>0?l.map(function(){return t(!1)}):t(!1))}};t.exports=r}},[[104,15,5]]]);
//# sourceMappingURL=eca3354022873ccf3829.js.map