123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126 |
- (function webpackUniversalModuleDefinition(root, factory) {
- if(typeof exports === 'object' && typeof module === 'object')
- module.exports = factory(require("vue"));
- else if(typeof define === 'function' && define.amd)
- define([], factory);
- else if(typeof exports === 'object')
- exports["doesburg"] = factory(require("vue"));
- else
- root["doesburg"] = factory(root["Vue"]);
- })((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) {
- return /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = "fb15");
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ "014b":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // ECMAScript 6 symbols shim
- var global = __webpack_require__("e53d");
- var has = __webpack_require__("07e3");
- var DESCRIPTORS = __webpack_require__("8e60");
- var $export = __webpack_require__("63b6");
- var redefine = __webpack_require__("9138");
- var META = __webpack_require__("ebfd").KEY;
- var $fails = __webpack_require__("294c");
- var shared = __webpack_require__("dbdb");
- var setToStringTag = __webpack_require__("45f2");
- var uid = __webpack_require__("62a0");
- var wks = __webpack_require__("5168");
- var wksExt = __webpack_require__("ccb9");
- var wksDefine = __webpack_require__("6718");
- var enumKeys = __webpack_require__("47ee");
- var isArray = __webpack_require__("9003");
- var anObject = __webpack_require__("e4ae");
- var isObject = __webpack_require__("f772");
- var toIObject = __webpack_require__("36c3");
- var toPrimitive = __webpack_require__("1bc3");
- var createDesc = __webpack_require__("aebd");
- var _create = __webpack_require__("a159");
- var gOPNExt = __webpack_require__("0395");
- var $GOPD = __webpack_require__("bf0b");
- var $DP = __webpack_require__("d9f6");
- var $keys = __webpack_require__("c3a1");
- var gOPD = $GOPD.f;
- var dP = $DP.f;
- var gOPN = gOPNExt.f;
- var $Symbol = global.Symbol;
- var $JSON = global.JSON;
- var _stringify = $JSON && $JSON.stringify;
- var PROTOTYPE = 'prototype';
- var HIDDEN = wks('_hidden');
- var TO_PRIMITIVE = wks('toPrimitive');
- var isEnum = {}.propertyIsEnumerable;
- var SymbolRegistry = shared('symbol-registry');
- var AllSymbols = shared('symbols');
- var OPSymbols = shared('op-symbols');
- var ObjectProto = Object[PROTOTYPE];
- var USE_NATIVE = typeof $Symbol == 'function';
- var QObject = global.QObject;
- // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
- var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
- // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
- var setSymbolDesc = DESCRIPTORS && $fails(function () {
- return _create(dP({}, 'a', {
- get: function () { return dP(this, 'a', { value: 7 }).a; }
- })).a != 7;
- }) ? function (it, key, D) {
- var protoDesc = gOPD(ObjectProto, key);
- if (protoDesc) delete ObjectProto[key];
- dP(it, key, D);
- if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
- } : dP;
- var wrap = function (tag) {
- var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
- sym._k = tag;
- return sym;
- };
- var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
- return typeof it == 'symbol';
- } : function (it) {
- return it instanceof $Symbol;
- };
- var $defineProperty = function defineProperty(it, key, D) {
- if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
- anObject(it);
- key = toPrimitive(key, true);
- anObject(D);
- if (has(AllSymbols, key)) {
- if (!D.enumerable) {
- if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
- it[HIDDEN][key] = true;
- } else {
- if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
- D = _create(D, { enumerable: createDesc(0, false) });
- } return setSymbolDesc(it, key, D);
- } return dP(it, key, D);
- };
- var $defineProperties = function defineProperties(it, P) {
- anObject(it);
- var keys = enumKeys(P = toIObject(P));
- var i = 0;
- var l = keys.length;
- var key;
- while (l > i) $defineProperty(it, key = keys[i++], P[key]);
- return it;
- };
- var $create = function create(it, P) {
- return P === undefined ? _create(it) : $defineProperties(_create(it), P);
- };
- var $propertyIsEnumerable = function propertyIsEnumerable(key) {
- var E = isEnum.call(this, key = toPrimitive(key, true));
- if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
- return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
- };
- var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
- it = toIObject(it);
- key = toPrimitive(key, true);
- if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
- var D = gOPD(it, key);
- if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
- return D;
- };
- var $getOwnPropertyNames = function getOwnPropertyNames(it) {
- var names = gOPN(toIObject(it));
- var result = [];
- var i = 0;
- var key;
- while (names.length > i) {
- if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
- } return result;
- };
- var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
- var IS_OP = it === ObjectProto;
- var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
- var result = [];
- var i = 0;
- var key;
- while (names.length > i) {
- if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
- } return result;
- };
- // 19.4.1.1 Symbol([description])
- if (!USE_NATIVE) {
- $Symbol = function Symbol() {
- if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
- var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
- var $set = function (value) {
- if (this === ObjectProto) $set.call(OPSymbols, value);
- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
- setSymbolDesc(this, tag, createDesc(1, value));
- };
- if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
- return wrap(tag);
- };
- redefine($Symbol[PROTOTYPE], 'toString', function toString() {
- return this._k;
- });
- $GOPD.f = $getOwnPropertyDescriptor;
- $DP.f = $defineProperty;
- __webpack_require__("6abf").f = gOPNExt.f = $getOwnPropertyNames;
- __webpack_require__("355d").f = $propertyIsEnumerable;
- __webpack_require__("9aa9").f = $getOwnPropertySymbols;
- if (DESCRIPTORS && !__webpack_require__("b8e3")) {
- redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
- }
- wksExt.f = function (name) {
- return wrap(wks(name));
- };
- }
- $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
- for (var es6Symbols = (
- // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
- 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
- ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
- for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
- $export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
- // 19.4.2.1 Symbol.for(key)
- 'for': function (key) {
- return has(SymbolRegistry, key += '')
- ? SymbolRegistry[key]
- : SymbolRegistry[key] = $Symbol(key);
- },
- // 19.4.2.5 Symbol.keyFor(sym)
- keyFor: function keyFor(sym) {
- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
- for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
- },
- useSetter: function () { setter = true; },
- useSimple: function () { setter = false; }
- });
- $export($export.S + $export.F * !USE_NATIVE, 'Object', {
- // 19.1.2.2 Object.create(O [, Properties])
- create: $create,
- // 19.1.2.4 Object.defineProperty(O, P, Attributes)
- defineProperty: $defineProperty,
- // 19.1.2.3 Object.defineProperties(O, Properties)
- defineProperties: $defineProperties,
- // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
- getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
- // 19.1.2.7 Object.getOwnPropertyNames(O)
- getOwnPropertyNames: $getOwnPropertyNames,
- // 19.1.2.8 Object.getOwnPropertySymbols(O)
- getOwnPropertySymbols: $getOwnPropertySymbols
- });
- // 24.3.2 JSON.stringify(value [, replacer [, space]])
- $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
- var S = $Symbol();
- // MS Edge converts symbol values to JSON as {}
- // WebKit converts symbol values to JSON as null
- // V8 throws on boxed symbols
- return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
- })), 'JSON', {
- stringify: function stringify(it) {
- var args = [it];
- var i = 1;
- var replacer, $replacer;
- while (arguments.length > i) args.push(arguments[i++]);
- $replacer = replacer = args[1];
- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
- if (!isArray(replacer)) replacer = function (key, value) {
- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
- if (!isSymbol(value)) return value;
- };
- args[1] = replacer;
- return _stringify.apply($JSON, args);
- }
- });
- // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
- $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__("35e8")($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
- // 19.4.3.5 Symbol.prototype[@@toStringTag]
- setToStringTag($Symbol, 'Symbol');
- // 20.2.1.9 Math[@@toStringTag]
- setToStringTag(Math, 'Math', true);
- // 24.3.3 JSON[@@toStringTag]
- setToStringTag(global.JSON, 'JSON', true);
- /***/ }),
- /***/ "01f9":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var LIBRARY = __webpack_require__("2d00");
- var $export = __webpack_require__("5ca1");
- var redefine = __webpack_require__("2aba");
- var hide = __webpack_require__("32e9");
- var Iterators = __webpack_require__("84f2");
- var $iterCreate = __webpack_require__("41a0");
- var setToStringTag = __webpack_require__("7f20");
- var getPrototypeOf = __webpack_require__("38fd");
- var ITERATOR = __webpack_require__("2b4c")('iterator');
- var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
- var FF_ITERATOR = '@@iterator';
- var KEYS = 'keys';
- var VALUES = 'values';
- var returnThis = function () { return this; };
- module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
- $iterCreate(Constructor, NAME, next);
- var getMethod = function (kind) {
- if (!BUGGY && kind in proto) return proto[kind];
- switch (kind) {
- case KEYS: return function keys() { return new Constructor(this, kind); };
- case VALUES: return function values() { return new Constructor(this, kind); };
- } return function entries() { return new Constructor(this, kind); };
- };
- var TAG = NAME + ' Iterator';
- var DEF_VALUES = DEFAULT == VALUES;
- var VALUES_BUG = false;
- var proto = Base.prototype;
- var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
- var $default = $native || getMethod(DEFAULT);
- var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
- var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
- var methods, key, IteratorPrototype;
- // Fix native
- if ($anyNative) {
- IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
- if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
- // Set @@toStringTag to native iterators
- setToStringTag(IteratorPrototype, TAG, true);
- // fix for some old engines
- if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
- }
- }
- // fix Array#{values, @@iterator}.name in V8 / FF
- if (DEF_VALUES && $native && $native.name !== VALUES) {
- VALUES_BUG = true;
- $default = function values() { return $native.call(this); };
- }
- // Define iterator
- if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
- hide(proto, ITERATOR, $default);
- }
- // Plug for library
- Iterators[NAME] = $default;
- Iterators[TAG] = returnThis;
- if (DEFAULT) {
- methods = {
- values: DEF_VALUES ? $default : getMethod(VALUES),
- keys: IS_SET ? $default : getMethod(KEYS),
- entries: $entries
- };
- if (FORCED) for (key in methods) {
- if (!(key in proto)) redefine(proto, key, methods[key]);
- } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
- }
- return methods;
- };
- /***/ }),
- /***/ "02f4":
- /***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__("4588");
- var defined = __webpack_require__("be13");
- // true -> String#at
- // false -> String#codePointAt
- module.exports = function (TO_STRING) {
- return function (that, pos) {
- var s = String(defined(that));
- var i = toInteger(pos);
- var l = s.length;
- var a, b;
- if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
- a = s.charCodeAt(i);
- return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
- ? TO_STRING ? s.charAt(i) : a
- : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
- };
- };
- /***/ }),
- /***/ "0390":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var at = __webpack_require__("02f4")(true);
- // `AdvanceStringIndex` abstract operation
- // https://tc39.github.io/ecma262/#sec-advancestringindex
- module.exports = function (S, index, unicode) {
- return index + (unicode ? at(S, index).length : 1);
- };
- /***/ }),
- /***/ "0395":
- /***/ (function(module, exports, __webpack_require__) {
- // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
- var toIObject = __webpack_require__("36c3");
- var gOPN = __webpack_require__("6abf").f;
- var toString = {}.toString;
- var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
- ? Object.getOwnPropertyNames(window) : [];
- var getWindowNames = function (it) {
- try {
- return gOPN(it);
- } catch (e) {
- return windowNames.slice();
- }
- };
- module.exports.f = function getOwnPropertyNames(it) {
- return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
- };
- /***/ }),
- /***/ "07e3":
- /***/ (function(module, exports) {
- var hasOwnProperty = {}.hasOwnProperty;
- module.exports = function (it, key) {
- return hasOwnProperty.call(it, key);
- };
- /***/ }),
- /***/ "0bfb":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // 21.2.5.3 get RegExp.prototype.flags
- var anObject = __webpack_require__("cb7c");
- module.exports = function () {
- var that = anObject(this);
- var result = '';
- if (that.global) result += 'g';
- if (that.ignoreCase) result += 'i';
- if (that.multiline) result += 'm';
- if (that.unicode) result += 'u';
- if (that.sticky) result += 'y';
- return result;
- };
- /***/ }),
- /***/ "0d58":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.14 / 15.2.3.14 Object.keys(O)
- var $keys = __webpack_require__("ce10");
- var enumBugKeys = __webpack_require__("e11e");
- module.exports = Object.keys || function keys(O) {
- return $keys(O, enumBugKeys);
- };
- /***/ }),
- /***/ "0fc9":
- /***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__("3a38");
- var max = Math.max;
- var min = Math.min;
- module.exports = function (index, length) {
- index = toInteger(index);
- return index < 0 ? max(index + length, 0) : min(index, length);
- };
- /***/ }),
- /***/ "11e9":
- /***/ (function(module, exports, __webpack_require__) {
- var pIE = __webpack_require__("52a7");
- var createDesc = __webpack_require__("4630");
- var toIObject = __webpack_require__("6821");
- var toPrimitive = __webpack_require__("6a99");
- var has = __webpack_require__("69a8");
- var IE8_DOM_DEFINE = __webpack_require__("c69a");
- var gOPD = Object.getOwnPropertyDescriptor;
- exports.f = __webpack_require__("9e1e") ? gOPD : function getOwnPropertyDescriptor(O, P) {
- O = toIObject(O);
- P = toPrimitive(P, true);
- if (IE8_DOM_DEFINE) try {
- return gOPD(O, P);
- } catch (e) { /* empty */ }
- if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
- };
- /***/ }),
- /***/ "1495":
- /***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__("86cc");
- var anObject = __webpack_require__("cb7c");
- var getKeys = __webpack_require__("0d58");
- module.exports = __webpack_require__("9e1e") ? Object.defineProperties : function defineProperties(O, Properties) {
- anObject(O);
- var keys = getKeys(Properties);
- var length = keys.length;
- var i = 0;
- var P;
- while (length > i) dP.f(O, P = keys[i++], Properties[P]);
- return O;
- };
- /***/ }),
- /***/ "1691":
- /***/ (function(module, exports) {
- // IE 8- don't enum bug keys
- module.exports = (
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
- ).split(',');
- /***/ }),
- /***/ "1bc3":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.1 ToPrimitive(input [, PreferredType])
- var isObject = __webpack_require__("f772");
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
- // and the second argument - flag - preferred type is a string
- module.exports = function (it, S) {
- if (!isObject(it)) return it;
- var fn, val;
- if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
- if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- throw TypeError("Can't convert object to primitive value");
- };
- /***/ }),
- /***/ "1ec9":
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__("f772");
- var document = __webpack_require__("e53d").document;
- // typeof document.createElement is 'object' in old IE
- var is = isObject(document) && isObject(document.createElement);
- module.exports = function (it) {
- return is ? document.createElement(it) : {};
- };
- /***/ }),
- /***/ "214f":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- __webpack_require__("b0c5");
- var redefine = __webpack_require__("2aba");
- var hide = __webpack_require__("32e9");
- var fails = __webpack_require__("79e5");
- var defined = __webpack_require__("be13");
- var wks = __webpack_require__("2b4c");
- var regexpExec = __webpack_require__("520a");
- var SPECIES = wks('species');
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
- // #replace needs built-in support for named groups.
- // #match works fine because it just return the exec results, even if it has
- // a "grops" property.
- var re = /./;
- re.exec = function () {
- var result = [];
- result.groups = { a: '7' };
- return result;
- };
- return ''.replace(re, '$<a>') !== '7';
- });
- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {
- // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
- var re = /(?:)/;
- var originalExec = re.exec;
- re.exec = function () { return originalExec.apply(this, arguments); };
- var result = 'ab'.split(re);
- return result.length === 2 && result[0] === 'a' && result[1] === 'b';
- })();
- module.exports = function (KEY, length, exec) {
- var SYMBOL = wks(KEY);
- var DELEGATES_TO_SYMBOL = !fails(function () {
- // String methods call symbol-named RegEp methods
- var O = {};
- O[SYMBOL] = function () { return 7; };
- return ''[KEY](O) != 7;
- });
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {
- // Symbol-named RegExp methods call .exec
- var execCalled = false;
- var re = /a/;
- re.exec = function () { execCalled = true; return null; };
- if (KEY === 'split') {
- // RegExp[@@split] doesn't call the regex's exec method, but first creates
- // a new one. We need to return the patched regex when creating the new one.
- re.constructor = {};
- re.constructor[SPECIES] = function () { return re; };
- }
- re[SYMBOL]('');
- return !execCalled;
- }) : undefined;
- if (
- !DELEGATES_TO_SYMBOL ||
- !DELEGATES_TO_EXEC ||
- (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
- (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
- ) {
- var nativeRegExpMethod = /./[SYMBOL];
- var fns = exec(
- defined,
- SYMBOL,
- ''[KEY],
- function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {
- if (regexp.exec === regexpExec) {
- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
- // The native String method already delegates to @@method (this
- // polyfilled function), leasing to infinite recursion.
- // We avoid it by directly calling the native @@method method.
- return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
- }
- return { done: true, value: nativeMethod.call(str, regexp, arg2) };
- }
- return { done: false };
- }
- );
- var strfn = fns[0];
- var rxfn = fns[1];
- redefine(String.prototype, KEY, strfn);
- hide(RegExp.prototype, SYMBOL, length == 2
- // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
- // 21.2.5.11 RegExp.prototype[@@split](string, limit)
- ? function (string, arg) { return rxfn.call(string, this, arg); }
- // 21.2.5.6 RegExp.prototype[@@match](string)
- // 21.2.5.9 RegExp.prototype[@@search](string)
- : function (string) { return rxfn.call(string, this); }
- );
- }
- };
- /***/ }),
- /***/ "230e":
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__("d3f4");
- var document = __webpack_require__("7726").document;
- // typeof document.createElement is 'object' in old IE
- var is = isObject(document) && isObject(document.createElement);
- module.exports = function (it) {
- return is ? document.createElement(it) : {};
- };
- /***/ }),
- /***/ "2350":
- /***/ (function(module, exports) {
- /*
- MIT License http://www.opensource.org/licenses/mit-license.php
- Author Tobias Koppers @sokra
- */
- // css base code, injected by the css-loader
- module.exports = function(useSourceMap) {
- var list = [];
- // return the list of modules as css string
- list.toString = function toString() {
- return this.map(function (item) {
- var content = cssWithMappingToString(item, useSourceMap);
- if(item[2]) {
- return "@media " + item[2] + "{" + content + "}";
- } else {
- return content;
- }
- }).join("");
- };
- // import a list of modules into the list
- list.i = function(modules, mediaQuery) {
- if(typeof modules === "string")
- modules = [[null, modules, ""]];
- var alreadyImportedModules = {};
- for(var i = 0; i < this.length; i++) {
- var id = this[i][0];
- if(typeof id === "number")
- alreadyImportedModules[id] = true;
- }
- for(i = 0; i < modules.length; i++) {
- var item = modules[i];
- // skip already imported module
- // this implementation is not 100% perfect for weird media query combinations
- // when a module is imported multiple times with different media queries.
- // I hope this will never occur (Hey this way we have smaller bundles)
- if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
- if(mediaQuery && !item[2]) {
- item[2] = mediaQuery;
- } else if(mediaQuery) {
- item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
- }
- list.push(item);
- }
- }
- };
- return list;
- };
- function cssWithMappingToString(item, useSourceMap) {
- var content = item[1] || '';
- var cssMapping = item[3];
- if (!cssMapping) {
- return content;
- }
- if (useSourceMap && typeof btoa === 'function') {
- var sourceMapping = toComment(cssMapping);
- var sourceURLs = cssMapping.sources.map(function (source) {
- return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
- });
- return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
- }
- return [content].join('\n');
- }
- // Adapted from convert-source-map (MIT)
- function toComment(sourceMap) {
- // eslint-disable-next-line no-undef
- var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
- var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
- return '/*# ' + data + ' */';
- }
- /***/ }),
- /***/ "23c6":
- /***/ (function(module, exports, __webpack_require__) {
- // getting tag from 19.1.3.6 Object.prototype.toString()
- var cof = __webpack_require__("2d95");
- var TAG = __webpack_require__("2b4c")('toStringTag');
- // ES3 wrong here
- var ARG = cof(function () { return arguments; }()) == 'Arguments';
- // fallback for IE11 Script Access Denied error
- var tryGet = function (it, key) {
- try {
- return it[key];
- } catch (e) { /* empty */ }
- };
- module.exports = function (it) {
- var O, T, B;
- return it === undefined ? 'Undefined' : it === null ? 'Null'
- // @@toStringTag case
- : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
- // builtinTag case
- : ARG ? cof(O)
- // ES3 arguments fallback
- : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
- };
- /***/ }),
- /***/ "241e":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.13 ToObject(argument)
- var defined = __webpack_require__("25eb");
- module.exports = function (it) {
- return Object(defined(it));
- };
- /***/ }),
- /***/ "25eb":
- /***/ (function(module, exports) {
- // 7.2.1 RequireObjectCoercible(argument)
- module.exports = function (it) {
- if (it == undefined) throw TypeError("Can't call method on " + it);
- return it;
- };
- /***/ }),
- /***/ "268f":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__("fde4");
- /***/ }),
- /***/ "28a5":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var isRegExp = __webpack_require__("aae3");
- var anObject = __webpack_require__("cb7c");
- var speciesConstructor = __webpack_require__("ebd6");
- var advanceStringIndex = __webpack_require__("0390");
- var toLength = __webpack_require__("9def");
- var callRegExpExec = __webpack_require__("5f1b");
- var regexpExec = __webpack_require__("520a");
- var fails = __webpack_require__("79e5");
- var $min = Math.min;
- var $push = [].push;
- var $SPLIT = 'split';
- var LENGTH = 'length';
- var LAST_INDEX = 'lastIndex';
- var MAX_UINT32 = 0xffffffff;
- // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
- var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); });
- // @@split logic
- __webpack_require__("214f")('split', 2, function (defined, SPLIT, $split, maybeCallNative) {
- var internalSplit;
- if (
- 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||
- 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
- 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
- '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
- '.'[$SPLIT](/()()/)[LENGTH] > 1 ||
- ''[$SPLIT](/.?/)[LENGTH]
- ) {
- // based on es5-shim implementation, need to rework it
- internalSplit = function (separator, limit) {
- var string = String(this);
- if (separator === undefined && limit === 0) return [];
- // If `separator` is not a regex, use native split
- if (!isRegExp(separator)) return $split.call(string, separator, limit);
- var output = [];
- var flags = (separator.ignoreCase ? 'i' : '') +
- (separator.multiline ? 'm' : '') +
- (separator.unicode ? 'u' : '') +
- (separator.sticky ? 'y' : '');
- var lastLastIndex = 0;
- var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0;
- // Make `global` and avoid `lastIndex` issues by working with a copy
- var separatorCopy = new RegExp(separator.source, flags + 'g');
- var match, lastIndex, lastLength;
- while (match = regexpExec.call(separatorCopy, string)) {
- lastIndex = separatorCopy[LAST_INDEX];
- if (lastIndex > lastLastIndex) {
- output.push(string.slice(lastLastIndex, match.index));
- if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
- lastLength = match[0][LENGTH];
- lastLastIndex = lastIndex;
- if (output[LENGTH] >= splitLimit) break;
- }
- if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
- }
- if (lastLastIndex === string[LENGTH]) {
- if (lastLength || !separatorCopy.test('')) output.push('');
- } else output.push(string.slice(lastLastIndex));
- return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
- };
- // Chakra, V8
- } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
- internalSplit = function (separator, limit) {
- return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit);
- };
- } else {
- internalSplit = $split;
- }
- return [
- // `String.prototype.split` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.split
- function split(separator, limit) {
- var O = defined(this);
- var splitter = separator == undefined ? undefined : separator[SPLIT];
- return splitter !== undefined
- ? splitter.call(separator, O, limit)
- : internalSplit.call(String(O), separator, limit);
- },
- // `RegExp.prototype[@@split]` method
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
- //
- // NOTE: This cannot be properly polyfilled in engines that don't support
- // the 'y' flag.
- function (regexp, limit) {
- var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split);
- if (res.done) return res.value;
- var rx = anObject(regexp);
- var S = String(this);
- var C = speciesConstructor(rx, RegExp);
- var unicodeMatching = rx.unicode;
- var flags = (rx.ignoreCase ? 'i' : '') +
- (rx.multiline ? 'm' : '') +
- (rx.unicode ? 'u' : '') +
- (SUPPORTS_Y ? 'y' : 'g');
- // ^(? + rx + ) is needed, in combination with some S slicing, to
- // simulate the 'y' flag.
- var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
- var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
- if (lim === 0) return [];
- if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
- var p = 0;
- var q = 0;
- var A = [];
- while (q < S.length) {
- splitter.lastIndex = SUPPORTS_Y ? q : 0;
- var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
- var e;
- if (
- z === null ||
- (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
- ) {
- q = advanceStringIndex(S, q, unicodeMatching);
- } else {
- A.push(S.slice(p, q));
- if (A.length === lim) return A;
- for (var i = 1; i <= z.length - 1; i++) {
- A.push(z[i]);
- if (A.length === lim) return A;
- }
- q = p = e;
- }
- }
- A.push(S.slice(p));
- return A;
- }
- ];
- });
- /***/ }),
- /***/ "294c":
- /***/ (function(module, exports) {
- module.exports = function (exec) {
- try {
- return !!exec();
- } catch (e) {
- return true;
- }
- };
- /***/ }),
- /***/ "2aba":
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__("7726");
- var hide = __webpack_require__("32e9");
- var has = __webpack_require__("69a8");
- var SRC = __webpack_require__("ca5a")('src');
- var $toString = __webpack_require__("fa5b");
- var TO_STRING = 'toString';
- var TPL = ('' + $toString).split(TO_STRING);
- __webpack_require__("8378").inspectSource = function (it) {
- return $toString.call(it);
- };
- (module.exports = function (O, key, val, safe) {
- var isFunction = typeof val == 'function';
- if (isFunction) has(val, 'name') || hide(val, 'name', key);
- if (O[key] === val) return;
- if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
- if (O === global) {
- O[key] = val;
- } else if (!safe) {
- delete O[key];
- hide(O, key, val);
- } else if (O[key]) {
- O[key] = val;
- } else {
- hide(O, key, val);
- }
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
- })(Function.prototype, TO_STRING, function toString() {
- return typeof this == 'function' && this[SRC] || $toString.call(this);
- });
- /***/ }),
- /***/ "2aeb":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
- var anObject = __webpack_require__("cb7c");
- var dPs = __webpack_require__("1495");
- var enumBugKeys = __webpack_require__("e11e");
- var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
- var Empty = function () { /* empty */ };
- var PROTOTYPE = 'prototype';
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
- var createDict = function () {
- // Thrash, waste and sodomy: IE GC bug
- var iframe = __webpack_require__("230e")('iframe');
- var i = enumBugKeys.length;
- var lt = '<';
- var gt = '>';
- var iframeDocument;
- iframe.style.display = 'none';
- __webpack_require__("fab2").appendChild(iframe);
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
- // createDict = iframe.contentWindow.Object;
- // html.removeChild(iframe);
- iframeDocument = iframe.contentWindow.document;
- iframeDocument.open();
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
- iframeDocument.close();
- createDict = iframeDocument.F;
- while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
- return createDict();
- };
- module.exports = Object.create || function create(O, Properties) {
- var result;
- if (O !== null) {
- Empty[PROTOTYPE] = anObject(O);
- result = new Empty();
- Empty[PROTOTYPE] = null;
- // add "__proto__" for Object.getPrototypeOf polyfill
- result[IE_PROTO] = O;
- } else result = createDict();
- return Properties === undefined ? result : dPs(result, Properties);
- };
- /***/ }),
- /***/ "2b4c":
- /***/ (function(module, exports, __webpack_require__) {
- var store = __webpack_require__("5537")('wks');
- var uid = __webpack_require__("ca5a");
- var Symbol = __webpack_require__("7726").Symbol;
- var USE_SYMBOL = typeof Symbol == 'function';
- var $exports = module.exports = function (name) {
- return store[name] || (store[name] =
- USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
- };
- $exports.store = store;
- /***/ }),
- /***/ "2d00":
- /***/ (function(module, exports) {
- module.exports = false;
- /***/ }),
- /***/ "2d95":
- /***/ (function(module, exports) {
- var toString = {}.toString;
- module.exports = function (it) {
- return toString.call(it).slice(8, -1);
- };
- /***/ }),
- /***/ "32a6":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.14 Object.keys(O)
- var toObject = __webpack_require__("241e");
- var $keys = __webpack_require__("c3a1");
- __webpack_require__("ce7e")('keys', function () {
- return function keys(it) {
- return $keys(toObject(it));
- };
- });
- /***/ }),
- /***/ "32e9":
- /***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__("86cc");
- var createDesc = __webpack_require__("4630");
- module.exports = __webpack_require__("9e1e") ? function (object, key, value) {
- return dP.f(object, key, createDesc(1, value));
- } : function (object, key, value) {
- object[key] = value;
- return object;
- };
- /***/ }),
- /***/ "32fc":
- /***/ (function(module, exports, __webpack_require__) {
- var document = __webpack_require__("e53d").document;
- module.exports = document && document.documentElement;
- /***/ }),
- /***/ "335c":
- /***/ (function(module, exports, __webpack_require__) {
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
- var cof = __webpack_require__("6b4c");
- // eslint-disable-next-line no-prototype-builtins
- module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
- return cof(it) == 'String' ? it.split('') : Object(it);
- };
- /***/ }),
- /***/ "355d":
- /***/ (function(module, exports) {
- exports.f = {}.propertyIsEnumerable;
- /***/ }),
- /***/ "35e8":
- /***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__("d9f6");
- var createDesc = __webpack_require__("aebd");
- module.exports = __webpack_require__("8e60") ? function (object, key, value) {
- return dP.f(object, key, createDesc(1, value));
- } : function (object, key, value) {
- object[key] = value;
- return object;
- };
- /***/ }),
- /***/ "36bd":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
- var toObject = __webpack_require__("4bf8");
- var toAbsoluteIndex = __webpack_require__("77f1");
- var toLength = __webpack_require__("9def");
- module.exports = function fill(value /* , start = 0, end = @length */) {
- var O = toObject(this);
- var length = toLength(O.length);
- var aLen = arguments.length;
- var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length);
- var end = aLen > 2 ? arguments[2] : undefined;
- var endPos = end === undefined ? length : toAbsoluteIndex(end, length);
- while (endPos > index) O[index++] = value;
- return O;
- };
- /***/ }),
- /***/ "36c3":
- /***/ (function(module, exports, __webpack_require__) {
- // to indexed object, toObject with fallback for non-array-like ES3 strings
- var IObject = __webpack_require__("335c");
- var defined = __webpack_require__("25eb");
- module.exports = function (it) {
- return IObject(defined(it));
- };
- /***/ }),
- /***/ "382e":
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__("2350")(false);
- // imports
- // module
- exports.push([module.i, ".alt-grid-container{position:relative}.alt-grid-container .alt-grid-item{position:absolute;background:grey}.alt-grid-container .alt-grid-item.can-drag{cursor:move}.alt-grid-container.alt-grid-container-operating .alt-grid-item{-webkit-transition-duration:.3s;transition-duration:.3s}.alt-grid-container.alt-grid-container-operating .alt-grid-item.operated-item{-webkit-transition-duration:.1s;transition-duration:.1s}.alt-grid-container .alt-grid-item:hover .alt-grid-item-resize-handler{display:block}.alt-grid-container .alt-grid-item-resize-handler{display:none;position:absolute;right:1px;bottom:1px;cursor:se-resize}.alt-grid-container .alt-g-i-r-h-default-style{width:0;height:0;border-top:5px solid transparent;border-left:5px solid transparent;border-right:5px solid #000;border-bottom:5px solid #000}.alt-grid-item-drag-placeholder{position:absolute;width:0;height:0;background:red;visibility:hidden}.alt-grid-container-operating .alt-grid-item-drag-placeholder{visibility:visible}.alt-grid-container-operating{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.alt-grid-container-operating .mask{width:100%;height:100%;position:absolute;z-index:2}.alt-grid-container-operating.alt-move .mask{cursor:move}.alt-grid-container-operating.alt-resize .mask{cursor:se-resize}", ""]);
- // exports
- /***/ }),
- /***/ "3846":
- /***/ (function(module, exports, __webpack_require__) {
- // 21.2.5.3 get RegExp.prototype.flags()
- if (__webpack_require__("9e1e") && /./g.flags != 'g') __webpack_require__("86cc").f(RegExp.prototype, 'flags', {
- configurable: true,
- get: __webpack_require__("0bfb")
- });
- /***/ }),
- /***/ "386d":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var anObject = __webpack_require__("cb7c");
- var sameValue = __webpack_require__("83a1");
- var regExpExec = __webpack_require__("5f1b");
- // @@search logic
- __webpack_require__("214f")('search', 1, function (defined, SEARCH, $search, maybeCallNative) {
- return [
- // `String.prototype.search` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.search
- function search(regexp) {
- var O = defined(this);
- var fn = regexp == undefined ? undefined : regexp[SEARCH];
- return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
- },
- // `RegExp.prototype[@@search]` method
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search
- function (regexp) {
- var res = maybeCallNative($search, regexp, this);
- if (res.done) return res.value;
- var rx = anObject(regexp);
- var S = String(this);
- var previousLastIndex = rx.lastIndex;
- if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
- var result = regExpExec(rx, S);
- if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
- return result === null ? -1 : result.index;
- }
- ];
- });
- /***/ }),
- /***/ "38fd":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
- var has = __webpack_require__("69a8");
- var toObject = __webpack_require__("4bf8");
- var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
- var ObjectProto = Object.prototype;
- module.exports = Object.getPrototypeOf || function (O) {
- O = toObject(O);
- if (has(O, IE_PROTO)) return O[IE_PROTO];
- if (typeof O.constructor == 'function' && O instanceof O.constructor) {
- return O.constructor.prototype;
- } return O instanceof Object ? ObjectProto : null;
- };
- /***/ }),
- /***/ "3a38":
- /***/ (function(module, exports) {
- // 7.1.4 ToInteger
- var ceil = Math.ceil;
- var floor = Math.floor;
- module.exports = function (it) {
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
- };
- /***/ }),
- /***/ "3b2b":
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__("7726");
- var inheritIfRequired = __webpack_require__("5dbc");
- var dP = __webpack_require__("86cc").f;
- var gOPN = __webpack_require__("9093").f;
- var isRegExp = __webpack_require__("aae3");
- var $flags = __webpack_require__("0bfb");
- var $RegExp = global.RegExp;
- var Base = $RegExp;
- var proto = $RegExp.prototype;
- var re1 = /a/g;
- var re2 = /a/g;
- // "new" creates a new object, old webkit buggy here
- var CORRECT_NEW = new $RegExp(re1) !== re1;
- if (__webpack_require__("9e1e") && (!CORRECT_NEW || __webpack_require__("79e5")(function () {
- re2[__webpack_require__("2b4c")('match')] = false;
- // RegExp constructor can alter flags and IsRegExp works correct with @@match
- return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';
- }))) {
- $RegExp = function RegExp(p, f) {
- var tiRE = this instanceof $RegExp;
- var piRE = isRegExp(p);
- var fiU = f === undefined;
- return !tiRE && piRE && p.constructor === $RegExp && fiU ? p
- : inheritIfRequired(CORRECT_NEW
- ? new Base(piRE && !fiU ? p.source : p, f)
- : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)
- , tiRE ? this : proto, $RegExp);
- };
- var proxy = function (key) {
- key in $RegExp || dP($RegExp, key, {
- configurable: true,
- get: function () { return Base[key]; },
- set: function (it) { Base[key] = it; }
- });
- };
- for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]);
- proto.constructor = $RegExp;
- $RegExp.prototype = proto;
- __webpack_require__("2aba")(global, 'RegExp', $RegExp);
- }
- __webpack_require__("7a56")('RegExp');
- /***/ }),
- /***/ "41a0":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var create = __webpack_require__("2aeb");
- var descriptor = __webpack_require__("4630");
- var setToStringTag = __webpack_require__("7f20");
- var IteratorPrototype = {};
- // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
- __webpack_require__("32e9")(IteratorPrototype, __webpack_require__("2b4c")('iterator'), function () { return this; });
- module.exports = function (Constructor, NAME, next) {
- Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
- setToStringTag(Constructor, NAME + ' Iterator');
- };
- /***/ }),
- /***/ "454f":
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__("46a7");
- var $Object = __webpack_require__("584a").Object;
- module.exports = function defineProperty(it, key, desc) {
- return $Object.defineProperty(it, key, desc);
- };
- /***/ }),
- /***/ "456d":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.14 Object.keys(O)
- var toObject = __webpack_require__("4bf8");
- var $keys = __webpack_require__("0d58");
- __webpack_require__("5eda")('keys', function () {
- return function keys(it) {
- return $keys(toObject(it));
- };
- });
- /***/ }),
- /***/ "4588":
- /***/ (function(module, exports) {
- // 7.1.4 ToInteger
- var ceil = Math.ceil;
- var floor = Math.floor;
- module.exports = function (it) {
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
- };
- /***/ }),
- /***/ "45f2":
- /***/ (function(module, exports, __webpack_require__) {
- var def = __webpack_require__("d9f6").f;
- var has = __webpack_require__("07e3");
- var TAG = __webpack_require__("5168")('toStringTag');
- module.exports = function (it, tag, stat) {
- if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
- };
- /***/ }),
- /***/ "4630":
- /***/ (function(module, exports) {
- module.exports = function (bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value: value
- };
- };
- /***/ }),
- /***/ "46a7":
- /***/ (function(module, exports, __webpack_require__) {
- var $export = __webpack_require__("63b6");
- // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
- $export($export.S + $export.F * !__webpack_require__("8e60"), 'Object', { defineProperty: __webpack_require__("d9f6").f });
- /***/ }),
- /***/ "47ee":
- /***/ (function(module, exports, __webpack_require__) {
- // all enumerable object keys, includes symbols
- var getKeys = __webpack_require__("c3a1");
- var gOPS = __webpack_require__("9aa9");
- var pIE = __webpack_require__("355d");
- module.exports = function (it) {
- var result = getKeys(it);
- var getSymbols = gOPS.f;
- if (getSymbols) {
- var symbols = getSymbols(it);
- var isEnum = pIE.f;
- var i = 0;
- var key;
- while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
- } return result;
- };
- /***/ }),
- /***/ "4917":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var anObject = __webpack_require__("cb7c");
- var toLength = __webpack_require__("9def");
- var advanceStringIndex = __webpack_require__("0390");
- var regExpExec = __webpack_require__("5f1b");
- // @@match logic
- __webpack_require__("214f")('match', 1, function (defined, MATCH, $match, maybeCallNative) {
- return [
- // `String.prototype.match` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.match
- function match(regexp) {
- var O = defined(this);
- var fn = regexp == undefined ? undefined : regexp[MATCH];
- return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
- },
- // `RegExp.prototype[@@match]` method
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match
- function (regexp) {
- var res = maybeCallNative($match, regexp, this);
- if (res.done) return res.value;
- var rx = anObject(regexp);
- var S = String(this);
- if (!rx.global) return regExpExec(rx, S);
- var fullUnicode = rx.unicode;
- rx.lastIndex = 0;
- var A = [];
- var n = 0;
- var result;
- while ((result = regExpExec(rx, S)) !== null) {
- var matchStr = String(result[0]);
- A[n] = matchStr;
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
- n++;
- }
- return n === 0 ? null : A;
- }
- ];
- });
- /***/ }),
- /***/ "499e":
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
- /**
- * Translates the list format produced by css-loader into something
- * easier to manipulate.
- */
- function listToStyles (parentId, list) {
- var styles = []
- var newStyles = {}
- for (var i = 0; i < list.length; i++) {
- var item = list[i]
- var id = item[0]
- var css = item[1]
- var media = item[2]
- var sourceMap = item[3]
- var part = {
- id: parentId + ':' + i,
- css: css,
- media: media,
- sourceMap: sourceMap
- }
- if (!newStyles[id]) {
- styles.push(newStyles[id] = { id: id, parts: [part] })
- } else {
- newStyles[id].parts.push(part)
- }
- }
- return styles
- }
- // CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesClient.js
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addStylesClient; });
- /*
- MIT License http://www.opensource.org/licenses/mit-license.php
- Author Tobias Koppers @sokra
- Modified by Evan You @yyx990803
- */
- var hasDocument = typeof document !== 'undefined'
- if (typeof DEBUG !== 'undefined' && DEBUG) {
- if (!hasDocument) {
- 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."
- ) }
- }
- /*
- type StyleObject = {
- id: number;
- parts: Array<StyleObjectPart>
- }
- type StyleObjectPart = {
- css: string;
- media: string;
- sourceMap: ?string
- }
- */
- var stylesInDom = {/*
- [id: number]: {
- id: number,
- refs: number,
- parts: Array<(obj?: StyleObjectPart) => void>
- }
- */}
- var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
- var singletonElement = null
- var singletonCounter = 0
- var isProduction = false
- var noop = function () {}
- var options = null
- var ssrIdKey = 'data-vue-ssr-id'
- // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
- // tags it will allow on a page
- var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
- function addStylesClient (parentId, list, _isProduction, _options) {
- isProduction = _isProduction
- options = _options || {}
- var styles = listToStyles(parentId, list)
- addStylesToDom(styles)
- return function update (newList) {
- var mayRemove = []
- for (var i = 0; i < styles.length; i++) {
- var item = styles[i]
- var domStyle = stylesInDom[item.id]
- domStyle.refs--
- mayRemove.push(domStyle)
- }
- if (newList) {
- styles = listToStyles(parentId, newList)
- addStylesToDom(styles)
- } else {
- styles = []
- }
- for (var i = 0; i < mayRemove.length; i++) {
- var domStyle = mayRemove[i]
- if (domStyle.refs === 0) {
- for (var j = 0; j < domStyle.parts.length; j++) {
- domStyle.parts[j]()
- }
- delete stylesInDom[domStyle.id]
- }
- }
- }
- }
- function addStylesToDom (styles /* Array<StyleObject> */) {
- for (var i = 0; i < styles.length; i++) {
- var item = styles[i]
- var domStyle = stylesInDom[item.id]
- if (domStyle) {
- domStyle.refs++
- for (var j = 0; j < domStyle.parts.length; j++) {
- domStyle.parts[j](item.parts[j])
- }
- for (; j < item.parts.length; j++) {
- domStyle.parts.push(addStyle(item.parts[j]))
- }
- if (domStyle.parts.length > item.parts.length) {
- domStyle.parts.length = item.parts.length
- }
- } else {
- var parts = []
- for (var j = 0; j < item.parts.length; j++) {
- parts.push(addStyle(item.parts[j]))
- }
- stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
- }
- }
- }
- function createStyleElement () {
- var styleElement = document.createElement('style')
- styleElement.type = 'text/css'
- head.appendChild(styleElement)
- return styleElement
- }
- function addStyle (obj /* StyleObjectPart */) {
- var update, remove
- var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]')
- if (styleElement) {
- if (isProduction) {
- // has SSR styles and in production mode.
- // simply do nothing.
- return noop
- } else {
- // has SSR styles but in dev mode.
- // for some reason Chrome can't handle source map in server-rendered
- // style tags - source maps in <style> only works if the style tag is
- // created and inserted dynamically. So we remove the server rendered
- // styles and inject new ones.
- styleElement.parentNode.removeChild(styleElement)
- }
- }
- if (isOldIE) {
- // use singleton mode for IE9.
- var styleIndex = singletonCounter++
- styleElement = singletonElement || (singletonElement = createStyleElement())
- update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
- remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
- } else {
- // use multi-style-tag mode in all other cases
- styleElement = createStyleElement()
- update = applyToTag.bind(null, styleElement)
- remove = function () {
- styleElement.parentNode.removeChild(styleElement)
- }
- }
- update(obj)
- return function updateStyle (newObj /* StyleObjectPart */) {
- if (newObj) {
- if (newObj.css === obj.css &&
- newObj.media === obj.media &&
- newObj.sourceMap === obj.sourceMap) {
- return
- }
- update(obj = newObj)
- } else {
- remove()
- }
- }
- }
- var replaceText = (function () {
- var textStore = []
- return function (index, replacement) {
- textStore[index] = replacement
- return textStore.filter(Boolean).join('\n')
- }
- })()
- function applyToSingletonTag (styleElement, index, remove, obj) {
- var css = remove ? '' : obj.css
- if (styleElement.styleSheet) {
- styleElement.styleSheet.cssText = replaceText(index, css)
- } else {
- var cssNode = document.createTextNode(css)
- var childNodes = styleElement.childNodes
- if (childNodes[index]) styleElement.removeChild(childNodes[index])
- if (childNodes.length) {
- styleElement.insertBefore(cssNode, childNodes[index])
- } else {
- styleElement.appendChild(cssNode)
- }
- }
- }
- function applyToTag (styleElement, obj) {
- var css = obj.css
- var media = obj.media
- var sourceMap = obj.sourceMap
- if (media) {
- styleElement.setAttribute('media', media)
- }
- if (options.ssrId) {
- styleElement.setAttribute(ssrIdKey, obj.id)
- }
- if (sourceMap) {
- // https://developer.chrome.com/devtools/docs/javascript-debugging
- // this makes source maps inside style tags work properly in Chrome
- css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
- // http://stackoverflow.com/a/26603875
- css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
- }
- if (styleElement.styleSheet) {
- styleElement.styleSheet.cssText = css
- } else {
- while (styleElement.firstChild) {
- styleElement.removeChild(styleElement.firstChild)
- }
- styleElement.appendChild(document.createTextNode(css))
- }
- }
- /***/ }),
- /***/ "4bf8":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.13 ToObject(argument)
- var defined = __webpack_require__("be13");
- module.exports = function (it) {
- return Object(defined(it));
- };
- /***/ }),
- /***/ "4f6b":
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__("382e");
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var add = __webpack_require__("499e").default
- var update = add("1d0f7901", content, true, {"sourceMap":false,"shadowMode":false});
- /***/ }),
- /***/ "5168":
- /***/ (function(module, exports, __webpack_require__) {
- var store = __webpack_require__("dbdb")('wks');
- var uid = __webpack_require__("62a0");
- var Symbol = __webpack_require__("e53d").Symbol;
- var USE_SYMBOL = typeof Symbol == 'function';
- var $exports = module.exports = function (name) {
- return store[name] || (store[name] =
- USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
- };
- $exports.store = store;
- /***/ }),
- /***/ "520a":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var regexpFlags = __webpack_require__("0bfb");
- var nativeExec = RegExp.prototype.exec;
- // This always refers to the native implementation, because the
- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
- // which loads this file before patching the method.
- var nativeReplace = String.prototype.replace;
- var patchedExec = nativeExec;
- var LAST_INDEX = 'lastIndex';
- var UPDATES_LAST_INDEX_WRONG = (function () {
- var re1 = /a/,
- re2 = /b*/g;
- nativeExec.call(re1, 'a');
- nativeExec.call(re2, 'a');
- return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;
- })();
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
- if (PATCH) {
- patchedExec = function exec(str) {
- var re = this;
- var lastIndex, reCopy, match, i;
- if (NPCG_INCLUDED) {
- reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
- }
- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];
- match = nativeExec.call(re, str);
- if (UPDATES_LAST_INDEX_WRONG && match) {
- re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;
- }
- if (NPCG_INCLUDED && match && match.length > 1) {
- // Fix browsers whose `exec` methods don't consistently return `undefined`
- // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
- // eslint-disable-next-line no-loop-func
- nativeReplace.call(match[0], reCopy, function () {
- for (i = 1; i < arguments.length - 2; i++) {
- if (arguments[i] === undefined) match[i] = undefined;
- }
- });
- }
- return match;
- };
- }
- module.exports = patchedExec;
- /***/ }),
- /***/ "52a7":
- /***/ (function(module, exports) {
- exports.f = {}.propertyIsEnumerable;
- /***/ }),
- /***/ "5537":
- /***/ (function(module, exports, __webpack_require__) {
- var core = __webpack_require__("8378");
- var global = __webpack_require__("7726");
- var SHARED = '__core-js_shared__';
- var store = global[SHARED] || (global[SHARED] = {});
- (module.exports = function (key, value) {
- return store[key] || (store[key] = value !== undefined ? value : {});
- })('versions', []).push({
- version: core.version,
- mode: __webpack_require__("2d00") ? 'pure' : 'global',
- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
- });
- /***/ }),
- /***/ "5559":
- /***/ (function(module, exports, __webpack_require__) {
- var shared = __webpack_require__("dbdb")('keys');
- var uid = __webpack_require__("62a0");
- module.exports = function (key) {
- return shared[key] || (shared[key] = uid(key));
- };
- /***/ }),
- /***/ "584a":
- /***/ (function(module, exports) {
- var core = module.exports = { version: '2.6.5' };
- if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
- /***/ }),
- /***/ "5b4e":
- /***/ (function(module, exports, __webpack_require__) {
- // false -> Array#indexOf
- // true -> Array#includes
- var toIObject = __webpack_require__("36c3");
- var toLength = __webpack_require__("b447");
- var toAbsoluteIndex = __webpack_require__("0fc9");
- module.exports = function (IS_INCLUDES) {
- return function ($this, el, fromIndex) {
- var O = toIObject($this);
- var length = toLength(O.length);
- var index = toAbsoluteIndex(fromIndex, length);
- var value;
- // Array#includes uses SameValueZero equality algorithm
- // eslint-disable-next-line no-self-compare
- if (IS_INCLUDES && el != el) while (length > index) {
- value = O[index++];
- // eslint-disable-next-line no-self-compare
- if (value != value) return true;
- // Array#indexOf ignores holes, Array#includes - not
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
- if (O[index] === el) return IS_INCLUDES || index || 0;
- } return !IS_INCLUDES && -1;
- };
- };
- /***/ }),
- /***/ "5ca1":
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__("7726");
- var core = __webpack_require__("8378");
- var hide = __webpack_require__("32e9");
- var redefine = __webpack_require__("2aba");
- var ctx = __webpack_require__("9b43");
- var PROTOTYPE = 'prototype';
- var $export = function (type, name, source) {
- var IS_FORCED = type & $export.F;
- var IS_GLOBAL = type & $export.G;
- var IS_STATIC = type & $export.S;
- var IS_PROTO = type & $export.P;
- var IS_BIND = type & $export.B;
- var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
- var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
- var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
- var key, own, out, exp;
- if (IS_GLOBAL) source = name;
- for (key in source) {
- // contains in native
- own = !IS_FORCED && target && target[key] !== undefined;
- // export native or passed
- out = (own ? target : source)[key];
- // bind timers to global for call from export context
- exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
- // extend global
- if (target) redefine(target, key, out, type & $export.U);
- // export
- if (exports[key] != out) hide(exports, key, exp);
- if (IS_PROTO && expProto[key] != out) expProto[key] = out;
- }
- };
- global.core = core;
- // type bitmap
- $export.F = 1; // forced
- $export.G = 2; // global
- $export.S = 4; // static
- $export.P = 8; // proto
- $export.B = 16; // bind
- $export.W = 32; // wrap
- $export.U = 64; // safe
- $export.R = 128; // real proto method for `library`
- module.exports = $export;
- /***/ }),
- /***/ "5dbc":
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__("d3f4");
- var setPrototypeOf = __webpack_require__("8b97").set;
- module.exports = function (that, target, C) {
- var S = target.constructor;
- var P;
- if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {
- setPrototypeOf(that, P);
- } return that;
- };
- /***/ }),
- /***/ "5eda":
- /***/ (function(module, exports, __webpack_require__) {
- // most Object methods by ES6 should accept primitives
- var $export = __webpack_require__("5ca1");
- var core = __webpack_require__("8378");
- var fails = __webpack_require__("79e5");
- module.exports = function (KEY, exec) {
- var fn = (core.Object || {})[KEY] || Object[KEY];
- var exp = {};
- exp[KEY] = exec(fn);
- $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
- };
- /***/ }),
- /***/ "5f1b":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var classof = __webpack_require__("23c6");
- var builtinExec = RegExp.prototype.exec;
- // `RegExpExec` abstract operation
- // https://tc39.github.io/ecma262/#sec-regexpexec
- module.exports = function (R, S) {
- var exec = R.exec;
- if (typeof exec === 'function') {
- var result = exec.call(R, S);
- if (typeof result !== 'object') {
- throw new TypeError('RegExp exec method returned something other than an Object or null');
- }
- return result;
- }
- if (classof(R) !== 'RegExp') {
- throw new TypeError('RegExp#exec called on incompatible receiver');
- }
- return builtinExec.call(R, S);
- };
- /***/ }),
- /***/ "613b":
- /***/ (function(module, exports, __webpack_require__) {
- var shared = __webpack_require__("5537")('keys');
- var uid = __webpack_require__("ca5a");
- module.exports = function (key) {
- return shared[key] || (shared[key] = uid(key));
- };
- /***/ }),
- /***/ "626a":
- /***/ (function(module, exports, __webpack_require__) {
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
- var cof = __webpack_require__("2d95");
- // eslint-disable-next-line no-prototype-builtins
- module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
- return cof(it) == 'String' ? it.split('') : Object(it);
- };
- /***/ }),
- /***/ "62a0":
- /***/ (function(module, exports) {
- var id = 0;
- var px = Math.random();
- module.exports = function (key) {
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
- };
- /***/ }),
- /***/ "63b6":
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__("e53d");
- var core = __webpack_require__("584a");
- var ctx = __webpack_require__("d864");
- var hide = __webpack_require__("35e8");
- var has = __webpack_require__("07e3");
- var PROTOTYPE = 'prototype';
- var $export = function (type, name, source) {
- var IS_FORCED = type & $export.F;
- var IS_GLOBAL = type & $export.G;
- var IS_STATIC = type & $export.S;
- var IS_PROTO = type & $export.P;
- var IS_BIND = type & $export.B;
- var IS_WRAP = type & $export.W;
- var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
- var expProto = exports[PROTOTYPE];
- var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
- var key, own, out;
- if (IS_GLOBAL) source = name;
- for (key in source) {
- // contains in native
- own = !IS_FORCED && target && target[key] !== undefined;
- if (own && has(exports, key)) continue;
- // export native or passed
- out = own ? target[key] : source[key];
- // prevent global pollution for namespaces
- exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
- // bind timers to global for call from export context
- : IS_BIND && own ? ctx(out, global)
- // wrap global constructors for prevent change them in library
- : IS_WRAP && target[key] == out ? (function (C) {
- var F = function (a, b, c) {
- if (this instanceof C) {
- switch (arguments.length) {
- case 0: return new C();
- case 1: return new C(a);
- case 2: return new C(a, b);
- } return new C(a, b, c);
- } return C.apply(this, arguments);
- };
- F[PROTOTYPE] = C[PROTOTYPE];
- return F;
- // make static versions for prototype methods
- })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
- // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
- if (IS_PROTO) {
- (exports.virtual || (exports.virtual = {}))[key] = out;
- // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
- if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
- }
- }
- };
- // type bitmap
- $export.F = 1; // forced
- $export.G = 2; // global
- $export.S = 4; // static
- $export.P = 8; // proto
- $export.B = 16; // bind
- $export.W = 32; // wrap
- $export.U = 64; // safe
- $export.R = 128; // real proto method for `library`
- module.exports = $export;
- /***/ }),
- /***/ "6718":
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__("e53d");
- var core = __webpack_require__("584a");
- var LIBRARY = __webpack_require__("b8e3");
- var wksExt = __webpack_require__("ccb9");
- var defineProperty = __webpack_require__("d9f6").f;
- module.exports = function (name) {
- var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
- if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
- };
- /***/ }),
- /***/ "6821":
- /***/ (function(module, exports, __webpack_require__) {
- // to indexed object, toObject with fallback for non-array-like ES3 strings
- var IObject = __webpack_require__("626a");
- var defined = __webpack_require__("be13");
- module.exports = function (it) {
- return IObject(defined(it));
- };
- /***/ }),
- /***/ "69a8":
- /***/ (function(module, exports) {
- var hasOwnProperty = {}.hasOwnProperty;
- module.exports = function (it, key) {
- return hasOwnProperty.call(it, key);
- };
- /***/ }),
- /***/ "6a99":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.1 ToPrimitive(input [, PreferredType])
- var isObject = __webpack_require__("d3f4");
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
- // and the second argument - flag - preferred type is a string
- module.exports = function (it, S) {
- if (!isObject(it)) return it;
- var fn, val;
- if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
- if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- throw TypeError("Can't convert object to primitive value");
- };
- /***/ }),
- /***/ "6abf":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
- var $keys = __webpack_require__("e6f3");
- var hiddenKeys = __webpack_require__("1691").concat('length', 'prototype');
- exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
- return $keys(O, hiddenKeys);
- };
- /***/ }),
- /***/ "6b4c":
- /***/ (function(module, exports) {
- var toString = {}.toString;
- module.exports = function (it) {
- return toString.call(it).slice(8, -1);
- };
- /***/ }),
- /***/ "6b54":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- __webpack_require__("3846");
- var anObject = __webpack_require__("cb7c");
- var $flags = __webpack_require__("0bfb");
- var DESCRIPTORS = __webpack_require__("9e1e");
- var TO_STRING = 'toString';
- var $toString = /./[TO_STRING];
- var define = function (fn) {
- __webpack_require__("2aba")(RegExp.prototype, TO_STRING, fn, true);
- };
- // 21.2.5.14 RegExp.prototype.toString()
- if (__webpack_require__("79e5")(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {
- define(function toString() {
- var R = anObject(this);
- return '/'.concat(R.source, '/',
- 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);
- });
- // FF44- RegExp#toString has a wrong name
- } else if ($toString.name != TO_STRING) {
- define(function toString() {
- return $toString.call(this);
- });
- }
- /***/ }),
- /***/ "6c7b":
- /***/ (function(module, exports, __webpack_require__) {
- // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
- var $export = __webpack_require__("5ca1");
- $export($export.P, 'Array', { fill: __webpack_require__("36bd") });
- __webpack_require__("9c6c")('fill');
- /***/ }),
- /***/ "7726":
- /***/ (function(module, exports) {
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
- var global = module.exports = typeof window != 'undefined' && window.Math == Math
- ? window : typeof self != 'undefined' && self.Math == Math ? self
- // eslint-disable-next-line no-new-func
- : Function('return this')();
- if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
- /***/ }),
- /***/ "77f1":
- /***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__("4588");
- var max = Math.max;
- var min = Math.min;
- module.exports = function (index, length) {
- index = toInteger(index);
- return index < 0 ? max(index + length, 0) : min(index, length);
- };
- /***/ }),
- /***/ "794b":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = !__webpack_require__("8e60") && !__webpack_require__("294c")(function () {
- return Object.defineProperty(__webpack_require__("1ec9")('div'), 'a', { get: function () { return 7; } }).a != 7;
- });
- /***/ }),
- /***/ "79aa":
- /***/ (function(module, exports) {
- module.exports = function (it) {
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
- return it;
- };
- /***/ }),
- /***/ "79e5":
- /***/ (function(module, exports) {
- module.exports = function (exec) {
- try {
- return !!exec();
- } catch (e) {
- return true;
- }
- };
- /***/ }),
- /***/ "7a56":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var global = __webpack_require__("7726");
- var dP = __webpack_require__("86cc");
- var DESCRIPTORS = __webpack_require__("9e1e");
- var SPECIES = __webpack_require__("2b4c")('species');
- module.exports = function (KEY) {
- var C = global[KEY];
- if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
- configurable: true,
- get: function () { return this; }
- });
- };
- /***/ }),
- /***/ "7cdf":
- /***/ (function(module, exports, __webpack_require__) {
- // 20.1.2.3 Number.isInteger(number)
- var $export = __webpack_require__("5ca1");
- $export($export.S, 'Number', { isInteger: __webpack_require__("9c12") });
- /***/ }),
- /***/ "7e90":
- /***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__("d9f6");
- var anObject = __webpack_require__("e4ae");
- var getKeys = __webpack_require__("c3a1");
- module.exports = __webpack_require__("8e60") ? Object.defineProperties : function defineProperties(O, Properties) {
- anObject(O);
- var keys = getKeys(Properties);
- var length = keys.length;
- var i = 0;
- var P;
- while (length > i) dP.f(O, P = keys[i++], Properties[P]);
- return O;
- };
- /***/ }),
- /***/ "7f20":
- /***/ (function(module, exports, __webpack_require__) {
- var def = __webpack_require__("86cc").f;
- var has = __webpack_require__("69a8");
- var TAG = __webpack_require__("2b4c")('toStringTag');
- module.exports = function (it, tag, stat) {
- if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
- };
- /***/ }),
- /***/ "8378":
- /***/ (function(module, exports) {
- var core = module.exports = { version: '2.6.5' };
- if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
- /***/ }),
- /***/ "83a1":
- /***/ (function(module, exports) {
- // 7.2.9 SameValue(x, y)
- module.exports = Object.is || function is(x, y) {
- // eslint-disable-next-line no-self-compare
- return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
- };
- /***/ }),
- /***/ "84f2":
- /***/ (function(module, exports) {
- module.exports = {};
- /***/ }),
- /***/ "85f2":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__("454f");
- /***/ }),
- /***/ "86cc":
- /***/ (function(module, exports, __webpack_require__) {
- var anObject = __webpack_require__("cb7c");
- var IE8_DOM_DEFINE = __webpack_require__("c69a");
- var toPrimitive = __webpack_require__("6a99");
- var dP = Object.defineProperty;
- exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
- anObject(O);
- P = toPrimitive(P, true);
- anObject(Attributes);
- if (IE8_DOM_DEFINE) try {
- return dP(O, P, Attributes);
- } catch (e) { /* empty */ }
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
- if ('value' in Attributes) O[P] = Attributes.value;
- return O;
- };
- /***/ }),
- /***/ "8aae":
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__("32a6");
- module.exports = __webpack_require__("584a").Object.keys;
- /***/ }),
- /***/ "8b97":
- /***/ (function(module, exports, __webpack_require__) {
- // Works with __proto__ only. Old v8 can't work with null proto objects.
- /* eslint-disable no-proto */
- var isObject = __webpack_require__("d3f4");
- var anObject = __webpack_require__("cb7c");
- var check = function (O, proto) {
- anObject(O);
- if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
- };
- module.exports = {
- set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
- function (test, buggy, set) {
- try {
- set = __webpack_require__("9b43")(Function.call, __webpack_require__("11e9").f(Object.prototype, '__proto__').set, 2);
- set(test, []);
- buggy = !(test instanceof Array);
- } catch (e) { buggy = true; }
- return function setPrototypeOf(O, proto) {
- check(O, proto);
- if (buggy) O.__proto__ = proto;
- else set(O, proto);
- return O;
- };
- }({}, false) : undefined),
- check: check
- };
- /***/ }),
- /***/ "8bbf":
- /***/ (function(module, exports) {
- module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;
- /***/ }),
- /***/ "8e60":
- /***/ (function(module, exports, __webpack_require__) {
- // Thank's IE8 for his funny defineProperty
- module.exports = !__webpack_require__("294c")(function () {
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
- });
- /***/ }),
- /***/ "9003":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.2.2 IsArray(argument)
- var cof = __webpack_require__("6b4c");
- module.exports = Array.isArray || function isArray(arg) {
- return cof(arg) == 'Array';
- };
- /***/ }),
- /***/ "9093":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
- var $keys = __webpack_require__("ce10");
- var hiddenKeys = __webpack_require__("e11e").concat('length', 'prototype');
- exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
- return $keys(O, hiddenKeys);
- };
- /***/ }),
- /***/ "9138":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__("35e8");
- /***/ }),
- /***/ "9aa9":
- /***/ (function(module, exports) {
- exports.f = Object.getOwnPropertySymbols;
- /***/ }),
- /***/ "9b43":
- /***/ (function(module, exports, __webpack_require__) {
- // optional / simple context binding
- var aFunction = __webpack_require__("d8e8");
- module.exports = function (fn, that, length) {
- aFunction(fn);
- if (that === undefined) return fn;
- switch (length) {
- case 1: return function (a) {
- return fn.call(that, a);
- };
- case 2: return function (a, b) {
- return fn.call(that, a, b);
- };
- case 3: return function (a, b, c) {
- return fn.call(that, a, b, c);
- };
- }
- return function (/* ...args */) {
- return fn.apply(that, arguments);
- };
- };
- /***/ }),
- /***/ "9c12":
- /***/ (function(module, exports, __webpack_require__) {
- // 20.1.2.3 Number.isInteger(number)
- var isObject = __webpack_require__("d3f4");
- var floor = Math.floor;
- module.exports = function isInteger(it) {
- return !isObject(it) && isFinite(it) && floor(it) === it;
- };
- /***/ }),
- /***/ "9c6c":
- /***/ (function(module, exports, __webpack_require__) {
- // 22.1.3.31 Array.prototype[@@unscopables]
- var UNSCOPABLES = __webpack_require__("2b4c")('unscopables');
- var ArrayProto = Array.prototype;
- if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__("32e9")(ArrayProto, UNSCOPABLES, {});
- module.exports = function (key) {
- ArrayProto[UNSCOPABLES][key] = true;
- };
- /***/ }),
- /***/ "9def":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.15 ToLength
- var toInteger = __webpack_require__("4588");
- var min = Math.min;
- module.exports = function (it) {
- return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
- };
- /***/ }),
- /***/ "9e1e":
- /***/ (function(module, exports, __webpack_require__) {
- // Thank's IE8 for his funny defineProperty
- module.exports = !__webpack_require__("79e5")(function () {
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
- });
- /***/ }),
- /***/ "a159":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
- var anObject = __webpack_require__("e4ae");
- var dPs = __webpack_require__("7e90");
- var enumBugKeys = __webpack_require__("1691");
- var IE_PROTO = __webpack_require__("5559")('IE_PROTO');
- var Empty = function () { /* empty */ };
- var PROTOTYPE = 'prototype';
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
- var createDict = function () {
- // Thrash, waste and sodomy: IE GC bug
- var iframe = __webpack_require__("1ec9")('iframe');
- var i = enumBugKeys.length;
- var lt = '<';
- var gt = '>';
- var iframeDocument;
- iframe.style.display = 'none';
- __webpack_require__("32fc").appendChild(iframe);
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
- // createDict = iframe.contentWindow.Object;
- // html.removeChild(iframe);
- iframeDocument = iframe.contentWindow.document;
- iframeDocument.open();
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
- iframeDocument.close();
- createDict = iframeDocument.F;
- while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
- return createDict();
- };
- module.exports = Object.create || function create(O, Properties) {
- var result;
- if (O !== null) {
- Empty[PROTOTYPE] = anObject(O);
- result = new Empty();
- Empty[PROTOTYPE] = null;
- // add "__proto__" for Object.getPrototypeOf polyfill
- result[IE_PROTO] = O;
- } else result = createDict();
- return Properties === undefined ? result : dPs(result, Properties);
- };
- /***/ }),
- /***/ "a481":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var anObject = __webpack_require__("cb7c");
- var toObject = __webpack_require__("4bf8");
- var toLength = __webpack_require__("9def");
- var toInteger = __webpack_require__("4588");
- var advanceStringIndex = __webpack_require__("0390");
- var regExpExec = __webpack_require__("5f1b");
- var max = Math.max;
- var min = Math.min;
- var floor = Math.floor;
- var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g;
- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g;
- var maybeToString = function (it) {
- return it === undefined ? it : String(it);
- };
- // @@replace logic
- __webpack_require__("214f")('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {
- return [
- // `String.prototype.replace` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.replace
- function replace(searchValue, replaceValue) {
- var O = defined(this);
- var fn = searchValue == undefined ? undefined : searchValue[REPLACE];
- return fn !== undefined
- ? fn.call(searchValue, O, replaceValue)
- : $replace.call(String(O), searchValue, replaceValue);
- },
- // `RegExp.prototype[@@replace]` method
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
- function (regexp, replaceValue) {
- var res = maybeCallNative($replace, regexp, this, replaceValue);
- if (res.done) return res.value;
- var rx = anObject(regexp);
- var S = String(this);
- var functionalReplace = typeof replaceValue === 'function';
- if (!functionalReplace) replaceValue = String(replaceValue);
- var global = rx.global;
- if (global) {
- var fullUnicode = rx.unicode;
- rx.lastIndex = 0;
- }
- var results = [];
- while (true) {
- var result = regExpExec(rx, S);
- if (result === null) break;
- results.push(result);
- if (!global) break;
- var matchStr = String(result[0]);
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
- }
- var accumulatedResult = '';
- var nextSourcePosition = 0;
- for (var i = 0; i < results.length; i++) {
- result = results[i];
- var matched = String(result[0]);
- var position = max(min(toInteger(result.index), S.length), 0);
- var captures = [];
- // NOTE: This is equivalent to
- // captures = result.slice(1).map(maybeToString)
- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
- for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
- var namedCaptures = result.groups;
- if (functionalReplace) {
- var replacerArgs = [matched].concat(captures, position, S);
- if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
- var replacement = String(replaceValue.apply(undefined, replacerArgs));
- } else {
- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
- }
- if (position >= nextSourcePosition) {
- accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
- nextSourcePosition = position + matched.length;
- }
- }
- return accumulatedResult + S.slice(nextSourcePosition);
- }
- ];
- // https://tc39.github.io/ecma262/#sec-getsubstitution
- function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
- var tailPos = position + matched.length;
- var m = captures.length;
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
- if (namedCaptures !== undefined) {
- namedCaptures = toObject(namedCaptures);
- symbols = SUBSTITUTION_SYMBOLS;
- }
- return $replace.call(replacement, symbols, function (match, ch) {
- var capture;
- switch (ch.charAt(0)) {
- case '$': return '$';
- case '&': return matched;
- case '`': return str.slice(0, position);
- case "'": return str.slice(tailPos);
- case '<':
- capture = namedCaptures[ch.slice(1, -1)];
- break;
- default: // \d\d?
- var n = +ch;
- if (n === 0) return match;
- if (n > m) {
- var f = floor(n / 10);
- if (f === 0) return match;
- if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
- return match;
- }
- capture = captures[n - 1];
- }
- return capture === undefined ? '' : capture;
- });
- }
- });
- /***/ }),
- /***/ "a4bb":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__("8aae");
- /***/ }),
- /***/ "aa77":
- /***/ (function(module, exports, __webpack_require__) {
- var $export = __webpack_require__("5ca1");
- var defined = __webpack_require__("be13");
- var fails = __webpack_require__("79e5");
- var spaces = __webpack_require__("fdef");
- var space = '[' + spaces + ']';
- var non = '\u200b\u0085';
- var ltrim = RegExp('^' + space + space + '*');
- var rtrim = RegExp(space + space + '*$');
- var exporter = function (KEY, exec, ALIAS) {
- var exp = {};
- var FORCE = fails(function () {
- return !!spaces[KEY]() || non[KEY]() != non;
- });
- var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];
- if (ALIAS) exp[ALIAS] = fn;
- $export($export.P + $export.F * FORCE, 'String', exp);
- };
- // 1 -> String#trimLeft
- // 2 -> String#trimRight
- // 3 -> String#trim
- var trim = exporter.trim = function (string, TYPE) {
- string = String(defined(string));
- if (TYPE & 1) string = string.replace(ltrim, '');
- if (TYPE & 2) string = string.replace(rtrim, '');
- return string;
- };
- module.exports = exporter;
- /***/ }),
- /***/ "aae3":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.2.8 IsRegExp(argument)
- var isObject = __webpack_require__("d3f4");
- var cof = __webpack_require__("2d95");
- var MATCH = __webpack_require__("2b4c")('match');
- module.exports = function (it) {
- var isRegExp;
- return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
- };
- /***/ }),
- /***/ "ac6a":
- /***/ (function(module, exports, __webpack_require__) {
- var $iterators = __webpack_require__("cadf");
- var getKeys = __webpack_require__("0d58");
- var redefine = __webpack_require__("2aba");
- var global = __webpack_require__("7726");
- var hide = __webpack_require__("32e9");
- var Iterators = __webpack_require__("84f2");
- var wks = __webpack_require__("2b4c");
- var ITERATOR = wks('iterator');
- var TO_STRING_TAG = wks('toStringTag');
- var ArrayValues = Iterators.Array;
- var DOMIterables = {
- CSSRuleList: true, // TODO: Not spec compliant, should be false.
- CSSStyleDeclaration: false,
- CSSValueList: false,
- ClientRectList: false,
- DOMRectList: false,
- DOMStringList: false,
- DOMTokenList: true,
- DataTransferItemList: false,
- FileList: false,
- HTMLAllCollection: false,
- HTMLCollection: false,
- HTMLFormElement: false,
- HTMLSelectElement: false,
- MediaList: true, // TODO: Not spec compliant, should be false.
- MimeTypeArray: false,
- NamedNodeMap: false,
- NodeList: true,
- PaintRequestList: false,
- Plugin: false,
- PluginArray: false,
- SVGLengthList: false,
- SVGNumberList: false,
- SVGPathSegList: false,
- SVGPointList: false,
- SVGStringList: false,
- SVGTransformList: false,
- SourceBufferList: false,
- StyleSheetList: true, // TODO: Not spec compliant, should be false.
- TextTrackCueList: false,
- TextTrackList: false,
- TouchList: false
- };
- for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {
- var NAME = collections[i];
- var explicit = DOMIterables[NAME];
- var Collection = global[NAME];
- var proto = Collection && Collection.prototype;
- var key;
- if (proto) {
- if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);
- if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
- Iterators[NAME] = ArrayValues;
- if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);
- }
- }
- /***/ }),
- /***/ "aebd":
- /***/ (function(module, exports) {
- module.exports = function (bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value: value
- };
- };
- /***/ }),
- /***/ "b0c5":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var regexpExec = __webpack_require__("520a");
- __webpack_require__("5ca1")({
- target: 'RegExp',
- proto: true,
- forced: regexpExec !== /./.exec
- }, {
- exec: regexpExec
- });
- /***/ }),
- /***/ "b447":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.15 ToLength
- var toInteger = __webpack_require__("3a38");
- var min = Math.min;
- module.exports = function (it) {
- return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
- };
- /***/ }),
- /***/ "b8e3":
- /***/ (function(module, exports) {
- module.exports = true;
- /***/ }),
- /***/ "be13":
- /***/ (function(module, exports) {
- // 7.2.1 RequireObjectCoercible(argument)
- module.exports = function (it) {
- if (it == undefined) throw TypeError("Can't call method on " + it);
- return it;
- };
- /***/ }),
- /***/ "bf0b":
- /***/ (function(module, exports, __webpack_require__) {
- var pIE = __webpack_require__("355d");
- var createDesc = __webpack_require__("aebd");
- var toIObject = __webpack_require__("36c3");
- var toPrimitive = __webpack_require__("1bc3");
- var has = __webpack_require__("07e3");
- var IE8_DOM_DEFINE = __webpack_require__("794b");
- var gOPD = Object.getOwnPropertyDescriptor;
- exports.f = __webpack_require__("8e60") ? gOPD : function getOwnPropertyDescriptor(O, P) {
- O = toIObject(O);
- P = toPrimitive(P, true);
- if (IE8_DOM_DEFINE) try {
- return gOPD(O, P);
- } catch (e) { /* empty */ }
- if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
- };
- /***/ }),
- /***/ "bf90":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
- var toIObject = __webpack_require__("36c3");
- var $getOwnPropertyDescriptor = __webpack_require__("bf0b").f;
- __webpack_require__("ce7e")('getOwnPropertyDescriptor', function () {
- return function getOwnPropertyDescriptor(it, key) {
- return $getOwnPropertyDescriptor(toIObject(it), key);
- };
- });
- /***/ }),
- /***/ "c366":
- /***/ (function(module, exports, __webpack_require__) {
- // false -> Array#indexOf
- // true -> Array#includes
- var toIObject = __webpack_require__("6821");
- var toLength = __webpack_require__("9def");
- var toAbsoluteIndex = __webpack_require__("77f1");
- module.exports = function (IS_INCLUDES) {
- return function ($this, el, fromIndex) {
- var O = toIObject($this);
- var length = toLength(O.length);
- var index = toAbsoluteIndex(fromIndex, length);
- var value;
- // Array#includes uses SameValueZero equality algorithm
- // eslint-disable-next-line no-self-compare
- if (IS_INCLUDES && el != el) while (length > index) {
- value = O[index++];
- // eslint-disable-next-line no-self-compare
- if (value != value) return true;
- // Array#indexOf ignores holes, Array#includes - not
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
- if (O[index] === el) return IS_INCLUDES || index || 0;
- } return !IS_INCLUDES && -1;
- };
- };
- /***/ }),
- /***/ "c3a1":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.14 / 15.2.3.14 Object.keys(O)
- var $keys = __webpack_require__("e6f3");
- var enumBugKeys = __webpack_require__("1691");
- module.exports = Object.keys || function keys(O) {
- return $keys(O, enumBugKeys);
- };
- /***/ }),
- /***/ "c5f6":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var global = __webpack_require__("7726");
- var has = __webpack_require__("69a8");
- var cof = __webpack_require__("2d95");
- var inheritIfRequired = __webpack_require__("5dbc");
- var toPrimitive = __webpack_require__("6a99");
- var fails = __webpack_require__("79e5");
- var gOPN = __webpack_require__("9093").f;
- var gOPD = __webpack_require__("11e9").f;
- var dP = __webpack_require__("86cc").f;
- var $trim = __webpack_require__("aa77").trim;
- var NUMBER = 'Number';
- var $Number = global[NUMBER];
- var Base = $Number;
- var proto = $Number.prototype;
- // Opera ~12 has broken Object#toString
- var BROKEN_COF = cof(__webpack_require__("2aeb")(proto)) == NUMBER;
- var TRIM = 'trim' in String.prototype;
- // 7.1.3 ToNumber(argument)
- var toNumber = function (argument) {
- var it = toPrimitive(argument, false);
- if (typeof it == 'string' && it.length > 2) {
- it = TRIM ? it.trim() : $trim(it, 3);
- var first = it.charCodeAt(0);
- var third, radix, maxCode;
- if (first === 43 || first === 45) {
- third = it.charCodeAt(2);
- if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
- } else if (first === 48) {
- switch (it.charCodeAt(1)) {
- case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i
- case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i
- default: return +it;
- }
- for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {
- code = digits.charCodeAt(i);
- // parseInt parses a string to a first unavailable symbol
- // but ToNumber should return NaN if a string contains unavailable symbols
- if (code < 48 || code > maxCode) return NaN;
- } return parseInt(digits, radix);
- }
- } return +it;
- };
- if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {
- $Number = function Number(value) {
- var it = arguments.length < 1 ? 0 : value;
- var that = this;
- return that instanceof $Number
- // check on 1..constructor(foo) case
- && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)
- ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);
- };
- for (var keys = __webpack_require__("9e1e") ? gOPN(Base) : (
- // ES3:
- 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
- // ES6 (in case, if modules with ES6 Number statics required before):
- 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
- 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
- ).split(','), j = 0, key; keys.length > j; j++) {
- if (has(Base, key = keys[j]) && !has($Number, key)) {
- dP($Number, key, gOPD(Base, key));
- }
- }
- $Number.prototype = proto;
- proto.constructor = $Number;
- __webpack_require__("2aba")(global, NUMBER, $Number);
- }
- /***/ }),
- /***/ "c69a":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(function () {
- return Object.defineProperty(__webpack_require__("230e")('div'), 'a', { get: function () { return 7; } }).a != 7;
- });
- /***/ }),
- /***/ "ca5a":
- /***/ (function(module, exports) {
- var id = 0;
- var px = Math.random();
- module.exports = function (key) {
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
- };
- /***/ }),
- /***/ "cadf":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var addToUnscopables = __webpack_require__("9c6c");
- var step = __webpack_require__("d53b");
- var Iterators = __webpack_require__("84f2");
- var toIObject = __webpack_require__("6821");
- // 22.1.3.4 Array.prototype.entries()
- // 22.1.3.13 Array.prototype.keys()
- // 22.1.3.29 Array.prototype.values()
- // 22.1.3.30 Array.prototype[@@iterator]()
- module.exports = __webpack_require__("01f9")(Array, 'Array', function (iterated, kind) {
- this._t = toIObject(iterated); // target
- this._i = 0; // next index
- this._k = kind; // kind
- // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
- }, function () {
- var O = this._t;
- var kind = this._k;
- var index = this._i++;
- if (!O || index >= O.length) {
- this._t = undefined;
- return step(1);
- }
- if (kind == 'keys') return step(0, index);
- if (kind == 'values') return step(0, O[index]);
- return step(0, [index, O[index]]);
- }, 'values');
- // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
- Iterators.Arguments = Iterators.Array;
- addToUnscopables('keys');
- addToUnscopables('values');
- addToUnscopables('entries');
- /***/ }),
- /***/ "cb7c":
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__("d3f4");
- module.exports = function (it) {
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
- return it;
- };
- /***/ }),
- /***/ "ccb9":
- /***/ (function(module, exports, __webpack_require__) {
- exports.f = __webpack_require__("5168");
- /***/ }),
- /***/ "ce10":
- /***/ (function(module, exports, __webpack_require__) {
- var has = __webpack_require__("69a8");
- var toIObject = __webpack_require__("6821");
- var arrayIndexOf = __webpack_require__("c366")(false);
- var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
- module.exports = function (object, names) {
- var O = toIObject(object);
- var i = 0;
- var result = [];
- var key;
- for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
- // Don't enum bug & hidden keys
- while (names.length > i) if (has(O, key = names[i++])) {
- ~arrayIndexOf(result, key) || result.push(key);
- }
- return result;
- };
- /***/ }),
- /***/ "ce7e":
- /***/ (function(module, exports, __webpack_require__) {
- // most Object methods by ES6 should accept primitives
- var $export = __webpack_require__("63b6");
- var core = __webpack_require__("584a");
- var fails = __webpack_require__("294c");
- module.exports = function (KEY, exec) {
- var fn = (core.Object || {})[KEY] || Object[KEY];
- var exp = {};
- exp[KEY] = exec(fn);
- $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
- };
- /***/ }),
- /***/ "d3f4":
- /***/ (function(module, exports) {
- module.exports = function (it) {
- return typeof it === 'object' ? it !== null : typeof it === 'function';
- };
- /***/ }),
- /***/ "d53b":
- /***/ (function(module, exports) {
- module.exports = function (done, value) {
- return { value: value, done: !!done };
- };
- /***/ }),
- /***/ "d812":
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4f6b");
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
- /* unused harmony reexport * */
- /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /***/ "d864":
- /***/ (function(module, exports, __webpack_require__) {
- // optional / simple context binding
- var aFunction = __webpack_require__("79aa");
- module.exports = function (fn, that, length) {
- aFunction(fn);
- if (that === undefined) return fn;
- switch (length) {
- case 1: return function (a) {
- return fn.call(that, a);
- };
- case 2: return function (a, b) {
- return fn.call(that, a, b);
- };
- case 3: return function (a, b, c) {
- return fn.call(that, a, b, c);
- };
- }
- return function (/* ...args */) {
- return fn.apply(that, arguments);
- };
- };
- /***/ }),
- /***/ "d8e8":
- /***/ (function(module, exports) {
- module.exports = function (it) {
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
- return it;
- };
- /***/ }),
- /***/ "d9f6":
- /***/ (function(module, exports, __webpack_require__) {
- var anObject = __webpack_require__("e4ae");
- var IE8_DOM_DEFINE = __webpack_require__("794b");
- var toPrimitive = __webpack_require__("1bc3");
- var dP = Object.defineProperty;
- exports.f = __webpack_require__("8e60") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
- anObject(O);
- P = toPrimitive(P, true);
- anObject(Attributes);
- if (IE8_DOM_DEFINE) try {
- return dP(O, P, Attributes);
- } catch (e) { /* empty */ }
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
- if ('value' in Attributes) O[P] = Attributes.value;
- return O;
- };
- /***/ }),
- /***/ "dbdb":
- /***/ (function(module, exports, __webpack_require__) {
- var core = __webpack_require__("584a");
- var global = __webpack_require__("e53d");
- var SHARED = '__core-js_shared__';
- var store = global[SHARED] || (global[SHARED] = {});
- (module.exports = function (key, value) {
- return store[key] || (store[key] = value !== undefined ? value : {});
- })('versions', []).push({
- version: core.version,
- mode: __webpack_require__("b8e3") ? 'pure' : 'global',
- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
- });
- /***/ }),
- /***/ "e11e":
- /***/ (function(module, exports) {
- // IE 8- don't enum bug keys
- module.exports = (
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
- ).split(',');
- /***/ }),
- /***/ "e265":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__("ed33");
- /***/ }),
- /***/ "e4ae":
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__("f772");
- module.exports = function (it) {
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
- return it;
- };
- /***/ }),
- /***/ "e53d":
- /***/ (function(module, exports) {
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
- var global = module.exports = typeof window != 'undefined' && window.Math == Math
- ? window : typeof self != 'undefined' && self.Math == Math ? self
- // eslint-disable-next-line no-new-func
- : Function('return this')();
- if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
- /***/ }),
- /***/ "e6f3":
- /***/ (function(module, exports, __webpack_require__) {
- var has = __webpack_require__("07e3");
- var toIObject = __webpack_require__("36c3");
- var arrayIndexOf = __webpack_require__("5b4e")(false);
- var IE_PROTO = __webpack_require__("5559")('IE_PROTO');
- module.exports = function (object, names) {
- var O = toIObject(object);
- var i = 0;
- var result = [];
- var key;
- for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
- // Don't enum bug & hidden keys
- while (names.length > i) if (has(O, key = names[i++])) {
- ~arrayIndexOf(result, key) || result.push(key);
- }
- return result;
- };
- /***/ }),
- /***/ "ebd6":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.3.20 SpeciesConstructor(O, defaultConstructor)
- var anObject = __webpack_require__("cb7c");
- var aFunction = __webpack_require__("d8e8");
- var SPECIES = __webpack_require__("2b4c")('species');
- module.exports = function (O, D) {
- var C = anObject(O).constructor;
- var S;
- return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
- };
- /***/ }),
- /***/ "ebfd":
- /***/ (function(module, exports, __webpack_require__) {
- var META = __webpack_require__("62a0")('meta');
- var isObject = __webpack_require__("f772");
- var has = __webpack_require__("07e3");
- var setDesc = __webpack_require__("d9f6").f;
- var id = 0;
- var isExtensible = Object.isExtensible || function () {
- return true;
- };
- var FREEZE = !__webpack_require__("294c")(function () {
- return isExtensible(Object.preventExtensions({}));
- });
- var setMeta = function (it) {
- setDesc(it, META, { value: {
- i: 'O' + ++id, // object ID
- w: {} // weak collections IDs
- } });
- };
- var fastKey = function (it, create) {
- // return primitive with prefix
- if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
- if (!has(it, META)) {
- // can't set metadata to uncaught frozen object
- if (!isExtensible(it)) return 'F';
- // not necessary to add metadata
- if (!create) return 'E';
- // add missing metadata
- setMeta(it);
- // return object ID
- } return it[META].i;
- };
- var getWeak = function (it, create) {
- if (!has(it, META)) {
- // can't set metadata to uncaught frozen object
- if (!isExtensible(it)) return true;
- // not necessary to add metadata
- if (!create) return false;
- // add missing metadata
- setMeta(it);
- // return hash weak collections IDs
- } return it[META].w;
- };
- // add metadata on freeze-family methods calling
- var onFreeze = function (it) {
- if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
- return it;
- };
- var meta = module.exports = {
- KEY: META,
- NEED: false,
- fastKey: fastKey,
- getWeak: getWeak,
- onFreeze: onFreeze
- };
- /***/ }),
- /***/ "ed33":
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__("014b");
- module.exports = __webpack_require__("584a").Object.getOwnPropertySymbols;
- /***/ }),
- /***/ "f6fd":
- /***/ (function(module, exports) {
- // document.currentScript polyfill by Adam Miller
- // MIT license
- (function(document){
- var currentScript = "currentScript",
- scripts = document.getElementsByTagName('script'); // Live NodeList collection
- // If browser needs currentScript polyfill, add get currentScript() to the document object
- if (!(currentScript in document)) {
- Object.defineProperty(document, currentScript, {
- get: function(){
- // IE 6-10 supports script readyState
- // IE 10+ support stack trace
- try { throw new Error(); }
- catch (err) {
- // Find the second match for the "at" string to get file src url from stack.
- // Specifically works with the format of stack traces in IE.
- var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1];
- // For all scripts on the page, if src matches or if ready state is interactive, return the script tag
- for(i in scripts){
- if(scripts[i].src == res || scripts[i].readyState == "interactive"){
- return scripts[i];
- }
- }
- // If no match, return null
- return null;
- }
- }
- });
- }
- })(document);
- /***/ }),
- /***/ "f772":
- /***/ (function(module, exports) {
- module.exports = function (it) {
- return typeof it === 'object' ? it !== null : typeof it === 'function';
- };
- /***/ }),
- /***/ "fa5b":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__("5537")('native-function-to-string', Function.toString);
- /***/ }),
- /***/ "fab2":
- /***/ (function(module, exports, __webpack_require__) {
- var document = __webpack_require__("7726").document;
- module.exports = document && document.documentElement;
- /***/ }),
- /***/ "fb15":
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
- // This file is imported into lib/wc client bundles.
- if (typeof window !== 'undefined') {
- if (true) {
- __webpack_require__("f6fd")
- }
- var setPublicPath_i
- if ((setPublicPath_i = window.document.currentScript) && (setPublicPath_i = setPublicPath_i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) {
- __webpack_require__.p = setPublicPath_i[1] // eslint-disable-line
- }
- }
- // Indicate to webpack that this file can be concatenated
- /* harmony default export */ var setPublicPath = (null);
- // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js
- var get_own_property_descriptor = __webpack_require__("268f");
- var get_own_property_descriptor_default = /*#__PURE__*/__webpack_require__.n(get_own_property_descriptor);
- // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-symbols.js
- var get_own_property_symbols = __webpack_require__("e265");
- var get_own_property_symbols_default = /*#__PURE__*/__webpack_require__.n(get_own_property_symbols);
- // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/keys.js
- var keys = __webpack_require__("a4bb");
- var keys_default = /*#__PURE__*/__webpack_require__.n(keys);
- // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/define-property.js
- var define_property = __webpack_require__("85f2");
- var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property);
- // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/defineProperty.js
- function _defineProperty(obj, key, value) {
- if (key in obj) {
- define_property_default()(obj, key, {
- value: value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
- return obj;
- }
- // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/objectSpread.js
- function _objectSpread(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i] != null ? arguments[i] : {};
- var ownKeys = keys_default()(source);
- if (typeof get_own_property_symbols_default.a === 'function') {
- ownKeys = ownKeys.concat(get_own_property_symbols_default()(source).filter(function (sym) {
- return get_own_property_descriptor_default()(source, sym).enumerable;
- }));
- }
- ownKeys.forEach(function (key) {
- _defineProperty(target, key, source[key]);
- });
- }
- return target;
- }
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0fa0e932-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/grid.vue?vue&type=template&id=07769ba6&
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"alt-grid-container",class:_vm.operatorClass,style:(_vm.containerStyle)},[_c('div',{staticClass:"alt-grid-item-drag-placeholder",class:_vm.placeholderClass,style:(_vm.getCardStyleForPlaceholder(_vm.placeholder))}),_vm._l((_vm.innerLayout),function(item,index){return _c('div',{key:item._id,ref:"cards",refInFor:true,staticClass:"alt-grid-item",class:[_vm.canDragClass(item.isDraggable), _vm.gridItemClass, item.gridItemClass],style:(item._alt_style),attrs:{"dg-id":item._id}},[(_vm.getFirstSetValue(item.isShowOriginCloseBtn, _vm.isShowOriginCloseBtn, true))?_c('button',{class:[_vm.closeHandlerClass, item.closeHandlerClass],on:{"click":function($event){return _vm.closeWidget(item._id)}}},[_vm._v("关闭")]):_vm._e(),_c(item.type,{ref:item._id,refInFor:true,tag:"component",attrs:{"alt-card-props":_vm.getPropsForInject(index, item)}}),(_vm.getFirstSetValue(item.isResizable, _vm.isResizable, true))?_c('span',{staticClass:"alt-grid-item-resize-handler",class:[_vm.resizeHandlerClass, item.resizeHandlerClass]}):_vm._e()],1)}),_c('div',{staticClass:"mask"})],2)}
- var staticRenderFns = []
- // CONCATENATED MODULE: ./src/components/grid.vue?vue&type=template&id=07769ba6&
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.match.js
- var es6_regexp_match = __webpack_require__("4917");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.search.js
- var es6_regexp_search = __webpack_require__("386d");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js
- var es6_array_iterator = __webpack_require__("cadf");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js
- var es6_object_keys = __webpack_require__("456d");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.replace.js
- var es6_regexp_replace = __webpack_require__("a481");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js
- var web_dom_iterable = __webpack_require__("ac6a");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.split.js
- var es6_regexp_split = __webpack_require__("28a5");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.constructor.js
- var es6_regexp_constructor = __webpack_require__("3b2b");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js
- var es6_number_constructor = __webpack_require__("c5f6");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.is-integer.js
- var es6_number_is_integer = __webpack_require__("7cdf");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.to-string.js
- var es6_regexp_to_string = __webpack_require__("6b54");
- // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
- var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
- var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
- // CONCATENATED MODULE: ./src/utils/util.js
- // 深拷贝
- function deepCopy() {
- return JSON.parse(JSON.stringify(arguments.length <= 0 ? undefined : arguments[0]));
- } // 获取变量类型
- function getVariType(vari) {
- return Object.prototype.toString.call(vari).slice(8, -1).toLowerCase();
- } // 判断值是否为 undefined 或 null
- function isNil(val) {
- return val === undefined || val === null;
- } // 获取vue对象
- function getVue() {
- var temp = external_commonjs_vue_commonjs2_vue_root_Vue_default.a;
- if (temp) return temp;
- if (window.Vue) return window.Vue;
- return null;
- } // 判断是否为整数
- function isInteger(num) {
- if (Number.isInteger) return Number.isInteger(num);
- var s = num + '';
- return !~s.indexOf('.');
- } // 判断是否含有某个class
- function hasClass(dom, className) {
- var reg = new RegExp('(\\s|^)' + className + '(\\s|$)');
- var domClassName = dom.className;
- return reg.test(domClassName); // return ~domClassName.indexOf(className);
- } // 从event.path中遍历查找包含某个class的元素
- function findParentThoughEvtPath(evtPath, parentClass, stopClass) {
- var dom = null;
- for (var i = 0, l = evtPath.length; i < l; i++) {
- dom = evtPath[i];
- if (hasClass(dom, parentClass)) {
- return dom;
- }
- if (hasClass(dom, stopClass)) {
- return null;
- }
- }
- return null;
- }
- function util_getFirstSetValue() {
- var args = arguments;
- var l = args.length;
- for (var i = 0; i < l; i++) {
- if (!isNil(args[i])) return args[i];
- }
- return args[l - 1];
- }
- function forEach(arr, callBack) {
- if (!arr || !arr.length) return;
- for (var i = 0, j = arr.length; i < j; i++) {
- callBack && callBack(arr[i], i);
- }
- }
- function forEachValue(obj, fn) {
- Object.keys(obj).forEach(function (key) {
- return fn(obj[key], key);
- });
- }
- function getIndexOfArrayByAttr(arr, value, attr) {
- for (var i = 0; i < arr.length; i++) {
- if (attr) {
- if (arr[i][attr] === value) return i;
- } else {
- if (arr[i] === value) return i;
- }
- }
- return -1;
- } // 获取event.path的polyfill
- function getEventPath(event) {
- var target = event.target || null;
- var pathArr = [target];
- if (!target || !target.parentElement) {
- return [];
- }
- while (target.parentElement) {
- target = target.parentElement;
- pathArr.unshift(target);
- }
- return pathArr;
- } // 标准化event对象
- function normalizeEvent(event) {
- var evt = event;
- if (!evt.path) {
- evt.path = evt.composedPath && evt.composedPath() || getEventPath(event);
- }
- return evt;
- }
- function isDragIgnoreFrom(target, currentCard, ignoreFrom) {
- var ignoreElementList = currentCard.querySelectorAll(ignoreFrom);
- for (var i = 0, j = ignoreElementList.length; i < j; i++) {
- if (ignoreElementList[i] === target) {
- return true;
- }
- }
- return false;
- }
- function getUniqueID(len, radix) {
- var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
- var uuid = [],
- i;
- radix = radix || chars.length;
- if (len) {
- // Compact form
- for (i = 0; i < len; i++) {
- uuid[i] = chars[0 | Math.random() * radix];
- }
- } else {
- // 参考rfc4122,https://tools.ietf.org/html/rfc4122
- var r;
- uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
- uuid[14] = '4';
- for (i = 0; i < 36; i++) {
- if (!uuid[i]) {
- r = 0 | Math.random() * 16;
- uuid[i] = chars[i == 19 ? r & 0x3 | 0x8 : r];
- }
- }
- }
- return uuid.join('');
- }
- // CONCATENATED MODULE: ./src/utils/device.js
- var platform = navigator.platform;
- var isMac = ['Mac68K', 'MacPPC', 'Macintosh', 'MacIntel'].indexOf(platform) > -1;
- var device = {
- isMac: isMac
- };
- /* harmony default export */ var utils_device = (device);
- // CONCATENATED MODULE: ./src/utils/watch-box-size.js
- function watchBoxSizeChange(el, handler) {
- if (!(el instanceof HTMLElement)) {
- throw new TypeError('第一个参数必须是一个html元素');
- }
- if (/^(area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr|script|style|textarea|title)$/i.test(el.tagName)) {
- throw new TypeError('不支持当前元素类型,可以尝试使用div');
- }
- if (typeof handler !== 'function') {
- throw new TypeError('第二个参数必须是一个函数');
- }
- this.el = el;
- this.handler = handler;
- this.hadInitScrollListener = false;
- this.checkHidden();
- }
- watchBoxSizeChange.prototype.checkHidden = function checkHidden() {
- var _this = this;
- requestAnimationFrame(function () {
- var width = _this.el.offsetWidth;
- var height = _this.el.offsetHeight;
- if (width === 0 && height === 0) {
- _this.checkHidden();
- } else {
- _this.handler();
- _this.init();
- _this.hadInitScrollListener = true;
- }
- });
- };
- watchBoxSizeChange.prototype.init = function init() {
- // 最后一次变动的宽高
- this.lastWidth = this.el.offsetWidth || 1;
- this.lastHeight = this.el.offsetHeight || 1; // 最大宽高
- this.maxWidth = 10000 * this.lastWidth;
- this.maxHeight = 10000 * this.lastHeight; // 变动宽高
- this.newWidth = 0;
- this.newHeight = 0;
- this.expand = document.createElement('div');
- this.expand.style.cssText = 'position:absolute;top:0;bottom:0;left:0;right:0;z-index=-10000;overflow:hidden;visibility:hidden;';
- this.shrink = this.expand.cloneNode(false);
- var expandChild = document.createElement('div');
- expandChild.style.cssText = 'transition:0s;animation:none;';
- var shrinkChild = expandChild.cloneNode(false);
- expandChild.style.width = this.maxWidth + 'px';
- expandChild.style.height = this.maxHeight + 'px';
- shrinkChild.style.width = '250%';
- shrinkChild.style.height = '250%';
- this.expand.appendChild(expandChild);
- this.shrink.appendChild(shrinkChild);
- this.el.appendChild(this.expand);
- this.el.appendChild(this.shrink);
- if (this.expand.offsetParent !== this.el) {
- this.el.style.position = 'relative';
- }
- this.expand.scrollTop = this.shrink.scrollTop = this.maxHeight;
- this.expand.scrollLeft = this.shrink.scrollLeft = this.maxWidth;
- this.bindOnScroll = null;
- this.addListener();
- };
- watchBoxSizeChange.prototype.onScroll = function onScroll() {
- this.newWidth = this.el.offsetWidth || 1;
- this.newHeight = this.el.offsetHeight || 1;
- if (this.newWidth !== this.lastWidth || this.newHeight !== this.lastHeight) {
- requestAnimationFrame(this.onResize.bind(this));
- }
- this.expand.scrollTop = this.shrink.scrollTop = this.maxHeight;
- this.expand.scrollLeft = this.shrink.scrollLeft = this.maxWidth;
- };
- watchBoxSizeChange.prototype.onResize = function onResize() {
- this.lastWidth = this.newWidth;
- this.lastHeight = this.newHeight;
- this.handler(this.lastWidth, this.lastHeight);
- };
- watchBoxSizeChange.prototype.addListener = function addListener() {
- this.bindOnScroll = this.onScroll.bind(this);
- this.expand.addEventListener('scroll', this.bindOnScroll, false);
- this.shrink.addEventListener('scroll', this.bindOnScroll, false);
- };
- watchBoxSizeChange.prototype.removeListener = function removeListener() {
- this.expand.removeEventListener('scroll', this.bindOnScroll, false);
- this.shrink.removeEventListener('scroll', this.bindOnScroll, false);
- };
- watchBoxSizeChange.prototype.destroy = function destroy() {
- if (this.hadInitScrollListener) {
- this.removeListener();
- this.el.removeChild(this.expand);
- this.el.removeChild(this.shrink);
- }
- };
- /* harmony default export */ var watch_box_size = (watchBoxSizeChange);
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.fill.js
- var es6_array_fill = __webpack_require__("6c7b");
- // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/classCallCheck.js
- function _classCallCheck(instance, Constructor) {
- if (!(instance instanceof Constructor)) {
- throw new TypeError("Cannot call a class as a function");
- }
- }
- // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
- function _defineProperties(target, props) {
- for (var i = 0; i < props.length; i++) {
- var descriptor = props[i];
- descriptor.enumerable = descriptor.enumerable || false;
- descriptor.configurable = true;
- if ("value" in descriptor) descriptor.writable = true;
- define_property_default()(target, descriptor.key, descriptor);
- }
- }
- function _createClass(Constructor, protoProps, staticProps) {
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
- if (staticProps) _defineProperties(Constructor, staticProps);
- return Constructor;
- }
- // CONCATENATED MODULE: ./src/utils/rect.js
- var rect_Rect =
- /*#__PURE__*/
- function () {
- function Rect() {
- var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var coors = arguments.length > 1 ? arguments[1] : undefined;
- _classCallCheck(this, Rect);
- this.appendUniqueId(info);
- this.x = this.isNotNegativeNumber(info.x) ? info.x : 0;
- this.y = this.isNotNegativeNumber(info.y) ? info.y : 0;
- this.w = this.isPositiveNumber(info.w) ? info.w : 1;
- this.h = this.isPositiveNumber(info.h) ? info.h : 1;
- this.id = info._id;
- this.rawInfo = info;
- this.coors = coors;
- }
- _createClass(Rect, [{
- key: "setPos",
- value: function setPos(pos) {
- var attrs = ['x', 'y', 'w', 'h'];
- var attrName;
- var tempValue;
- for (var i = 0, j = attrs.length; i < j; i++) {
- attrName = attrs[i];
- tempValue = pos[attrName];
- if (!isNil(tempValue)) {
- this[attrName] = tempValue;
- this.rawInfo[attrName] = tempValue;
- }
- }
- }
- }, {
- key: "moveTo",
- value: function moveTo(x, y) {
- if (this.coors.maxWidth && x + this.w > this.coors.maxWidth) {
- x = this.coors.maxWidth - this.w;
- }
- if (x < 0) x = 0;
- if (y < 0) y = 0;
- this.coors._moveTo(this.id, {
- x: x,
- y: y
- });
- }
- }, {
- key: "resizeTo",
- value: function resizeTo(w, h) {
- if (this.coors.maxWidth && w + this.x > this.coors.maxWidth) {
- w = this.coors.maxWidth - this.x;
- }
- if (w < 1) w = 1;
- if (h < 1) h = 1;
- this.coors._resizeTo(this.id, {
- w: w,
- h: h
- });
- }
- }, {
- key: "moveDown",
- value: function moveDown(rows) {
- this.coors._moveDown(this.id, rows);
- }
- }, {
- key: "fill",
- value: function fill(value) {
- this.coors.coorsFillRect(this.x, this.y, this.w, this.h, value);
- } // 判断是否是正整数
- }, {
- key: "isPositiveNumber",
- value: function isPositiveNumber(num) {
- if (isNil(num)) return false;
- return num > 0;
- } // 判断是否为非负数 也就是 大于等于0
- }, {
- key: "isNotNegativeNumber",
- value: function isNotNegativeNumber(num) {
- if (isNil(num)) return false;
- return num >= 0;
- }
- }, {
- key: "appendUniqueId",
- value: function appendUniqueId(item) {
- if (!item._id) {
- item._id = this.getUniqueId();
- }
- }
- }, {
- key: "getUniqueId",
- value: function getUniqueId(len, radix) {
- var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
- var uuid = [],
- i;
- radix = radix || chars.length;
- if (len) {
- // Compact form
- for (i = 0; i < len; i++) {
- uuid[i] = chars[0 | Math.random() * radix];
- }
- } else {
- // 参考rfc4122,https://tools.ietf.org/html/rfc4122
- var r;
- uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
- uuid[14] = '4';
- for (i = 0; i < 36; i++) {
- if (!uuid[i]) {
- r = 0 | Math.random() * 16;
- uuid[i] = chars[i == 19 ? r & 0x3 | 0x8 : r];
- }
- }
- }
- return uuid.join('');
- }
- }]);
- return Rect;
- }();
- /* harmony default export */ var utils_rect = (rect_Rect);
- // CONCATENATED MODULE: ./src/utils/coordinate.js
- var coordinate_Coordinate =
- /*#__PURE__*/
- function () {
- function Coordinate() {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- _classCallCheck(this, Coordinate);
- this.coors = [];
- this.coorItemsMap = {};
- this.maxWidth = options.maxWidth;
- }
- _createClass(Coordinate, [{
- key: "add",
- value: function add(info) {
- /**
- * 1. 判断位置参数合法性,不合法则自动分配
- * 2. 添加到坐标系
- * 3. 返回 id
- */
- var rectItem = new utils_rect(info, this);
- this.distributeRectPosition(rectItem);
- this.coorsFillRect(rectItem.x, rectItem.y, rectItem.w, rectItem.h, rectItem);
- this.coorItemsMap[rectItem.id] = rectItem;
- return rectItem;
- }
- }, {
- key: "coorsFillRect",
- value: function coorsFillRect(x, y, w, h, value) {
- var arr = this.coors;
- var row;
- for (var i = y; i < y + h; i++) {
- row = arr[i];
- if (isNil(row)) {
- arr[i] = [];
- }
- for (var j = x; j < x + w; j++) {
- arr[i][j] = value;
- }
- }
- }
- }, {
- key: "coorsGetRectItems",
- value: function coorsGetRectItems(x, y, w, h) {
- var itemsList = [];
- var row, cell;
- for (var i = y; i < y + h; i++) {
- row = this.coors[i] || [];
- for (var j = x; j < x + w; j++) {
- cell = row[j];
- if (!isNil(cell)) {
- itemsList.push(cell);
- }
- }
- }
- return itemsList;
- }
- }, {
- key: "distributeRectPosition",
- value: function distributeRectPosition(rectInstance) {
- if (!this.checkRectPositionIsLegal(rectInstance, this.coors)) {
- var legalPos = this.getLegalPosition(rectInstance, this.coorItemsMap);
- rectInstance.setPos(legalPos);
- }
- }
- }, {
- key: "getLegalPosition",
- value: function getLegalPosition(rectInstance, itemsMap) {
- var x = rectInstance.x;
- var y = rectInstance.y;
- var w = rectInstance.w;
- var h = rectInstance.h;
- var colsHeight = [];
- var tempItem = null;
- var tempY = 0;
- forEach(Object.keys(itemsMap), function (key) {
- tempItem = itemsMap[key];
- tempY = tempItem.y + tempItem.h;
- for (var m = tempItem.x; m < tempItem.x + tempItem.w; m++) {
- if (tempY > (colsHeight[m] || 0)) {
- colsHeight[m] = tempY;
- }
- }
- });
- var max = this.maxWidth || colsHeight.length + w;
- for (var i = 0; i < max; i++) {
- if (isNil(colsHeight[i])) {
- colsHeight[i] = 0;
- }
- }
- var index = this.getMinPeek(colsHeight, w);
- x = ~index ? index : 0;
- y = colsHeight[x] || 0;
- return {
- x: x,
- y: y,
- w: w,
- h: h
- };
- }
- }, {
- key: "getMinPeek",
- value: function getMinPeek(arr, w) {
- if (w === 1) {
- var minVal = Math.min.apply(null, arr);
- return arr.indexOf(minVal);
- }
- var index = -1;
- var value = Infinity;
- for (var i = 0; i < arr.length - w + 1; i++) {
- var flag = true;
- var item = arr[i];
- for (var j = i + 1; j < i + w; j++) {
- if (item < arr[j]) {
- flag = false;
- break;
- }
- }
- if (flag && item < value) {
- value = item;
- index = i;
- }
- }
- return index;
- } // 检查位置是否合法
- }, {
- key: "checkRectPositionIsLegal",
- value: function checkRectPositionIsLegal(item, coors) {
- var x = item.x;
- var y = item.y;
- var w = item.w;
- var h = item.h;
- for (var i = y; i < y + h; i++) {
- if (isNil(coors[i])) continue;
- for (var j = x; j < x + w; j++) {
- if (!isNil(coors[i][j])) {
- return false;
- }
- }
- }
- return true;
- }
- }, {
- key: "_moveTo",
- value: function _moveTo(id) {
- var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- /**
- * 1. 找到对应的id
- * 2. 判断移动的
- */
- if (isNil(pos.x) || isNil(pos.y)) return;
- var rectItem = this.coorItemsMap[id];
- rectItem.fill(null);
- var targetRect = {
- x: pos.x,
- y: pos.y,
- w: rectItem.w,
- h: rectItem.h
- };
- var targetAreaRectItems = this.coorsGetFirstItemForColsInRect(targetRect);
- var targetBottomLine = {
- x: targetRect.x,
- y: targetRect.y + targetRect.h,
- w: targetRect.w
- };
- forEach(targetAreaRectItems, function (item) {
- item.moveDown(targetBottomLine.y - item.y);
- });
- rectItem.setPos(targetRect);
- this.coorsFillRect(targetRect.x, targetRect.y, targetRect.w, targetRect.h, rectItem);
- this._moveUpAll();
- }
- }, {
- key: "_resizeTo",
- value: function _resizeTo(id) {
- var rect = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- if (isNil(rect.w) || isNil(rect.h)) return;
- var rectItem = this.coorItemsMap[id];
- rectItem.fill(null);
- var targetRect = {
- x: rectItem.x,
- y: rectItem.y,
- w: rect.w,
- h: rect.h
- };
- var targetAreaRectItems = this.coorsGetFirstItemForColsInRect(targetRect);
- var targetBottomLine = {
- x: targetRect.x,
- y: targetRect.y + targetRect.h,
- w: targetRect.w
- };
- forEach(targetAreaRectItems, function (item) {
- item.moveDown(targetBottomLine.y - item.y);
- });
- rectItem.setPos(targetRect);
- rectItem.fill(rectItem); // this.coorsFillRect(targetRect.x, targetRect.y, targetRect.w, targetRect.h, rectItem);
- this._moveUpAll();
- }
- }, {
- key: "_moveDown",
- value: function _moveDown(id, rows) {
- var rectItem = this.coorItemsMap[id];
- rectItem.fill(null);
- var belowItems = this.coorsGetFirstItemForColsInRect({
- x: rectItem.x,
- y: rectItem.y + rectItem.h,
- w: rectItem.w,
- h: rectItem.h + rows
- });
- var targetBottomLine = {
- x: rectItem.x,
- y: rectItem.y + rectItem.h + rows,
- w: rectItem.w
- };
- forEach(belowItems, function (item) {
- item.moveDown(targetBottomLine.y - item.y);
- });
- rectItem.setPos({
- y: rectItem.y + rows
- });
- rectItem.fill(rectItem);
- }
- }, {
- key: "coorsGetFirstItemForColsInRect",
- value: function coorsGetFirstItemForColsInRect(rect) {
- var x = rect.x,
- y = rect.y,
- w = rect.w,
- h = rect.h;
- var itemsList = [];
- var mapList = [];
- var row, cell;
- for (var i = y; i < y + h; i++) {
- row = this.coors[i] || [];
- for (var j = x; j < x + w; j++) {
- cell = row[j];
- if (!isNil(cell) && !mapList[j] && this.checkLineIsLegal(cell, mapList)) {
- mapList[j] = cell;
- if (!~itemsList.indexOf(cell)) {
- itemsList.push(cell);
- }
- }
- }
- if (itemsList.length >= w) break;
- }
- return itemsList;
- }
- }, {
- key: "checkLineIsLegal",
- value: function checkLineIsLegal(cell, line) {
- for (var i = cell.x; i < cell.x + cell.w; i++) {
- if (!isNil(line[i]) && cell !== line[i]) {
- return false;
- }
- }
- return true;
- }
- }, {
- key: "getEmptyRowsBeforeLine",
- value: function getEmptyRowsBeforeLine(x, y, w) {
- if (y === 0) return 0;
- var count = 0;
- var row, cell;
- for (var rowNum = y - 1; rowNum >= 0; rowNum--) {
- row = this.coors[rowNum] || [];
- for (var colNum = x; colNum < x + w; colNum++) {
- cell = row[colNum];
- if (!isNil(cell)) {
- return count;
- }
- }
- count++;
- }
- return count;
- }
- }, {
- key: "_moveUpAll",
- value: function _moveUpAll() {
- var me = this;
- forEach(this.coors, function (row) {
- forEach(row || [], function (cell) {
- if (!cell || cell.y === 0) return;
- var canUpRows = me.getEmptyRowsBeforeLine(cell.x, cell.y, cell.w);
- cell.fill(null);
- cell.setPos({
- y: cell.y - canUpRows
- });
- cell.fill(cell);
- });
- });
- }
- }, {
- key: "clear",
- value: function clear() {
- this.coors = [];
- this.coorItemsMap = {};
- }
- }, {
- key: "batchAddItem",
- value: function batchAddItem(itemList) {
- var me = this;
- forEach(itemList, function (item) {
- me.add(item);
- });
- this._moveUpAll();
- }
- }, {
- key: "getAllItems",
- value: function getAllItems() {
- var list = [];
- var itemMap = this.coorItemsMap;
- forEach(Object.keys(itemMap), function (key) {
- list.push(itemMap[key].rawInfo);
- });
- return list;
- }
- }, {
- key: "remove",
- value: function remove(id) {
- var rectItem = this.coorItemsMap[id];
- if (rectItem) {
- rectItem.fill(null);
- delete this.coorItemsMap[id];
- this._moveUpAll();
- }
- return rectItem;
- }
- }, {
- key: "replace",
- value: function replace(id, info) {
- var rectItem = this.coorItemsMap[id];
- if (rectItem && rectItem.x === info.x && rectItem.y === info.y && rectItem.w === info.w && rectItem.h === info.h) {
- rectItem.fill(null);
- delete this.coorItemsMap[id];
- var newRectItem = new utils_rect(info, this);
- newRectItem.fill(newRectItem);
- this.coorItemsMap[newRectItem.id] = newRectItem;
- return newRectItem;
- }
- return null;
- }
- }, {
- key: "getItemById",
- value: function getItemById(id) {
- return this.coorItemsMap[id];
- }
- }]);
- return Coordinate;
- }();
- /* harmony default export */ var coordinate = (coordinate_Coordinate);
- // CONCATENATED MODULE: ./src/utils/coordinate.test.js
- function autoMove(that, layout) {
- // that.coors.moveItemTo(layout[6], {
- // x: layout[6].x,
- // y: layout[6].y - 1
- // })
- // for(let i = 4; i > 0; i--){
- // that.coors.moveItemTo(layout[3], {
- // x: layout[3].x - 1,
- // y: layout[3].y
- // })
- // }
- // for(let i = 4; i > 0; i--){
- // that.coors.moveItemTo(layout[3], {
- // x: layout[3].x + 1,
- // y: layout[3].y
- // })
- // }
- // that.coors.moveItemTo(layout[0], {
- // x: layout[0].x + 1,
- // y: layout[0].y
- // })
- // that.coors.moveItemTo(layout[0], {
- // x: layout[0].x + 1,
- // y: layout[0].y
- // })
- // that.coors.moveItemTo(layout[2], {
- // x: layout[2].x - 1,
- // y: layout[2].y
- // })
- // for(let i = 4; i > 0; i--){
- // that.coors.moveItemTo(layout[3], {
- // x: layout[3].x - 1,
- // y: layout[3].y
- // })
- // }
- // that.coors.moveItemTo(layout[3], {
- // x: layout[3].x,
- // y: layout[3].y + 1
- // })
- that.coors.moveItemTo(layout[6], {
- x: 2,
- y: 1
- });
- }
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0fa0e932-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Widget.render.vue?vue&type=template&id=67aab659&
- var Widget_rendervue_type_template_id_67aab659_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')}
- var Widget_rendervue_type_template_id_67aab659_staticRenderFns = []
- // CONCATENATED MODULE: ./src/components/Widget.render.vue?vue&type=template&id=67aab659&
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Widget.render.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- /* harmony default export */ var Widget_rendervue_type_script_lang_js_ = ({
- props: ['altCardProps']
- });
- // CONCATENATED MODULE: ./src/components/Widget.render.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_Widget_rendervue_type_script_lang_js_ = (Widget_rendervue_type_script_lang_js_);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode /* vue-cli only */
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- // CONCATENATED MODULE: ./src/components/Widget.render.vue
- /* normalize component */
- var component = normalizeComponent(
- components_Widget_rendervue_type_script_lang_js_,
- Widget_rendervue_type_template_id_67aab659_render,
- Widget_rendervue_type_template_id_67aab659_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* harmony default export */ var Widget_render = (component.exports);
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Widget.template.vue?vue&type=script&lang=js&
- /* harmony default export */ var Widget_templatevue_type_script_lang_js_ = ({
- props: ['altCardProps'],
- template: '<div></div>'
- });
- // CONCATENATED MODULE: ./src/components/Widget.template.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_Widget_templatevue_type_script_lang_js_ = (Widget_templatevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./src/components/Widget.template.vue
- var Widget_template_render, Widget_template_staticRenderFns
- /* normalize component */
- var Widget_template_component = normalizeComponent(
- components_Widget_templatevue_type_script_lang_js_,
- Widget_template_render,
- Widget_template_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* harmony default export */ var Widget_template = (Widget_template_component.exports);
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Widget.vuecomponent.vue?vue&type=script&lang=js&
- /* harmony default export */ var Widget_vuecomponentvue_type_script_lang_js_ = ({
- props: ['altCardProps']
- });
- // CONCATENATED MODULE: ./src/components/Widget.vuecomponent.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_Widget_vuecomponentvue_type_script_lang_js_ = (Widget_vuecomponentvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./src/components/Widget.vuecomponent.vue
- var Widget_vuecomponent_render, Widget_vuecomponent_staticRenderFns
- /* normalize component */
- var Widget_vuecomponent_component = normalizeComponent(
- components_Widget_vuecomponentvue_type_script_lang_js_,
- Widget_vuecomponent_render,
- Widget_vuecomponent_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* harmony default export */ var Widget_vuecomponent = (Widget_vuecomponent_component.exports);
- // CONCATENATED MODULE: ./src/components/props.js
- var props_props = {
- layout: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- isDraggable: {
- // 是否可以拖拽
- type: Boolean,
- default: true
- },
- isResizable: {
- // 是否可以调整大小
- type: Boolean,
- default: true
- },
- rowHeight: {
- // 每行高度
- type: Number,
- default: 150,
- validator: function validator(value) {
- return !isNaN(value) && value > 0;
- }
- },
- maxRows: {
- // 最大
- type: Number,
- default: Infinity
- },
- margin: {
- type: Array,
- default: function _default() {
- return [10, 10];
- }
- },
- // 元素的右边距和下边距
- colNum: {
- // 列数
- type: Number,
- default: 12
- },
- backgroundColor: {
- // 背景颜色
- type: String,
- default: 'rgba(200,200,200,1)'
- },
- gridItemClass: {
- // 每一个卡片的class
- type: String,
- default: ''
- },
- closeHandlerClass: {
- // 关闭按钮的class
- type: String,
- default: ''
- },
- resizeHandlerClass: {
- // 设置大小按钮的class
- type: String,
- default: 'alt-g-i-r-h-default-style'
- },
- placeholderClass: {
- // 拖拽时 placeholder 的class
- type: String,
- default: ''
- },
- isShowOriginCloseBtn: {
- type: Boolean,
- default: true
- },
- width: {
- type: [Number, Boolean],
- default: false
- }
- };
- /* harmony default export */ var components_props = (props_props);
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/grid.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- // import elementResizeDetectorMaker from 'element-resize-detector'
- var Vue = getVue();
- /* harmony default export */ var gridvue_type_script_lang_js_ = ({
- name: 'alt-grid-layout',
- addWidgetType: function addWidgetType() {
- var args0 = arguments[0];
- var type = getVariType(args0);
- if (type === 'string') {
- this._addWidgetType.apply(this, arguments);
- } else if (type === 'object') {
- for (var key in args0) {
- args0.hasOwnProperty(key) && this._addWidgetType(key, args0[key]);
- }
- }
- },
- // 添加组件类型处理函数
- _addWidgetType: function _addWidgetType(type, widget) {
- var parentWidget = widget.template ? Widget_template : Widget_render;
- if (widget.super == Vue) {
- this.components[type] = widget.extend(Widget_vuecomponent);
- return;
- }
- this.components[type] = _objectSpread({}, widget, {
- extends: parentWidget
- });
- },
- props: components_props,
- data: function data() {
- return {
- innerLayout: [],
- // 布局源数据
- defVal: {
- minH: 1,
- // 默认每个卡片的最小高度
- minW: 1,
- // 默认每个卡片的最小宽度
- maxH: Infinity,
- // 默认每个卡片的最大高度
- maxW: Infinity,
- // 默认每个卡片的最大宽度
- isDraggable: true,
- // 默认每个卡片是否支持拖拽
- isResizable: true,
- // 默认每个卡片是否支持设置大小
- isShowOriginCloseBtn: true,
- // 是否显示默认的关闭按钮
- dragIgnoreFrom: 'a, input, button, textarea'
- },
- containerHeight: 0,
- // 容器高度
- cols: [],
- cacheComputed: {},
- placeholder: null,
- // 拖拽的placeholder
- preOperator: 0,
- // 防止点击事件是触发拖动样式,先赋值给preOperator,如果用户继续执行move,则将preOperator赋值给operator
- operator: 0,
- // 当前操作状态,0 - 无操作,1 - 拖拽, 2 - 缩放
- operatedItem: null,
- // 当前被操作的元素的状态
- containerWidth: 0,
- boxWatchHandler: null,
- coors: null,
- timer: null,
- animation: null,
- animationHandler: null,
- eventHandler: {
- mousedown: null,
- mousemove: null,
- mouseup: null
- }
- };
- },
- mounted: function mounted() {
- var _this = this;
- this.initCols();
- if (this.width === false) {
- this.boxWatchHandler = new watch_box_size(this.$el, function () {
- _this.initCols();
- });
- } // 绑定拖拽事件
- this.bindEvents();
- this.setLayout(this.layout);
- },
- destroyed: function destroyed() {
- this.boxWatchHandler.destroy(); // this.erd.uninstall(this.$el);
- this.unbindEvents();
- clearTimeout(this.timer);
- },
- watch: {
- // layout(val){
- // this.setLayout(val);
- // },
- rowHeight: function rowHeight() {
- this.reRenderStyle({
- triggerEventEnd: true,
- onlyReRender: true
- });
- },
- colNum: function colNum(val) {
- // console.log('change col number');
- if (this.coors) {
- this.coors.setMaxWidth = parseInt(val);
- }
- this.initCols();
- },
- cols: function cols() {
- // console.log('cols change');
- this.cacheComputed = {};
- if (this.operator) return;
- this.reRenderStyle({
- triggerEventEnd: true,
- onlyReRender: true
- });
- },
- margin: function margin() {
- this.cacheComputed = {};
- this.reRenderStyle();
- },
- backgroundColor: function backgroundColor() {
- // this.reRenderStyle();
- this.forceReRenderStyle();
- },
- width: function width() {
- this.initCols();
- }
- },
- computed: {
- containerStyle: function containerStyle() {
- return {
- height: this.containerHeight + 'px'
- };
- },
- operatorClass: function operatorClass() {
- if (!this.operator) return '';
- if (this.operator === 1) {
- return 'alt-grid-container-operating alt-move';
- } else if (this.operator === 2) {
- return 'alt-grid-container-operating alt-resize';
- }
- return '';
- }
- },
- methods: {
- resetResize: function resetResize() {
- var _this2 = this;
- this.boxWatchHandler.destroy();
- this.boxWatchHandler = new watch_box_size(this.$el, function () {
- _this2.initCols();
- });
- },
- bindEvents: function bindEvents() {
- this.eventHandler.mousedown = this.mousedown.bind(this);
- this.eventHandler.mousemove = this.mousemove.bind(this);
- this.eventHandler.mouseup = this.mouseup.bind(this);
- this.$el.addEventListener('mousedown', this.eventHandler.mousedown);
- document.addEventListener('mousemove', this.eventHandler.mousemove);
- document.addEventListener('mouseup', this.eventHandler.mouseup);
- },
- unbindEvents: function unbindEvents() {
- this.$el.removeEventListener('mousedown', this.eventHandler.mousedown);
- document.removeEventListener('mousemove', this.eventHandler.mousemove);
- document.removeEventListener('mouseup', this.eventHandler.mouseup);
- },
- canDragClass: function canDragClass(isDraggable) {
- return util_getFirstSetValue(isDraggable, this.isDraggable, true) ? 'can-drag' : '';
- },
- forceReRenderStyle: function forceReRenderStyle() {
- var _this3 = this;
- if (this.timer) clearTimeout(this.timer);
- this.timer = setTimeout(function () {
- _this3.innerLayout.forEach(function (item) {
- var style = _this3.getCardStyle(item);
- _this3.$set(item, '_alt_style', style); // item.style = style;
- });
- }, 10);
- },
- reRenderStyle: function reRenderStyle() {
- var _this4 = this;
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var ignoreId = options.ignoreId;
- var triggerEventEnd = options.triggerEventEnd;
- var onlyReRender = options.onlyReRender;
- if (this.timer) clearTimeout(this.timer);
- this.timer = setTimeout(function () {
- _this4.containerHeight = 0;
- _this4.innerLayout.forEach(function (item, index) {
- if (item._id === ignoreId) return;
- var card = _this4.$refs.cards[index];
- var oldStyle = {
- style: card.style,
- width: card.style.width,
- height: card.style.height,
- transform: card.style.transform
- };
- if (oldStyle.transform) {
- oldStyle.transform = oldStyle.transform.replace(/\s/g, '');
- }
- var styleRaw = _this4.getCardStyle(item, true);
- _this4.$set(item, '_alt_style', styleRaw.style); // item.style = style;
- var status = _this4.getCardRectChangeStatus(oldStyle, styleRaw, ['width', 'height', 'transform'], {
- triggerEventEnd: triggerEventEnd
- });
- if (status === 'none') return;
- _this4.dispatchEvent(item._id, status, {
- w: item.w,
- h: item.h,
- x: item.x,
- y: item.y,
- layout: _this4.innerLayout,
- onlyReRender: onlyReRender
- }); // console.log('create Style:', styleRaw, oldStyle, index);
- });
- }, 10);
- },
- getCardRectChangeStatus: function getCardRectChangeStatus(arg1, arg2, range) {
- var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
- var triggerEventEnd = options.triggerEventEnd;
- var keys = range || Object.keys(arg1);
- for (var i = 0, l = keys.length; i < l; i++) {
- var key = keys[i];
- if (arg1[key] !== arg2[key]) {
- if (key === 'width' || key === 'height') {
- if (triggerEventEnd) {
- return 'resized';
- }
- return 'resize';
- }
- if (key === 'transform') {
- if (triggerEventEnd) {
- return 'moved';
- }
- return 'move';
- }
- }
- }
- return 'none';
- },
- dispatchEvent: function dispatchEvent(dragId, type, pos) {
- var _this5 = this;
- this.$nextTick(function () {
- _this5.$nextTick(function () {
- _this5.$refs[dragId] && _this5.$refs[dragId][0].$emit(type, pos);
- });
- });
- },
- getFirstSetValue: function getFirstSetValue() {
- return util_getFirstSetValue.apply(void 0, arguments);
- },
- getPropsForInject: function getPropsForInject(index, item) {
- return {
- id: item._id,
- card: item,
- layout: this.innerLayout,
- close: this.closeWidget.bind(this, item._id)
- };
- },
- // 初始化每个列宽
- initCols: function initCols() {
- // // // console.log('init cols');
- var containerWidth = 0;
- if (this.width === false) {
- containerWidth = this.$el.clientWidth;
- } else {
- containerWidth = this.width > 0 ? this.width : 0;
- } // let containerWidth = this.$el.clientWidth;
- if (this.colNum === this.cols.length && this.containerWidth && this.containerWidth === containerWidth) {
- return;
- }
- this.containerWidth = containerWidth;
- var colNum = this.colNum;
- var cols = []; // let containerWidth = this.$el.clientWidth;
- var remainder = containerWidth % colNum; // 余数
- var quotient = Math.floor(containerWidth / colNum); // 商数
- for (var i = 0; i < colNum; i++) {
- if (remainder) {
- cols[i] = quotient + 1;
- remainder--;
- } else {
- cols[i] = quotient;
- }
- }
- this.cols = cols;
- },
- // 设置布局layout数组
- setLayout: function setLayout() {
- var _this6 = this;
- var layout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- // this.layout = deepCopy(layout);
- // this.layout = layout;
- // // console.log(deepCopy)
- if (!this.coors) {
- this.coors = new coordinate({
- maxWidth: this.colNum
- });
- }
- this.coors.clear();
- this.coors.batchAddItem(layout);
- var layoutOverCalc = this.coors.getAllItems();
- layoutOverCalc.forEach(function (item) {
- var style = _this6.getCardStyle(item);
- _this6.$set(item, '_alt_style', style); // item.style = style;
- });
- this.innerLayout = layoutOverCalc;
- if (/_env=altdev/.test(window.location.search)) {
- autoMove(this, this.innerLayout);
- }
- },
- // 设置总容器高度
- setContainerHeight: function setContainerHeight(y, h) {
- var containerHeight = this.containerHeight;
- var height = y + h;
- if (height > containerHeight) {
- this.containerHeight = height;
- }
- },
- // 获取卡片大小和位移
- getCardStyle: function getCardStyle(item, raw) {
- if (!item) return {};
- var x = this.computeColsWidth(0, item.x) + 'px';
- var w = this.getCardWidth(item.x, item.x + item.w) + 'px';
- var y = item.y * this.rowHeight;
- var yPx = y + 'px';
- var h = item.h * this.rowHeight - this.margin[1];
- var hPx = h + 'px';
- this.setContainerHeight(y, h);
- var transform = '';
- if (utils_device.isMac) {
- transform = "translate(".concat(x, ",").concat(yPx, ")");
- } else {
- transform = "translate3d(".concat(x, ",").concat(yPx, ",0px)");
- }
- var style = "transform:".concat(transform, ";width:").concat(w, ";height:").concat(hPx, ";background-color:").concat(this.backgroundColor, ";");
- if (raw) {
- return {
- style: style,
- x: x,
- y: y,
- width: w,
- height: h,
- transform: transform
- };
- }
- return style; // return {
- // transform: `translate(${x}px,${y}px)`,
- // width: w + 'px',
- // height: h + 'px'
- // }
- },
- getCardStyleForRealTime: function getCardStyleForRealTime(item) {
- if (!item) return;
- var w = item.w;
- var x = item.x;
- if (x < 0) {
- x = 0;
- } else if (x + w > this.containerWidth) {
- x = this.containerWidth - w;
- }
- var y = item.y;
- if (y < 0) {
- y = 0;
- }
- var transform = "transform:translate3d(".concat(x, "px,").concat(y, "px,0);");
- var style = "".concat(transform, "width:").concat(w, "px;height:").concat(item.h, "px;background-color:").concat(this.backgroundColor, ";z-index:1;");
- return style;
- },
- getCardStyleForPlaceholder: function getCardStyleForPlaceholder(item) {
- if (!item) return {};
- var x = this.computeColsWidth(0, item.x);
- var w = this.getCardWidth(item.x, item.x + item.w);
- var y = item.y * this.rowHeight;
- var h = item.h * this.rowHeight - this.margin[1];
- this.setContainerHeight(y, h);
- var transform = "transform:translate3d(".concat(x, "px,").concat(y, "px,0);");
- var style = "".concat(transform, "width:").concat(w, "px;height:").concat(h, "px;");
- return style;
- },
- // 计算卡片的宽度
- getCardWidth: function getCardWidth(start, end) {
- var width = this.computeColsWidth(start, end);
- if (end !== this.cols.length) {
- width -= this.margin[0];
- }
- return width;
- },
- // 计算某几列的宽度
- computeColsWidth: function computeColsWidth(start, end) {
- var key = start + ';' + end;
- if (this.cacheComputed[key]) return this.cacheComputed[key];
- var cols = this.cols;
- var width = 0;
- for (var i = start; i < end; i++) {
- width += cols[i];
- }
- this.cacheComputed[key] = width;
- return width;
- },
- computeRowsHeight: function computeRowsHeight(start, end) {
- return (end - start) * this.rowHeight;
- },
- mousedown: function mousedown(event) {
- this.mousedownTimeStamp = new Date().getTime();
- var evt = normalizeEvent(event);
- var srcElement = evt.srcElement;
- var target = evt.target;
- var targetCard = findParentThoughEvtPath(evt.path, 'alt-grid-item', 'alt-grid-container');
- if (!targetCard) return;
- var dragId = this.getDragId(targetCard);
- var node = this.getNodeByDragId(dragId);
- if (hasClass(target, this.resizeHandlerClass)) {
- if (!util_getFirstSetValue(node.isResizable, this.isResizable, this.defVal.isResizable)) {
- return;
- }
- this.preOperator = 2; // resize
- }
- if (targetCard && !this.preOperator) {
- if (!util_getFirstSetValue(node.isDraggable, this.isDraggable, this.defVal.isDraggable)) {
- return;
- }
- var dragIgnoreFrom = util_getFirstSetValue(node.dragIgnoreFrom, this.defVal.dragIgnoreFrom);
- if (isDragIgnoreFrom(target, targetCard, dragIgnoreFrom)) return;
- this.preOperator = 1; // 拖拽
- }
- if (!targetCard && !this.preOperator) return; // if(!hasClass(target, 'alt-grid-item')) return;
- var targetCardStyle = targetCard.style;
- var translate = targetCardStyle.transform.match(/\(([-.\d]*)px, ([-.\d]*)px/);
- this.operatedItem = {
- srcElement: srcElement,
- el: targetCard,
- node: node,
- dragId: dragId,
- linkEmit: this.$refs[dragId] ? this.$refs[dragId][0].$emit : function () {},
- startX: evt.clientX,
- startY: evt.clientY,
- cacheStyle: {
- x: parseInt(translate[1]),
- y: parseInt(translate[2]),
- w: parseInt(targetCardStyle.width.match(/\d+/)[0]),
- h: parseInt(targetCardStyle.height.match(/\d+/)[0])
- }
- };
- this.placeholder = {
- _id: '__placeHolder__',
- x: node.x,
- y: node.y,
- w: node.w,
- h: node.h
- };
- this.coors.replace(node._id, this.placeholder); // this.coors.remove(node._id);
- // this.coors.add(this.placeholder);
- // console.log('down', evt, this.operatedItem);
- // if(hasClass(target, this.resizeHandlerClass)){
- // this.operator = 2;
- // } else {
- // this.operator = 1;
- // }
- },
- mousemove: function mousemove(evt) {
- if (!this.preOperator) return;
- this.operator = this.preOperator; // console.log('mouse move');
- this.operatedItem.el.classList.add('operated-item');
- var ex = evt.clientX;
- var ey = evt.clientY;
- var sx = this.operatedItem.startX;
- var sy = this.operatedItem.startY;
- if (this.operator === 1) {
- this.dragMove(this.operatedItem, sx, sy, ex, ey);
- } else if (this.operator === 2) {
- this.resizeMove(this.operatedItem, sx, sy, ex, ey);
- }
- },
- mouseup: function mouseup() {
- var time = new Date().getTime();
- if (time - this.mousedownTimeStamp < 10) {
- this.operatedItem && this.operatedItem.srcElement && this.operatedItem.srcElement.click();
- }
- var operatedItem = this.operatedItem;
- if (operatedItem) {
- this.applyChange();
- this.$set(operatedItem.node, '_alt_style', this.getCardStyle(operatedItem.node)); // item.node[] = this.getCardStyle(item.node);
- this.coors.replace(this.placeholder._id, operatedItem.node); // this.coors.remove(this.placeholder._id);
- // this.coors.add(operatedItem.node);
- }
- this.clearDragEnv();
- this.$emit('update:layout', this.innerLayout);
- },
- applyChange: function applyChange() {
- var x = this.placeholder.x;
- var y = this.placeholder.y;
- var w = this.placeholder.w;
- var h = this.placeholder.h;
- var dragId = this.operatedItem.dragId;
- var node = this.operatedItem.node;
- if (this.operator === 1) {
- if (node.x === x && node.y === y) return;
- node.x = x;
- node.y = y;
- this.dispatchEvent(dragId, 'moved', {
- x: x,
- y: y,
- w: node.w,
- h: node.h,
- layout: this.innerLayout
- });
- } else if (this.operator === 2) {
- if (node.w === w && node.h === h) return;
- node.w = this.placeholder.w;
- node.h = this.placeholder.h;
- node.x = this.placeholder.x;
- node.y = this.placeholder.y;
- this.dispatchEvent(dragId, 'resized', {
- x: x,
- y: y,
- w: w,
- h: h,
- layout: this.innerLayout
- });
- }
- },
- clearDragEnv: function clearDragEnv() {
- this.preOperator = 0;
- this.operator = 0;
- this.operatedItem = null;
- this.placeholder = null;
- },
- getNodeByDragId: function getNodeByDragId(dragId) {
- var index = getIndexOfArrayByAttr(this.innerLayout, dragId, '_id');
- if (index === -1) return null;
- return this.innerLayout[index];
- },
- getDragId: function getDragId(target) {
- return target.getAttribute('dg-id');
- },
- dragMove: function dragMove(operatedItem, sx, sy, ex, ey) {
- // console.log('drag move');
- var placeholder = this.placeholder;
- var cacheStyle = operatedItem.cacheStyle;
- var dx = ex - sx;
- var dy = ey - sy;
- var startCol = dx > 0 ? operatedItem.node.x + operatedItem.node.w : operatedItem.node.x;
- var stepX = this.getMoveCols(dx, startCol);
- var stepY = this.getMoveRows(dy, operatedItem.node.y); // console.log('calc over step');
- var targetX = operatedItem.node.x + stepX;
- var targetY = operatedItem.node.y + stepY;
- this.coors.getItemById(placeholder._id).moveTo(targetX, targetY);
- var x = cacheStyle.x + dx;
- var y = cacheStyle.y + dy;
- operatedItem.node['_alt_style'] = this.getCardStyleForRealTime({
- x: x,
- y: y,
- w: cacheStyle.w,
- h: cacheStyle.h
- }); // this.coors.moveAllItemUp();
- this.reRenderStyle({
- ignoreId: operatedItem.dragId
- });
- this.dispatchEvent(operatedItem.dragId, 'move', {
- x: this.placeholder.x,
- y: this.placeholder.y,
- w: this.placeholder.w,
- h: this.placeholder.h,
- layout: this.innerLayout
- });
- },
- resizeMove: function resizeMove(operatedItem, sx, sy, ex, ey) {
- var placeholder = this.placeholder;
- var node = operatedItem.node;
- var cacheStyle = operatedItem.cacheStyle;
- var dx = ex - sx;
- var dy = ey - sy;
- var stepX = this.getMoveCols(dx, node.x + node.w);
- var stepY = this.getMoveRows(dy, node.y + node.h);
- var size = this.getItemLegalSize(node, {
- w: node.w + stepX,
- h: node.h + stepY
- });
- this.coors.getItemById(placeholder._id).resizeTo(size.w, size.h);
- var pixiesSize = this.getItemLegalSizeInPixies(node, {
- width: cacheStyle.w + dx,
- height: cacheStyle.h + dy
- });
- if (cacheStyle.x + pixiesSize.width > this.containerWidth) {
- pixiesSize.width = this.containerWidth - cacheStyle.x;
- }
- operatedItem.node['_alt_style'] = this.getCardStyleForRealTime({
- x: cacheStyle.x,
- y: cacheStyle.y,
- w: pixiesSize.width,
- h: pixiesSize.height
- });
- this.reRenderStyle({
- ignoreId: operatedItem.dragId
- });
- this.dispatchEvent(operatedItem.dragId, 'resize', {
- x: this.placeholder.x,
- y: this.placeholder.y,
- w: this.placeholder.w,
- h: this.placeholder.h,
- layout: this.innerLayout
- });
- },
- getItemLegalSizeInPixies: function getItemLegalSizeInPixies(node, size) {
- var pixiesLimit = this.getPixiesLimit(node);
- var width = size.width;
- var height = size.height;
- if (width > pixiesLimit.maxWidth) {
- width = pixiesLimit.maxWidth;
- } else if (width < pixiesLimit.minWidth - 10) {
- width = pixiesLimit.minWidth - 10;
- }
- if (height > pixiesLimit.maxHeight) {
- height = pixiesLimit.maxHeight;
- } else if (height < pixiesLimit.minHeight - 10) {
- height = pixiesLimit.minHeight - 10;
- }
- return {
- width: width,
- height: height
- };
- },
- getPixiesLimit: function getPixiesLimit(node) {
- var pixiesLimit = {
- minWidth: 0,
- minHeight: 0,
- maxWidth: Infinity,
- maxHeight: Infinity
- };
- var minW = util_getFirstSetValue(node.minW, this.defVal.minW);
- var minH = util_getFirstSetValue(node.minH, this.defVal.minH);
- if (minW && minW > 0) {
- pixiesLimit.minWidth = this.getCardWidth(node.x, node.x + minW);
- }
- if (minH && minH > 0) {
- pixiesLimit.minHeight = minH * this.rowHeight - this.margin[1];
- }
- if (node.maxW && node.maxW > 0) {
- pixiesLimit.maxWidth = this.getCardWidth(node.x, node.x + node.maxW);
- }
- if (node.maxH && node.maxH > 0) {
- pixiesLimit.maxHeight = node.maxH * this.rowHeight - this.margin[1];
- }
- return pixiesLimit;
- },
- getMoveCols: function getMoveCols(dx, startCol) {
- if (startCol <= 0 && dx < 0) return 0;
- var flag = dx < 0 ? '-' : '+';
- var absDx = Math.abs(dx);
- if (absDx < 15) return 0;
- var i = 0;
- var c = startCol;
- while (absDx > 0) {
- if (flag === '-') {
- c--;
- absDx -= this.cols[c] || 0;
- i++;
- if (c <= 0) break;
- } else {
- c++;
- absDx -= this.cols[c] || 0;
- i++;
- if (c >= this.cols.length) break;
- }
- }
- return parseInt(flag + i);
- },
- getMoveRows: function getMoveRows(dy, startRow) {
- if (startRow <= 0 && dy < 0) return 0;
- var flag = dy < 0 ? '-' : '+';
- var absDy = Math.abs(dy);
- if (absDy < this.rowHeight / 2) return 0;
- var i = 0;
- var row = startRow;
- while (absDy > 0) {
- if (flag === '-') {
- absDy -= this.rowHeight;
- i++;
- row--;
- if (row <= 0) break;
- } else {
- absDy -= this.rowHeight;
- i++;
- row++;
- }
- }
- return parseInt(flag + i);
- },
- addItem: function addItem(item) {
- if (!this.coors) {
- this.setLayout();
- }
- var distributeItem = this.coors.add(item);
- var style = this.getCardStyle(distributeItem);
- this.$set(distributeItem.rawInfo, '_alt_style', style);
- this.innerLayout.push(distributeItem.rawInfo);
- this.$emit('update:layout', this.innerLayout);
- return distributeItem.id;
- },
- deleteItem: function deleteItem(id) {
- return this.closeWidget(id);
- },
- getAllItems: function getAllItems() {
- return this.innerLayout;
- },
- getItemLegalSize: function getItemLegalSize(item, size) {
- var minH = util_getFirstSetValue(item.minH, this.defVal.minH);
- var minW = util_getFirstSetValue(item.minW, this.defVal.minW);
- var maxH = util_getFirstSetValue(item.maxH, this.defVal.maxH);
- var maxW = util_getFirstSetValue(item.maxW, this.defVal.maxW);
- var h = size.h;
- var w = size.w;
- if (size.h <= minH) {
- h = minH;
- }
- if (size.h >= maxH) {
- h = maxH;
- }
- if (size.w <= minW) {
- w = minW;
- }
- if (size.w >= maxW) {
- w = maxW;
- }
- return {
- h: h,
- w: w
- };
- },
- closeWidget: function closeWidget(_id) {
- var index = getIndexOfArrayByAttr(this.innerLayout, _id, '_id');
- if (index === -1) return false;
- var item = this.innerLayout[index];
- this.coors.remove(item._id); // this.coors.moveAllItemUp();
- this.innerLayout.splice(index, 1);
- this.reRenderStyle(); // this.reRenderCount++;
- this.clearDragEnv();
- this.$emit('update:layout', this.innerLayout);
- }
- },
- updated: function updated() {
- this.$emit('updated');
- }
- });
- // CONCATENATED MODULE: ./src/components/grid.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_gridvue_type_script_lang_js_ = (gridvue_type_script_lang_js_);
- // EXTERNAL MODULE: ./src/components/grid.vue?vue&type=style&index=0&lang=css&
- var gridvue_type_style_index_0_lang_css_ = __webpack_require__("d812");
- // CONCATENATED MODULE: ./src/components/grid.vue
- /* normalize component */
- var grid_component = normalizeComponent(
- components_gridvue_type_script_lang_js_,
- render,
- staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* harmony default export */ var components_grid = (grid_component.exports);
- // CONCATENATED MODULE: ./src/alt-store/mixin.js
- function mixin(Vue) {
- Vue.mixin({
- beforeCreate: altStoreInit
- });
- function altStoreInit() {
- var options = this.$options;
- if (options.altStore) {
- this.$altStore = options.altStore;
- } else if (options.parent && options.parent.$altStore) {
- this.$altStore = options.parent.$altStore;
- }
- }
- }
- // CONCATENATED MODULE: ./src/alt-store/util.js
- function util_forEachValue(obj, fn) {
- Object.keys(obj).forEach(function (key) {
- return fn(obj[key], key);
- });
- }
- // CONCATENATED MODULE: ./src/alt-store/store.js
- var store_Vue;
- var store_AltStore =
- /*#__PURE__*/
- function () {
- function AltStore(options) {
- _classCallCheck(this, AltStore);
- this._mutations = Object.create(null);
- this.initVm(options.state);
- this.initMutations(options.mutations);
- }
- _createClass(AltStore, [{
- key: "commit",
- value: function commit(type, payload) {
- var entry = this._mutations[type];
- if (!entry) {
- console.error('[altStore] unknown commit type.');
- return;
- }
- entry.forEach(function (handler) {
- handler(payload);
- });
- }
- }, {
- key: "getOriginState",
- value: function getOriginState() {
- return this._vm._data.$$state;
- }
- }, {
- key: "initMutations",
- value: function initMutations(mutations) {
- var store = this;
- var state = this.getOriginState();
- util_forEachValue(mutations, function (handler, key) {
- var entry = store._mutations[key] || (store._mutations[key] = []);
- entry.push(function wrapperHandler(payload) {
- handler.call(store, state, payload);
- });
- });
- }
- }, {
- key: "initVm",
- value: function initVm(state) {
- var oldVm = this._vm;
- this._vm = new store_Vue({
- data: {
- $$state: state
- }
- });
- if (oldVm) {
- store_Vue.nextTick(function () {
- return oldVm.$destroy();
- });
- }
- }
- }, {
- key: "state",
- get: function get() {
- return this._vm._data.$$state;
- },
- set: function set(v) {
- console.error('cannot set state directly.');
- }
- }]);
- return AltStore;
- }();
- function install(_Vue) {
- if (store_Vue && _Vue === store_Vue) {
- if (false) {}
- return;
- }
- store_Vue = _Vue;
- mixin(store_Vue);
- }
- // CONCATENATED MODULE: ./src/alt-store/index.js
- /* harmony default export */ var alt_store = ({
- Store: store_AltStore,
- install: install
- });
- // CONCATENATED MODULE: ./src/index.js
- // import Vue from "vue";
- // Vue.component('AltVueGridLayout', VueGridLayout);
- function factory() {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var grid = _objectSpread({}, components_grid, {
- components: {}
- });
- if (options.altStore && options.altStore instanceof alt_store.Store) {
- grid.altStore = options.altStore;
- }
- return grid;
- } // export default VueGridLayout;
- /* harmony default export */ var src = ({
- createGrid: factory,
- grid: components_grid,
- altStore: alt_store
- });
- // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
- /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src);
- /***/ }),
- /***/ "fde4":
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__("bf90");
- var $Object = __webpack_require__("584a").Object;
- module.exports = function getOwnPropertyDescriptor(it, key) {
- return $Object.getOwnPropertyDescriptor(it, key);
- };
- /***/ }),
- /***/ "fdef":
- /***/ (function(module, exports) {
- module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
- '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
- /***/ })
- /******/ })["default"];
- });
- //# sourceMappingURL=doesburg.umd.js.map
|