text: var app=function(t){"use strict";function e(){}function n(t){return t()}function r(){return Object.create(null)}function o(t){t.forEach(n)}function i(t){return"function"==typeof t}function s(t,e){return t!=t?e==e:t!==e}function u(t,e){t.appendChild(e)}function a(t,e,n){t.insertBefore(e,n||null)}function h(t){t.parentNode.removeChild(t)}function l(t){return document.createElement(t)}function c(t){return document.createTextNode(t)}function f(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function g(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function d(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function m(t){const e={};for(const n of t)e[n.name]=n.value;return e}let p;function v(t){p=t}const w=[],C=[],L=[],b=[],$=Promise.resolve();let y=!1;function E(t){L.push(t)}let B=!1;const k=new Set;function _(){if(!B){B=!0;do{for(let t=0;t<w.length;t+=1){const e=w[t];v(e),A(e.$$)}for(v(null),w.length=0;C.length;)C.pop()();for(let t=0;t<L.length;t+=1){const e=L[t];k.has(e)||(k.add(e),e())}L.length=0}while(w.length);for(;b.length;)b.pop()();y=!1,B=!1,k.clear()}}function A(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(E)}}const P=new Set;function x(t,e){-1===t.$$.dirty[0]&&(w.push(t),y||(y=!0,$.then(_)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function T(t,s,u,a,l,c,f=[-1]){const g=p;v(t);const d=t.$$={fragment:null,ctx:null,props:c,update:e,not_equal:l,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(g?g.$$.context:s.context||[]),callbacks:r(),dirty:f,skip_bound:!1};let m=!1;if(d.ctx=u?u(t,s.props||{},((e,n,...r)=>{const o=r.length?r[0]:n;return d.ctx&&l(d.ctx[e],d.ctx[e]=o)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](o),m&&x(t,e)),n})):[],d.update(),m=!0,o(d.before_update),d.fragment=!!a&&a(d.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);d.fragment&&d.fragment.l(t),t.forEach(h)}else d.fragment&&d.fragment.c();s.intro&&(w=t.$$.fragment)&&w.i&&(P.delete(w),w.i(undefined)),function(t,e,r,s){const{fragment:u,on_mount:a,on_destroy:h,after_update:l}=t.$$;u&&u.m(e,r),s||E((()=>{const e=a.map(n).filter(i);h?h.push(...e):o(e),t.$$.on_mount=[]})),l.forEach(E)}(t,s.target,s.anchor,s.customElement),_()}var w;v(g)}let D;function M(t){let n,r,o,i,s,f;return{c(){n=l("main"),r=l("h1"),o=c("Hello "),i=c(t[0]),s=c("!"),f=l("p"),f.innerHTML='Visit the<a href="https://svelte.dev/tutorial">Svelte tutorial</a>to learn how to build Svelte apps.',this.c=e},m(t,e){a(t,n,e),u(n,r),u(r,o),u(r,i),u(r,s),u(n,f)},p(t,[e]){1&e&&d(i,t[0])},i:e,o:e,d(t){t&&h(n)}}}function H(t,e,n){let{name:r}=e;return t.$$set=t=>{"name"in t&&n(0,r=t.name)},[r]}"function"==typeof HTMLElement&&(D=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(n).filter(i);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(1),n.on_destroy=n.fragment=null,n.ctx=[])}(this),this.$destroy=e}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class I extends D{constructor(t){super(),this.shadowRoot.innerHTML="<style>main{text-align:center;padding:1em;max-width:240px;margin:0 auto}h1{color:#ff3e00;text-transform:uppercase;font-size:4em;font-weight:100}@media(min-width: 640px){main{max-width:none}}</style>",T(this,{target:this.shadowRoot,props:m(this.attributes),customElement:!0},H,M,s,{name:0}),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),_()))}static get observedAttributes(){return["name"]}get name(){return this.$$.ctx[0]}set name(t){this.$set({name:t}),_()}}customElements.define("my-hello",I);function N(t){this.mode=4,this.data=t}N.prototype={getLength:function(t){return this.data.length},write:function(t){for(var e=0;e<this.data.length;e++)t.put(this.data.charCodeAt(e),8)}};var R=N,S={L:1,M:0,Q:3,H:2};function O(t,e){this.totalCount=t,this.dataCount=e}O.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],O.getRSBlocks=function(t,e){var n=O.getRsBlockTable(t,e);if(null==n)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var r=n.length/3,o=new Array,i=0;i<r;i++)for(var s=n[3*i+0],u=n[3*i+1],a=n[3*i+2],h=0;h<s;h++)o.push(new O(u,a));return o},O.getRsBlockTable=function(t,e){switch(e){case S.L:return O.RS_BLOCK_TABLE[4*(t-1)+0];case S.M:return O.RS_BLOCK_TABLE[4*(t-1)+1];case S.Q:return O.RS_BLOCK_TABLE[4*(t-1)+2];case S.H:return O.RS_BLOCK_TABLE[4*(t-1)+3];default:return}};var G=O;function z(){this.buffer=new Array,this.length=0}z.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var n=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};for(var X=z,K={glog:function(t){if(t<1)throw new Error("glog("+t+")");return K.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return K.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},j=0;j<8;j++)K.EXP_TABLE[j]=1<<j;for(j=8;j<256;j++)K.EXP_TABLE[j]=K.EXP_TABLE[j-4]^K.EXP_TABLE[j-5]^K.EXP_TABLE[j-6]^K.EXP_TABLE[j-8];for(j=0;j<255;j++)K.LOG_TABLE[K.EXP_TABLE[j]]=j;var F=K;function Q(t,e){if(null==t.length)throw new Error(t.length+"/"+e);for(var n=0;n<t.length&&0==t[n];)n++;this.num=new Array(t.length-n+e);for(var r=0;r<t.length-n;r++)this.num[r]=t[r+n]}Q.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),n=0;n<this.getLength();n++)for(var r=0;r<t.getLength();r++)e[n+r]^=F.gexp(F.glog(this.get(n))+F.glog(t.get(r)));return new Q(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=F.glog(this.get(0))-F.glog(t.get(0)),n=new Array(this.getLength()),r=0;r<this.getLength();r++)n[r]=this.get(r);for(r=0;r<t.getLength();r++)n[r]^=F.gexp(F.glog(t.get(r))+e);return new Q(n,0).mod(t)}};var q=Q,V={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;V.getBCHDigit(e)-V.getBCHDigit(V.G15)>=0;)e^=V.G15<<V.getBCHDigit(e)-V.getBCHDigit(V.G15);return(t<<10|e)^V.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;V.getBCHDigit(e)-V.getBCHDigit(V.G18)>=0;)e^=V.G18<<V.getBCHDigit(e)-V.getBCHDigit(V.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return V.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,n){switch(t){case 0:return(e+n)%2==0;case 1:return e%2==0;case 2:return n%3==0;case 3:return(e+n)%3==0;case 4:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case 5:return e*n%2+e*n%3==0;case 6:return(e*n%2+e*n%3)%2==0;case 7:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new q([1],0),n=0;n<t;n++)e=e.multiply(new q([1,F.gexp(n)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),n=0,r=0;r<e;r++)for(var o=0;o<e;o++){for(var i=0,s=t.isDark(r,o),u=-1;u<=1;u++)if(!(r+u<0||e<=r+u))for(var a=-1;a<=1;a++)o+a<0||e<=o+a||0==u&&0==a||s==t.isDark(r+u,o+a)&&i++;i>5&&(n+=3+i-5)}for(r=0;r<e-1;r++)for(o=0;o<e-1;o++){var h=0;t.isDark(r,o)&&h++,t.isDark(r+1,o)&&h++,t.isDark(r,o+1)&&h++,t.isDark(r+1,o+1)&&h++,0!=h&&4!=h||(n+=3)}for(r=0;r<e;r++)for(o=0;o<e-6;o++)t.isDark(r,o)&&!t.isDark(r,o+1)&&t.isDark(r,o+2)&&t.isDark(r,o+3)&&t.isDark(r,o+4)&&!t.isDark(r,o+5)&&t.isDark(r,o+6)&&(n+=40);for(o=0;o<e;o++)for(r=0;r<e-6;r++)t.isDark(r,o)&&!t.isDark(r+1,o)&&t.isDark(r+2,o)&&t.isDark(r+3,o)&&t.isDark(r+4,o)&&!t.isDark(r+5,o)&&t.isDark(r+6,o)&&(n+=40);var l=0;for(o=0;o<e;o++)for(r=0;r<e;r++)t.isDark(r,o)&&l++;return n+Math.abs(100*l/e/e-50)/5*10}},J=V;function U(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var W=U.prototype;W.addData=function(t){var e=new R(t);this.dataList.push(e),this.dataCache=null},W.isDark=function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},W.getModuleCount=function(){return this.moduleCount},W.make=function(){if(this.typeNumber<1){var t=1;for(t=1;t<40;t++){for(var e=G.getRSBlocks(t,this.errorCorrectLevel),n=new X,r=0,o=0;o<e.length;o++)r+=e[o].dataCount;for(o=0;o<this.dataList.length;o++){var i=this.dataList[o];n.put(i.mode,4),n.put(i.getLength(),J.getLengthInBits(i.mode,t)),i.write(n)}if(n.getLengthInBits()<=8*r)break}this.typeNumber=t}this.makeImpl(!1,this.getBestMaskPattern())},W.makeImpl=function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[n][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=U.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},W.setupPositionProbePattern=function(t,e){for(var n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var r=-1;r<=7;r++)e+r<=-1||this.moduleCount<=e+r||(this.modules[t+n][e+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},W.getBestMaskPattern=function(){for(var t=0,e=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=J.getLostPoint(this);(0==n||t>r)&&(t=r,e=n)}return e},W.createMovieClip=function(t,e,n){var r=t.createEmptyMovieClip(e,n);this.make();for(var o=0;o<this.modules.length;o++)for(var i=1*o,s=0;s<this.modules[o].length;s++){var u=1*s;this.modules[o][s]&&(r.beginFill(0,100),r.moveTo(u,i),r.lineTo(u+1,i),r.lineTo(u+1,i+1),r.lineTo(u,i+1),r.endFill())}return r},W.setupTimingPattern=function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)},W.setupPositionAdjustPattern=function(){for(var t=J.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var n=0;n<t.length;n++){var r=t[e],o=t[n];if(null==this.modules[r][o])for(var i=-2;i<=2;i++)for(var s=-2;s<=2;s++)this.modules[r+i][o+s]=-2==i||2==i||-2==s||2==s||0==i&&0==s}},W.setupTypeNumber=function(t){for(var e=J.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!t&&1==(e>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++)r=!t&&1==(e>>n&1),this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r},W.setupTypeInfo=function(t,e){for(var n=this.errorCorrectLevel<<3|e,r=J.getBCHTypeInfo(n),o=0;o<15;o++){var i=!t&&1==(r>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++)i=!t&&1==(r>>o&1),o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i;this.modules[this.moduleCount-8][8]=!t},W.mapData=function(t,e){for(var n=-1,r=this.moduleCount-1,o=7,i=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var u=0;u<2;u++)if(null==this.modules[r][s-u]){var a=!1;i<t.length&&(a=1==(t[i]>>>o&1)),J.getMask(e,r,s-u)&&(a=!a),this.modules[r][s-u]=a,-1==--o&&(i++,o=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},U.PAD0=236,U.PAD1=17,U.createData=function(t,e,n){for(var r=G.getRSBlocks(t,e),o=new X,i=0;i<n.length;i++){var s=n[i];o.put(s.mode,4),o.put(s.getLength(),J.getLengthInBits(s.mode,t)),s.write(o)}var u=0;for(i=0;i<r.length;i++)u+=r[i].dataCount;if(o.getLengthInBits()>8*u)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+8*u+")");for(o.getLengthInBits()+4<=8*u&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*u||(o.put(U.PAD0,8),o.getLengthInBits()>=8*u));)o.put(U.PAD1,8);return U.createBytes(o,r)},U.createBytes=function(t,e){for(var n=0,r=0,o=0,i=new Array(e.length),s=new Array(e.length),u=0;u<e.length;u++){var a=e[u].dataCount,h=e[u].totalCount-a;r=Math.max(r,a),o=Math.max(o,h),i[u]=new Array(a);for(var l=0;l<i[u].length;l++)i[u][l]=255&t.buffer[l+n];n+=a;var c=J.getErrorCorrectPolynomial(h),f=new q(i[u],c.getLength()-1).mod(c);for(s[u]=new Array(c.getLength()-1),l=0;l<s[u].length;l++){var g=l+f.getLength()-s[u].length;s[u][l]=g>=0?f.get(g):0}}var d=0;for(l=0;l<e.length;l++)d+=e[l].totalCount;var m=new Array(d),p=0;for(l=0;l<r;l++)for(u=0;u<e.length;u++)l<i[u].length&&(m[p++]=i[u][l]);for(l=0;l<o;l++)for(u=0;u<e.length;u++)l<s[u].length&&(m[p++]=s[u][l]);return m};var Y=U,Z=function(t,e){var n=new Y((e=e||{}).typeNumber||-1,e.errorCorrectLevel||S.H);return n.addData(t),n.make(),n};Z.ErrorCorrectLevel=S;var tt=Z;function et(t){let n;return{c(){n=l("div"),this.c=e},m(e,r){a(e,n,r),t[3](n)},p:e,i:e,o:e,d(e){e&&h(n),t[3](null)}}}function nt(t,e,n){let r,{text:o}=e,{size:i=400}=e;return function(t){(function(){if(!p)throw new Error("Function called outside component initialization");return p})().$$.on_mount.push(t)}((()=>{const t=function(t,e=200){const n=tt(t),r=document.createElement("canvas");r.width=e,r.height=e;const o=r.getContext("2d"),i=n.modules,s=e/i.length;for(let t=0;t<i.length;t+=1){const e=i[t];for(let n=0;n<e.length;n+=1){o.fillStyle=e[n]?"#000":"#fff";const r=Math.ceil((n+1)*s)-Math.floor(n*s),i=Math.ceil((t+1)*s)-Math.floor(t*s);o.fillRect(Math.round(n*s),Math.round(t*s),r,i)}}return r}(o,i);r.appendChild(t)})),t.$$set=t=>{"text"in t&&n(1,o=t.text),"size"in t&&n(2,i=t.size)},[r,o,i,function(t){C[t?"unshift":"push"]((()=>{r=t,n(0,r)}))}]}class rt extends D{constructor(t){super(),T(this,{target:this.shadowRoot,props:m(this.attributes),customElement:!0},nt,et,s,{text:1,size:2}),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),_()))}static get observedAttributes(){return["text","size"]}get text(){return this.$$.ctx[1]}set text(t){this.$set({text:t}),_()}get size(){return this.$$.ctx[2]}set size(t){this.$set({size:t}),_()}}function ot(t){let e,n,r,o,i,s,m,p;return{c(){e=l("div"),n=l("div"),r=l("div"),o=c(t[0]),i=l("div"),s=c(t[1]),g(r,"class","title"),g(i,"class","content"),g(n,"class","dialog"),g(e,"id","popup")},m(h,l){a(h,e,l),u(e,n),u(n,r),u(r,o),u(n,i),u(i,s),m||(p=f(e,"click",t[4]),m=!0)},p(t,e){1&e&&d(o,t[0]),2&e&&d(s,t[1])},d(t){t&&h(e),m=!1,p()}}}function it(t){let n,r,o,i,s=t[2]&&ot(t);return{c(){n=l("div"),s&&s.c(),r=l("button"),r.textContent="OPEN",this.c=e},m(e,h){a(e,n,h),s&&s.m(n,null),u(n,r),o||(i=f(r,"click",t[3]),o=!0)},p(t,[e]){t[2]?s?s.p(t,e):(s=ot(t),s.c(),s.m(n,r)):s&&(s.d(1),s=null)},i:e,o:e,d(t){t&&h(n),s&&s.d(),o=!1,i()}}}function st(t,e,n){let{title:r}=e,{content:o}=e,i=!1;return t.$$set=t=>{"title"in t&&n(0,r=t.title),"content"in t&&n(1,o=t.content)},[r,o,i,function(){n(2,i=!0)},function(){n(2,i=!1)}]}customElements.define("my-qrcode",rt);class ut extends D{constructor(t){super(),this.shadowRoot.innerHTML="<style>#popup{position:fixed;background-color:rgba(0, 0, 0, 0.3);width:100vw;height:100vh;top:0;left:0}.dialog{background-color:white;width:80vw;margin:100px auto 0 auto;padding:10px;border-radius:5px}.title{font-weight:bold}</style>",T(this,{target:this.shadowRoot,props:m(this.attributes),customElement:!0},st,it,s,{title:0,content:1}),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),_()))}static get observedAttributes(){return["title","content"]}get title(){return this.$$.ctx[0]}set title(t){this.$set({title:t}),_()}get content(){return this.$$.ctx[1]}set content(t){this.$set({content:t}),_()}}return customElements.define("svelte-popup",ut),t.App=I,t.Popup=ut,t.Qrcode=rt,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
  //# sourceMappingURL=bundle.min.js.map
  